Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By cofaure on
Hi,
i'm adding pictures in blocks at the bottom of my drupal 8 website. But my bottom as a color brackground and we can see the block limits, the borders... Like a blank line. Why and how can i remove them easely ?
Comments
~
you will have to create your own subtheme and then modify the css.
Re
I can't change bartik theme code?
~
You can edit it directly but then when you go to update drupal, you will overwrite your changes. It is recommended that you create a subtheme of any core/contributed theme so you can override with your own css, js, etc..
https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t...
re
Mmh and can i create a subtheme with bartik code ? I don't want to create a totally new theme, just need some modifications
~
As I said previously. You modify bartik directly but then when you go to update drupal, you will overwrite your changes. It is recommended that you create a subtheme of any core/contributed theme so you can override with your own css, js, etc. A subtheme inherits everything from the parent theme and allows you to override it.
Do what you want, but I am showing you best practices so you don't mess things up.
re
Ok it's the best way to do this, i'll try, thanks
~
Once you have setup a subtheme, learn to use the inspect tool or firebug to determine which css to override. http://www.w3resource.com/web-development-tools/inspect-and-edit-HTML-an...