I am trying to edit css
"css_pF25-gpJPC5E_dzDNqsHs9AriR_AGzKkzgs-0VLNBgI.css"
when me put any my css in above file like float:left no effect appear in front-end and ,
Why the css file name is too complicated in drupal , what should I do ?
it is in drupal it contain in "C:\xampp\htdocs\drupal_1\sites\default\files\css"
4 Answers
You need to simply create css file at "projectname/sites/all/themes/theme_name/css/abc.css". Write css code.
Clear cache from if using windows then
"Home » Administration » Configuration » Development » Performance" this path and press clear all cache button.
if using linux go to the project path for example "/var/www/project_name/" and hit drush cc all it will clear all cache. and changes will be reflect.
Note: You should installed drush module.
Actually drupal merges all css and create a css file with dynamic name.
Hpe it will help you. Happy coding.
Comments
I am quite confused how you got "css_pF25-gpJPC5E_dzDNqsHs9AriR_AGzKkzgs-0VLNBgI.css" in your DRUPAL file system.
Since its aggregated CSS file, you wont find any CSS file which has named like that. CSS aggregation is being done by DRUPAL end.
So best way of doing this is, got to following path: In admin menu,
Configuration >> Development >> Performance. In this page under "BANDWIDTH OPTIMIZATION" section, you see "Aggregate and compress CSS files" check box.
DE-select that check box and clear DRUPAL cache. And then inspect element which CSS your are going to change, there you see exact CSS file name which not is aggregated one.Go to that CSS file and make CSSchanges and save.
Then clear Drupal cache and you need to clear browser history also some times.
Then see changes on front end. If changes effected , go to Configuration >> Development >> Performanace ,check "Aggregate and compress CSS files" check box.
admin/config/development/performancein your drupal site, and disableAggregate and compress CSS filesThen your site will properly show all css resources as separate files.