/    Sign up×
Community /Pin to ProfileBookmark

CSS Horizontal Menu Problem

Hello anybody whom can help me with this problem. I can’t understand oh how to make my menu go horiztonal.

<div id=”list-menu”>
<ul>
<li><a href=”#”>Home</a></li>
<li><a href=”#”>Products</a></li>
<li><a href=”#”>Services</a></li>
<li><a href=”#”>Solutions</a></li>
<li><a href=”#”>Support</a></li>
<li><a href=”#`”>Contact</a></li>
</ul>
</div>

css code
list-menu {}

#list-menu {
width: 132px;
/* this width value is also effected by
the padding we will later set on the links. *
/
}

#list-menu ul {
margin: 0;
padding: 0;
list-style-type: none;
font-family: verdana, arial, sanf-serif;
font-size: 12px;
}

#list-menu li {
margin: 2px 0 0;
}

#list-menu a {
display: block;
width:120px;
padding: 2px 2px 2px 10px;
border: 1px solid #000000;
background: #dcdcdc;
text-decoration: none; /*lets remove the link underlines*/
}

#list-menu a:link, #list-menu a:active, #list-menu a:visited {
color: #000000;
}

#list-menu a:hover {
border: 1px solid #000000;
background: #333333;
color: #ffffff;
} ?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangDec 11.2005 — Add float:left; to #list-menu li

and remove width: 132px; from #list-menu
Copy linkTweet thisAlerts:
@ZakRhinoauthorDec 11.2005 — Add float:left; to #list-menu li

and remove width: 132px; from #list-menu[/QUOTE]


Thank you for your help it working now. ^_^
×

Success!

Help @ZakRhino 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.6,
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,
)...