Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-19-2002, 06:48 PM   PM User | #1
undyingfires
New Coder

 
Join Date: Oct 2002
Location: || Canada ||
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
undyingfires is an unknown quantity at this point
Hardcoding dropdown menu WIDTH

I've tired searching for the answer first but anyhow...

I would like to know if it's possible to hardcode a specific width of a drop down menu?

One of the options/titles in the drop-down menu is very-y long so the drop-down extends the entire length of the box..

We don't want it wider then 450px MAX

So... can this be done? and/or can you 'wrap' a title?

Help
undyingfires is offline   Reply With Quote
Old 12-19-2002, 07:44 PM   PM User | #2
krycek
Regular Coder

 
Join Date: Nov 2002
Location: Bristol, UK
Posts: 932
Thanks: 0
Thanked 0 Times in 0 Posts
krycek is an unknown quantity at this point
hmmm, I am not sure if it will work (no time to check) but have you tried the CSS property max-width?

::] krycek [::
__________________
ithium | SOAPI | SDP | PTPScript manual
"ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."
krycek is offline   Reply With Quote
Old 12-19-2002, 07:51 PM   PM User | #3
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
im not sure that max-width is supported yet though
__________________
redhead
redhead is offline   Reply With Quote
Old 12-19-2002, 08:36 PM   PM User | #4
undyingfires
New Coder

 
Join Date: Oct 2002
Location: || Canada ||
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
undyingfires is an unknown quantity at this point
I'm going to try searching for this (though nothing as of yet), but is there an attribute I can use within the form/option tag itself?

I know using CSS is good but this is the only place where this problems occurs is with this one drop-down menu (which BTW, you select from a list of options and then 'go').


We've tried width="" and max-width="" and maxwidth=""

Thanks for any help in the meantime
undyingfires is offline   Reply With Quote
Old 12-19-2002, 10:16 PM   PM User | #5
krycek
Regular Coder

 
Join Date: Nov 2002
Location: Bristol, UK
Posts: 932
Thanks: 0
Thanked 0 Times in 0 Posts
krycek is an unknown quantity at this point
well, max-width is CSS only so nope it will not work as an attribute (unless inside a style attribute).

I am not sure that overflow would apply to a select/option element, but you could try overflow: hidden (the attribute would be style="overflow: hidden")

Other than that I am not sure

::] krycek [::
__________________
ithium | SOAPI | SDP | PTPScript manual
"ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."
krycek is offline   Reply With Quote
Old 12-20-2002, 02:55 AM   PM User | #6
cg9com
Senior Coder

 
Join Date: Jul 2002
Posts: 1,628
Thanks: 0
Thanked 0 Times in 0 Posts
cg9com is an unknown quantity at this point
speaking of CSS why not use that?
Code:
<select style="width:300px;">
<option>blah</option>
</select>
that would not wrap though...
__________________

Moderator: General web building

Get out from under them, resist and multiply.
Get out from under precipice and see the sky.
cg9com is offline   Reply With Quote
Old 12-20-2002, 01:29 PM   PM User | #7
undyingfires
New Coder

 
Join Date: Oct 2002
Location: || Canada ||
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
undyingfires is an unknown quantity at this point
Well, I've passed these points onto the person responsible/taking care of the drop-down...

Will let all know what or if it works

Thanks
undyingfires is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:36 AM.


Advertisement
Log in to turn off these ads.