Hi

I'm new here and I've got a (simple) question about adding CSS to a theme.

In views i created a responsive grid of fields to display 18 images. Two columns vertical, works fine. Now I want the pictures which are in the left column to align on the right side of the column. By default they are aligned left. With Firefox Inspector I found the class "views-col col-1" style="with: 50%"; So the only thing I want is to add the string "text-align: right;" into this class. But where can I add it? I've tried it in custom.css (in "Appereance/Settings/corolla/Extensions/Custom CSS"), I've tried to create a new style in the settings for the grid, and also directly in the css-file themes/corolla/styles/css/custom.css and also in ...css/generated/custom-css.css but nothing happened! Where should I add this text-align command? Please help me - thanks in advance!

Christian

Comments

VM’s picture

you should be using a subtheme of corrolla and CSS overrides would be placed into your subtheme .css file.

https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t...

Also of note, any time you alter CSS be sure to clear your Drupal cache.

A link to the site is helpful to providing CSS related support.