Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By GundersenLundberg on
Hey all
A quick question from a newcomer to Drupal.
How do I center (horizontal) the logo in a Bartik sub theme?
Have been looking through some generel CSS guides, but nothing seems to work...
Thank you in advance.
Comments
hi
Hi GundersenLundberg
For this you are not clear that in which region you put your logo. if you use same as batik them for header part in your subtheme then you can use below css code for to place logo at center.
Hope this will work.
Great!
I havn't messed around with the block layout .... yet :)
So standard Bartik ... and it worked! Many thanks!
I wasted two hours of time trying to get the CSS concept around 'margin: 0 auto;' to work... so the lesson is... use 5 min on the drupal forum instead, and you'll have an answer!
Again thx!
I'm trying to do that same
I'm trying to do that same and have a subtheme. Which .css file should this go in?