I have this site header I’m working on but I can’t get the logo and the site title to line up horizontally. I’m relatively new to CSS so would appreciate any hand-holding anyone can offer please 😉
The logo image is styled with:
.logo {
float:left;
}
Whereas the h1.site-title and h2.site-description text is styled thus:
h1.site-title, h2.site-description {
position:relative;
margin-left: 130px; !important
}
I’m pretty sure I need to make another DIV and can’t get the positioning right so the logo is at the left, then immediately next to it the site title/description.
(it should be #logo) Floating them both left works
and remove the margin-left
There are a couple of things that I would recommend changing:
so your CSS would look like this: