Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

centre logo help


hel8itch

Recommended Posts

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...