473,465 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to set limit to the window width

I have a 3 column CSS. When I resize the windows to smaller size, the
left and right column width are not change, but the middle column will
shrink.
What I want to do is to set a limitation to the middle column so it
can shrink only up to certain width said 100px. so when I keep
shrinking the windows until really small, I have to scroll left and
right to see the content.

Eg, www.mywebhome.ca

Please advice. Thanks.
Jul 20 '05 #1
7 11433
jo****@yahoo.com wrote:
What I want to do is to set a limitation to the middle column so it
can shrink only up to certain width said 100px.
min-width: 100px; /* does not work in IE Win */
so when I keep shrinking the windows until really small, I have to
scroll left and right to see the content.


I can't imagine why you *want* horizontal scrolling. Most web authors
want to avoid them. But it's your site.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
In article Brian wrote:
jo****@yahoo.com wrote:
What I want to do is to set a limitation to the middle column so it
can shrink only up to certain width said 100px.


min-width: 100px; /* does not work in IE Win */
so when I keep shrinking the windows until really small, I have to
scroll left and right to see the content.


I can't imagine why you *want* horizontal scrolling. Most web authors
want to avoid them. But it's your site.


Because he is using 3 col layout, that just don't work on small window.
Instead of solving problem (one column too many), he tries to make it
look bit less nasty and allow main content area to have more than one
word at a line.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #3
Lauri Raittila <la***@raittila.cjb.net> wrote in message news:<MP************************@news.individual.n et>...
In article Brian wrote:
jo****@yahoo.com wrote:
What I want to do is to set a limitation to the middle column so it
can shrink only up to certain width said 100px.


min-width: 100px; /* does not work in IE Win */
so when I keep shrinking the windows until really small, I have to
scroll left and right to see the content.


I can't imagine why you *want* horizontal scrolling. Most web authors
want to avoid them. But it's your site.


Because he is using 3 col layout, that just don't work on small window.
Instead of solving problem (one column too many), he tries to make it
look bit less nasty and allow main content area to have more than one
word at a line.


Yes, thats exactly what I mean. So, anyway to set the min-width for IE??
Jul 20 '05 #4
In article jo****@yahoo.com wrote:
Lauri Raittila <la***@raittila.cjb.net> wrote in message news:<MP************************@news.individual.n et>...
Because he is using 3 col layout, that just don't work on small window.
Instead of solving problem (one column too many), he tries to make it
look bit less nasty and allow main content area to have more than one
word at a line.


Yes, thats exactly what I mean.


That's what I thought.
So, anyway to set the min-width for IE??


To only shoot yourself on toe, instead of foot, find that min-width JS
hack for IE.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #5
I just read code from http://www.svendtofte.com/code/max_width_in_ie/ where
can do the trick. However when I use it in my css, the web page hang and not
responding when I minimize it.

Below is my code fro middle div:

#middle {
margin: 0px 185px 0px 175px;
padding-top:10px;
padding-bottom:15px;
border: #999 1px solid;
min-width:800px;
width:expression(document.body.clientWidth < 800? "800px": "auto" );
}

Please advice. Thanks!
Jul 20 '05 #6
In article Jorntk wrote:
I just read code from http://www.svendtofte.com/code/max_width_in_ie/ where
can do the trick. However when I use it in my css, the web page hang and not
responding when I minimize it.

Below is my code fro middle div:


URL?

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #7
A bit of editing makes Lauri Raittila's point a bit clearer, perhaps.

jo****@yahoo.com wrote:
Lauri Raittila <la***@raittila.cjb.net> wrote

he is using 3 col layout, that just don't work on small
window. Instead of solving problem (one column too many)


Yes, thats exactly what I mean.


That you don't want to solve the problem?

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Put 030516 in email subj to get thru | last post by:
I've always been bothered about having to statically declare the size of a Java applet window (container?) in the calling HTML. I've always wanted the moral equivalent of width=50% statement (of...
1
by: Grant Ito | last post by:
Hi, What I thought to be a fairly straight-forward project is turning out to be ridiculous. I'm simply trying to determine the width and height of a browser window in IE v.6.0, but to no avail....
3
by: Phil Powell | last post by:
<script type="text/javascript"> <!-- function getWinWidth() { isNav = (document.all) ? false : true; isIE = (document.all) ? true : false; if (isNav && !isIE) return(window.innerWidth); else...
3
by: Lee David | last post by:
What are the variables I can use to find the width of a particular window? I have a moving ball thing on the page and want it to got the width of the current active window where the code is. I...
2
by: Newbie | last post by:
I'm having trouble changing the width of my pop up window. Changing the width has no effect. private void LinkButton1_Click(object sender, System.EventArgs e) { string script = "<script...
7
by: Peter Parker | last post by:
Could someone show me how to limit caption width to image width dynamically (image width is not known in advance) if that's possible? I was thinking of using Javascript to get the image width which...
1
by: MrZed | last post by:
I run into this problem, and I read many places that these is not solvable. I have one solution (workaround), not simple, a little trickier, limited, but possible and usable. My main problem...
2
by: =?Utf-8?B?WVhR?= | last post by:
Extract the string from XML file, using ToolTip1.SetToolTip to load the string, but the width is big, how to limit the width of ToolTip? thank you.
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.