Isla
Members
-
Joined
-
Last visited
Reputation Activity
-
Isla reacted to Renaissance-Design in Logo issue on my website#header { overflow: hidden; width:100%; height:250px; } #logo{ background: url('../Imgs/logo2.png')no-repeat; float:left; width:200px; height:200px; }
Your header doesn't need to be a float because nothing is alongside it and it's 100% width. Applying overflow: hidden forces it to enclose the floated contents.
-
Isla reacted to charlieh-starrtheme in Logo issue on my websiteHi,
Try this, instead of loading ure image as a background image in the css add it to the html I have added an example below
html:
<header id="header"> <a href="homepage link" id="logo"> <img src="images/logo.png" /> </a> </header>
css:
#header { width:960px; height:200px; margin:0 auto; } header a#logo { position:relative; top:??px; left:??px; width:???px; height:???px; }
I have f ound that by inserting the image in the html and sizing the id element in the css to the exact size works better for me, also with the relative position statement you can use the "top" & "left" styles to position the logo exactly where you want within the header.
I hope this helps, best of luck.
Charlie h.
-
Isla reacted to Renaissance-Design in Logo issue on my websiteYou can give people Rep at the bottom right of their posts.