Jump to content

Safari margin problem...


Derleek

Recommended Posts

Ok, so i'm making a site, and i'm making a menu that needs very precise margins and what not.

 

It looks fine in firefox, but in safari the menu is shifted up by about 1px... i've never experienced this problem in safari before so i'm at a loss... i've tried the following safari hack but firefox renders the menu box one px too low. (example)

 

Safari hack:

#menu_container ul
{
margin-top: -9px;
}

#menu_container ul
{
# //safari hack
margin-top:-10px;
}

 

here is the html for the menu:

<div id="menu_container">
			<div id="menu_corner"></div>
			<ul id="menu">
				<li class="do">We Do</li>
				<li class="done">We've Done</li>
				<li class="got">We've Got</li>
				<li class="listen">We Listen</li>
			</ul>
		</div>

CSS for menu:

#menu_container ul
{

margin-left:230px;
margin-top:-9px;
}

#menu li
{
list-style-type: none;
display: inline-table;
background-color: white;
border: 1px solid #E2E2E2;
padding-right: 5px;
padding-left: 3px;
height: 15px;
font-size:9px;
color: gray;
line-height: 15px;
}

#menu_container
{
position: absolute;
width: 500px;
margin-top: -9px;
left: 50%;
margin-left:-250px;
}

 

I'm honestly at a loss on this one... can anyone explain whats going on here?  Or perhaps propose a way to write a line of CSS that only affects safari? I can give you more detailed code if need be...

 

thanks,

Derleek

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.