By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

max-width property

P: n/a
hi.

does anyone know about the "max-width" property? I am trying to implement
it in a page. How to do? How to do? How to do? If this is something that is
not used, or supported by current browsers, anyone know if there is such a
way to implement something like *maximum width of element* property?

Thanks


Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Disco Octopus" <di**********@yahoo.com> wrote in
news:iq*****************@nnrp1.ozemail.com.au:
hi.

does anyone know about the "max-width" property? I am trying to
implement it in a page. How to do? How to do? How to do? If
this is something that is not used, or supported by current
browsers, anyone know if there is such a way to implement
something like *maximum width of element* property?

Doesn't work in IE but there is a workaround:

Maxwidth-Workaround für Internet Explorer (IE)
http://www.bestviewed.de/css/bsp/maxwidth/

max-width in Internet Explorer
http://www.svendtofte.com/code/max_width_in_ie/

Ideal line length for content
http://www.maxdesign.com.au/presentation/em/

--
Kayode Okeyode
http://www.kayodeok.co.uk/weblog/
http://www.kayodeok.btinternet.co.uk.../webdesign.htm
Jul 20 '05 #2

P: n/a
in post <news:iq*****************@nnrp1.ozemail.com.au>
Disco Octopus said:
does anyone know about the "max-width" property?


http://www.w3.org/TR/REC-CSS2/visude...min-max-widths

--
brucie
Jul 20 '05 #3

P: n/a
in news:bt************@ID-117621.news.uni-berlin.de,
brucie typed:
in post <news:iq*****************@nnrp1.ozemail.com.au>
Disco Octopus said:
does anyone know about the "max-width" property?


http://www.w3.org/TR/REC-CSS2/visude...min-max-widths


yep. ta love. but this doesnt work for some browsers. i wanna emulate this
behaviour for ie. i have found some ways to do it, but they either use
tables, or javascript, or ie specific code. think i'll go with the tables
choice.


Jul 20 '05 #4

P: n/a
Disco Octopus wrote:

does anyone know about the "max-width" property? I am trying to
implement it in a page. How to do? How to do? How to do?
p {max-width: 50em;}
If this is something that is not used, or supported by current
browsers,
Supported by several browsers, including Mozilla, Opera, IE 5.x/Max,
and Safari. (Not positive about the last 2, as I don't have a Mac on
which to verify. But I think I've used that in the past with success
on those browsers.) Likely others.

Not supported by the operating system component MSIE/Win.
anyone know if there is such a way to implement something like
*maximum width of element* property?


? Uh, "maximum width of element" property, yeah, it's called "max-width."

f'ups suggested

--
Brian
follow the directions in my address to email me

Jul 20 '05 #5

P: n/a

"kayodeok" <ne*********@btopenworld.com> wrote in message
news:Xn*************************@130.133.1.4...
"Disco Octopus" <di**********@yahoo.com> wrote in
news:iq*****************@nnrp1.ozemail.com.au:
hi.

does anyone know about the "max-width" property? I am trying to
implement it in a page. How to do? How to do? How to do? If
this is something that is not used, or supported by current
browsers, anyone know if there is such a way to implement
something like *maximum width of element* property?

Doesn't work in IE but there is a workaround:

Maxwidth-Workaround für Internet Explorer (IE)
http://www.bestviewed.de/css/bsp/maxwidth/

max-width in Internet Explorer
http://www.svendtofte.com/code/max_width_in_ie/


The trick in the above-cited page works only if the ambient font size is set
to a number rather than a number and a measurement unit or a relative size.
Too bad! Does anyone know of a way to have the expression compute the font
size in pixels given that is specified as, say, "80%"?

Jul 20 '05 #6

P: n/a
Bob
On Sun, 11 Jan 2004 22:28:25 +1000, "Disco Octopus"
<di**********@yahoo.com> wrote:
think i'll go with the tables
choice.

The serious downside to the table choice is that as soon as
you put a max (pixel) width on, the tables change to truncate
mode on resize instead of re-wrap mode.
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.