473,499 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resizing DIVs to max width

30 New Member
Hi All,

I want to create a flexible DIV based layout.

Here is design layout, globtier 1st template

Layout should have horizontal scrolled on 800 resolutions.
And, It should not stretch after 1200 page width, that means pages should be stretch from 800 to 1200 px in width.

It should support at least IE/Firefox and Opera browser.

Can you help me to create this layout?


Thanks
Oct 5 '06 #1
2 2998
steven
143 New Member
Not possible with IE.

There's a CSS property for max-width and min-width, along with height too... but IE doesn't recognise these properties unfortunately.

You can cheat a little, make it dynamic for one browser and not for another, using the underscore "hack".

[code]
div#content {
min-width: 800px;
max-width: 1200px;
_width: 1200px; /* for InternetExploder */
}

The underscore hack basically works because IE doesn't recognise properties or names that begin with an underscore. Essentially, it ignores the existance of the beginning underscore, so whilst other browsers see _width and understand that there's no such property called _width, IE only sees 'width'.

Also, are you really working on this site? Because firstly, that doesn't look like a template that's just been designed and you're not sure whether to use it. That's a complete website, which apparently is finished and has complete content (and furthermore is currenty already live).
Oct 5 '06 #2
jitu78
30 New Member
Not possible with IE.

There's a CSS property for max-width and min-width, along with height too... but IE doesn't recognise these properties unfortunately.

You can cheat a little, make it dynamic for one browser and not for another, using the underscore "hack".

[code]
div#content {
min-width: 800px;
max-width: 1200px;
_width: 1200px; /* for InternetExploder */
}

The underscore hack basically works because IE doesn't recognise properties or names that begin with an underscore. Essentially, it ignores the existance of the beginning underscore, so whilst other browsers see _width and understand that there's no such property called _width, IE only sees 'width'.

Also, are you really working on this site? Because firstly, that doesn't look like a template that's just been designed and you're not sure whether to use it. That's a complete website, which apparently is finished and has complete content (and furthermore is currenty already live).

Thanks Steven

Your code really fantastic...:)

My Problem has been solved.
Oct 6 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
32026
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
6
6187
by: Robert J. O'Hara | last post by:
I'm one of those people who practices what some consider "dull" and others consider "elegantly conservative" page design. I appreciate good traditional typography and standards-compliant liquid...
5
2621
by: Robert J. O'Hara | last post by:
For some time I've made use of the max-width property in CSS to cause my pages to appear as a centered block against a contrasting background. This works well in new browsers (Mozilla, etc.) and...
2
5471
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
15
13479
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
4
2734
by: johkar | last post by:
The below script sets and maintains the equal heights of 2 (or 3) divs which are floated next to each other on a page. I want to ensure that I have not overlooked anything and it will not error. ...
2
3455
by: =?iso-8859-1?q?Jean-S=E9bastien?= | last post by:
hello, how can i resize my html content to displayed size? all my divs inside are scrollable and resized on loading and on resizing. thanx
9
5266
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
10
7038
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
7128
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
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7169
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
7215
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
6892
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
4597
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
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.