/    Sign up×
Community /Pin to ProfileBookmark

Please could someone help!

[IMG]http://img.photobucket.com/albums/v123/Fashy/button-issue.jpg[/IMG]

Can someone help me?

I keep coming across the same issue over and over again where my navigation buttons do not line up in IE and go in a step kind of format. I never know how i fix it and i think i need to know why this is happening so i can easily fix it in future.

My CSS is massive so i will just post what is needed.

[CODE]<ul class=”ultopnav”>
<li class=”photos”><a href=”#”></a></li>
<li class=”wall”><a href=”#”></a></li>
<li class=”race”><a href=”#”></a></li>
</ul>[/CODE]

[CODE].ultopnav{

width: 530px;

height: 55px;

float: right;

margin-top: 0px;

list-style:none;

}

li.race a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

display: inline;

background-image: url(../images/slices/race.jpg);

}

li.wall a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

display: inline;

background-image: url(../images/slices/wall.jpg);

}

li.photos a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

display: inline;

background-image: url(../images/slices/photos.jpg);

}

[/CODE]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@TancrediDec 24.2009 — li.race a is your links (a);

li.race is your list-items (+class)

Allo your list items are li

ul.ultopnav { display: block; }

ul.ultopnav li { display: inline; }

ul.ultopnav li a { color: #ccc; }
Copy linkTweet thisAlerts:
@TancrediDec 24.2009 — This should work..

[CODE]

ul.ultopnav {

width: 530px;

height: 55px;

float: right;

margin-top: 0px;

list-style:none;

display: block; /* Required for IE */

}

ul.ultopnav li { display: inline; }


li.race a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

background-image: url(../images/slices/race.jpg);

}

li.wall a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

background-image: url(../images/slices/wall.jpg);

}

li.photos a {

width: 171px;

height: 55px;

float: right;

list-style: none;

margin-top: 1px;

background-image: url(../images/slices/photos.jpg);

}
[/CODE]
×

Success!

Help @Fashy 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 5.27,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...