Center header image
-
This might sound basic, but since the CSS is using float, I’m not sure how to center the image properly. Our site is https://www.vipbeautypasadena.com
As you see, the logo is on the right side which we dont want, we need it to be centered. Heres the code, how do i go about doing this?
/* Header
————————————————————– */
#header {
clear: both;
float: left;
width: 100%;
margin: 40px 0 40px 0;
}
#branding {
float: left;
width: 35%;
overflow: hidden;
}
#site-title {
font-size: 3em;
line-height: 1em;
font-weight: bold;
margin: 0 0 5px 0;
word-wrap: break-word;
}
#site-title a {
color: #222;
border-bottom: none;
}
#header img { max-width: 100%; }
#site-description {
font-size: 1.333333333333333em;
font-weight: normal;
line-height: 1.5em;
margin: 0;
color: #aaa;
text-transform: none;
float: left;
width: 91.48936170212766%;
clear: both;
}
- The topic ‘Center header image’ is closed to new replies.