Center Logo Image on Custom CSS
-
I have been trying for the last three hours to centre my logo image via CSS. I have tried numerous codes and none seem to work. I have never used CSS before so I honestly have no idea if what I am doing is even correct.
I am using a Mac and I right clicked on my image and went to inspect element where I selected the CSS code for the image. From there I added in below that code:
img.center {
display: block;
margin-left: auto;
margin-right: auto;
}xto try and centre the image. Nothing seems to be working. PLEASE HELP ME!
The blog I need help with is: (visible only to logged in users)
-
-
-
Could you add these styles and let me know what you think:
.wf-active #site-header h2.site-description { display:none; } #site-header { width: 100%; max-width: 100%; text-align: center; clear:right; } h1.site-title:after { display: block; content: "Journalist, Fashion lover, Global traveller"; } -
That looks awesome! However, is there any chance to just centre the image? I kind of liked the text Saskia Starck – Journalist, Fashion Lover, Global Traveller – when it was to the left hand side.
Seriously thank you so so so much!!!
-
Remove everything I gave you earlier and add this now:
.wf-active #site-header h2.site-description { display: none } #site-header { width: 100%; max-width: 100%; text-align: center; clear: right } h1.site-title a{ display: block; text-align: left; } h1.site-title:after { display: block; content: "Journalist, Fashion lover, Global traveller"; text-align: left; } -
-
- The topic ‘Center Logo Image on Custom CSS’ is closed to new replies.