Help - Search - Member List - Calendar
Full Version: how to specify minimum page width?
WorkTheWeb Forums > Webmaster Resources > HTML Help
Support our Sponsors!
Greg N.
I've got a CSS based site that is all nicely elastic. However, when the
browser window gets too narrow, things get a bit ugly, if not messy.

What I'd like to do, is somehow specify a minimum browser width. If the
browser is resized narrower than that nminimum, elasticity should end
and the horizontal scroll bar should appear.

It's probably simple, but I just can't find a good way to do it. Help?

Els
Greg N. wrote:

QUOTE
I've got a CSS based site that is all nicely elastic.  However, when the
browser window gets too narrow, things get a bit ugly, if not messy.

What I'd like to do, is somehow specify a minimum browser width. If the
browser is resized narrower than that nminimum, elasticity should end
and the horizontal scroll bar should appear.

It's probably simple, but I just can't find a good way to do it.  Help?

min-width:40em; works for most browsers.
For IE you'll need tricks to do it.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Dave Edmunds - Paralyzed

Greg N.
Els wrote:

QUOTE
min-width:40em; works for most browsers.
For IE you'll need tricks to do it.

That's a funny statement.

IE *is* most browsers, like it or not.

Els
Greg N. wrote:

QUOTE
Els wrote:

min-width:40em; works for most browsers.
For IE you'll need tricks to do it.

That's a funny statement.

IE *is* most browsers, like it or not.

No, IE is not most browsers.
IE may have the largest amount of installations/users, but it only is
4 browsers. (Counting MacIE5.2, WinIE5, 5.5 and 6).
Now count Mozilla, Firefox, Netscape, Opera, Konqueror, Lynx, Icab,
and all the other ones I can't think of right now.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: David Bowie - Ashes To Ashes

Leif K-Brooks
Greg N. wrote:
QUOTE
That's a funny statement.

IE *is* most browsers, like it or not.

IE is not a Web browser.

Rovin
Leif K-Brooks wrote:
QUOTE
IE is not a Web browser.

Correct, it's a bug

Travis Newbury
Rovin wrote:
QUOTE
Leif K-Brooks wrote:
IE is not a Web browser.
Correct, it's a bug

MS bashers... how 90's...

--
-=tn=-

dorayme
QUOTE
From: Els <[Email Removed]

Greg N. wrote:

Els wrote:

min-width:40em; works for most browsers.
For IE you'll need tricks to do it.

That's a funny statement.

IE *is* most browsers, like it or not.

No, IE is not most browsers.

OP was not likely meaning to be literal. It is a sort of American speak, and
frankly I thought he put his point well and more succinctly than to spell it
out in literal terms. What he is saying is just one step removed from the
literal-and-true. He saying something true, relevant but no, not literal.

dorayme

Vladdy
Greg N. wrote:
QUOTE
Els wrote:

min-width:40em; works for most browsers.
For IE you'll need tricks to do it.


That's a funny statement.

IE *is* most browsers, like it or not.
For the sub-par HTML renderer a.k.a. IE you can resort to their

proprietary expression() as the CSS property value:

width: expression((document.documentElement.clientWidth < 700?700 :
document.documentElement.clientWidth) + "px");

--
Vladdy
http://www.klproductions.com

Leif K-Brooks
Travis Newbury wrote:
QUOTE
Rovin wrote:

Leif K-Brooks wrote:

IE is not a Web browser.

Correct, it's a bug

MS bashers...  how 90's...

So horribly-broken products magically become all right when the
millennium (century? decade?) changes?

Travis Newbury
Leif K-Brooks wrote:
QUOTE
Travis Newbury wrote:
Rovin wrote:
Leif K-Brooks wrote:
IE is not a Web browser.
Correct, it's a bug
MS bashers...  how 90's...
So horribly-broken products magically become all right when the
millennium (century? decade?) changes?

No, Microsoft bashing is just childish and immature at best...


--
-=tn=-

Leif K-Brooks
Travis Newbury wrote:
QUOTE
Leif K-Brooks wrote:

Travis Newbury wrote:

Rovin wrote:

Leif K-Brooks wrote:

IE is not a Web browser.

Correct, it's a bug

MS bashers...  how 90's...

So horribly-broken products magically become all right when the
millennium (century? decade?) changes?

No, Microsoft bashing is just childish and immature at best...

No one here has bashed Microsoft. Some of us have been criticizing one
of its most broken products, Internet Explorer.

Sorry. Let me start again.

I love IE! I love screwless computer cases! I love Firestone tires! I'm
not childish, and I know it because I love every broken product ever
invented!

Travis Newbury
Leif K-Brooks wrote:
QUOTE
No, Microsoft bashing is just childish and immature at best...
No one here has bashed Microsoft. Some of us have been criticizing one
of its most broken products, Internet Explorer.

"IE is not a browser"
"No it is a bug"

Apparently we have a different view over what bashing is. If you have a
complaint with IE (and there are many, I only use it when the site will
not work right with FF) then mention them. Saying "IE is not a browser"
or "IE is a bug" is, in my opinion, bashing.

--
-=tn=-

Vladdy
Travis Newbury wrote:

QUOTE
Apparently we have a different view over what bashing is.  If you have a
complaint with IE (and there are many, I only use it when the site will
not work right with FF) then mention them.  Saying "IE is not a browser"
or "IE is a bug" is, in my opinion, bashing.


browser:
2. a computer program used for accessing sites or information on a
network (as the World Wide Web)

Can IE access XML file? No. Therefore it is not a browser, but a sub par
HTML renderer.


--
Vladdy
http://www.klproductions.com

dorayme
QUOTE
From: Vladdy <[Email Removed]

Can IE access XML file? No. Therefore it is not a browser, but a sub par
HTML renderer.

This is poor reasoning... See if you can spot the error.

dorayme

Leif K-Brooks
Vladdy wrote:
QUOTE
Can IE access XML file? No. Therefore it is not a browser, but a sub par
HTML renderer.

Can Mozilla render PDF files natively? No. Therefor it is not a browser.

(XML isn't a core Web technology. The core parts of HTTP which IE
doesn't support are.)

Els
Stan McCann wrote:

QUOTE
Els was perfectly correct in his statement.

Impossible. Would require a change ;)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Stan McCann
"Greg N." <[Email Removed]> wrote in news:damf4u$od8$[Email Removed]:

QUOTE
Els wrote:

min-width:40em; works for most browsers.
For IE you'll need tricks to do it.

That's a funny statement.

IE *is* most browsers, like it or not.


No, IE is the most popular browser (but slipping). There are many
others that make up "most." Els was perfectly correct in his
statement.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.

Els
Stan McCann wrote:

QUOTE
Els <[Email Removed]> wrote in
news:[Email Removed]:

Stan McCann wrote:

Els was perfectly correct in his statement.

Impossible. Would require a change ;)

Am I to take that as you are a her?  Sorry.

np :-)
Els is a Dutch abbreviation of Elizabeth :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Stan McCann
Els <[Email Removed]> wrote in
news:[Email Removed]:

QUOTE
Stan McCann wrote:

Els was perfectly correct in his statement.

Impossible. Would require a change ;)


Am I to take that as you are a her? Sorry.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.

Greg N.
Stan McCann wrote:

QUOTE
No, IE is the most popular browser (but slipping).  There are many
others that make up "most."  Els was perfectly correct in his
statement.

Got any data to substantiate that?

Are you talking about installed base or usage frequency? Somewhat
realistic usage frequency figures can be gathered through web
statistics. I can't think of a way to even begin to figure out
statistics about installed browsers.

This one here, http://www.w3schools.com/browsers/browsers_stats.asp
say the IE usage frequency is somewhere between 70 and 80 percent.

Don't get me wrong, I'm not advocating IE. But this here forum is not
about which browser ist best, it's about how to make web sites that work
in the real world.

Stan McCann
"Greg N." <[Email Removed]> wrote in
news:db3cpp$fip$[Email Removed]:

QUOTE
Stan McCann wrote:

No, IE is the most popular browser (but slipping).  There are many
others that make up "most."  Els was perfectly correct in his
statement.

Got any data to substantiate that?

Are you talking about installed base or usage frequency?  Somewhat
realistic usage frequency figures can be gathered through web
statistics.  I can't think of a way to even begin to figure out
statistics about installed browsers.

This one here, http://www.w3schools.com/browsers/browsers_stats.asp
say the IE usage frequency is somewhere between 70 and 80 percent.

There's where I get my data from. As a web developer, unfortunately,
we should all be paying attention to those stats. I make every effort
to make sure that what I do is usable in the most popular browser as
well as other browsers.

QUOTE
Don't get me wrong, I'm not advocating IE. But this here forum is
not about which browser ist best, it's about how to make web sites
that work in the real world.

You are absolutely correct. The poster that Els corrected brought up
the "best browser" issue IIRC. So, really, you should be ragging on me
for a "me too" post simply agreeing with Els rather than being off
topic. And so as to not start some silly flame war, no, I didn't
consider your post "ragging on me." :) But now that I think about it,
isn't *your* post off topic? ;)

And Els already got on me for referring to her as a he. ;)

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.