hel8itch Posted November 12, 2012 Posted November 12, 2012 have been working on this site http://medwaymarket.co.uk/ and would like to know how to centre the logo please
♥ecartz Posted November 13, 2012 Posted November 13, 2012 In your HTML (probably in includes/header.php), you have <div style="position: absolute; z-index: 0;" id="storeLogo"> replace that with <div id="storeLogo"> In your stylesheet.css file, find #storeLogo { float: middle; margin-top: 5px; } and replace it with #storeLogo { margin-top: 5px; margin-left: 90px; z-index: 0; } It might work to set margin-left and margin-right to auto, but it looks like there are some width issues to work out. If you don't mind hard coding the margin to 90px, that will do what you want. It's probably supposed to be 92 or 93px, but 90 seems close enough. Note: it's not clear to me why you are setting a z-index. If that's something that you did to try to center the image, you might want to drop it. You might try googling "center image" for more info -- there are a lot of results. Always back up before making changes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.