/    Sign up×
Community /Pin to ProfileBookmark

IE margin alignment problem

Hi guys, i’m hoping someone can help with this.

In firefox the navigation links at the top right are correctly aligned flush to the edge of the image below it. But in IE there seems to be a 20px gap which looks slightly odd.

Can anyone suggest a fix for this?

Thanks.

[URL=”http://www.cnsdemo4.co.uk/enjoy/”]site here [/URL]

[code=html]<div id=”header”>
<ul>
<li><a href=”index.html”>HOME</a></li>
<li>THE FACTS</li>
<li>CHARITIES</li>
<li>CONTACT US</li>
</ul>[/code]

CSS

[code=html]
#wrapper #header ul {
padding-top: 144px;
padding-right: 0px;
padding-bottom: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 270px;
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
padding-left: 0px;
}

#wrapper #header ul li {
float: left;
color: #FAB91D;
list-style-type: none;
display: inline;
position: relative;
padding-top: 0px;
padding-right: 18px;
padding-bottom: 0px;
padding-left: 4px;
margin: 0px;
background-image: url(images/dot.jpg);
background-repeat: no-repeat;
background-position: right;
}
[/code]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@rodd1000authorAug 31.2011 — I should also add that i have validated both HTML and CSS, but this doesnt seem to have helped.
Copy linkTweet thisAlerts:
@rodd1000authorAug 31.2011 — Solved by floating the UL to the right then adding a margin-right.

No idea why this wouldnt work the other way around.
×

Success!

Help @rodd1000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...