/    Sign up×
Community /Pin to ProfileBookmark

making the menu a fixed size?

i noticed that when i changed the text size of the browser, the menu box would change size also.
so ive specified the line-height (not sure if thats the best way), so the height is always the same now. but how do i make the width fixed too? cos when i change the browser text size now, the width is still adjusting accordingly.

heres my code for the menu box:

[CODE]
#menu {
line-height: 80px;
float: right;
margin: 0px;
}
[/CODE]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@KDLAApr 23.2008 — Specify a pixel width, also.

Please note: If you have long words in your menu and text is resized, the menu will expand to fit, no matter what width you set.
<i>
</i>&lt;ul style="width: 250px; border: 1px solid;"&gt;
&lt;li&gt;Link&lt;/li&gt;
&lt;li&gt;supercalifragilisticexpialidocious&lt;/li&gt;
&lt;li&gt;Link&lt;/li&gt;
&lt;/ul&gt;
×

Success!

Help @mr_newbie 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.17,
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,
)...