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

BrijeshParmar’s picture

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.

.region-header .site-branding {
    float: none;
    text-align: center;
}

Hope this will work.

GundersenLundberg’s picture

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!

doharrow’s picture

I'm trying to do that same and have a subtheme. Which .css file should this go in?