473,395 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Best min-width, max-width hack for IE6 ?

What is the best way to write a page that uses min-width and max-width
and will work IE6, IE7 and other modern browsers? [my tiny base of
clients are all corporate microserfs so I must get the IE pages right
- it doesn't actually matter about other browsers.]

I realise that I need a hack for IE6 but not for IE7 so what is the
best IE6 hack that IE7 will ignore? Should I load different style
sheets based up the browser (like this)

<!--[if lte IE 6]>
<link rel="stylesheet" href="IE6-style.css" type="text/css" />
<![endif]-->

if so then where's there a good reference for that <!--[if lte IE 6]>
syntax and which browsers support it?

Am I right in thinking that I only need to apply min-width / max-width
to my outer page element and that I can then use (mainly) percentage
width measurements for all inner elements? I say 'mainly' because I'm
still inclined to use absolute measurements for small things like
borders, padding and margins.

Apart from width, elements are positioned relatively and absolutely on
these pages and I am required to rewrite them to accomondate a degree
of scaling between 1000 to about 1400 px (the precise max-width has
not yet been decided upon). The pages are currently written for an
absolute width of 1024 px.

Mar 19 '07 #1
2 11660
On Mar 19, 10:41 am, "mark4asp" <mark4...@gmail.comwrote:
What is the best way to write a page that uses min-width and max-width
and will work IE6, IE7 and other modern browsers? [my tiny base of
clients are all corporate microserfs so I must get the IE pages right
- it doesn't actually matter about other browsers.]

I realise that I need a hack for IE6 but not for IE7 so what is the
best IE6 hack that IE7 will ignore? Should I load different style
sheets based up the browser (like this)

<!--[if lte IE 6]>
<link rel="stylesheet" href="IE6-style.css" type="text/css" />
<![endif]-->
*try* this style-

someElement {width:expression(this.offsetWidth>200?200:'');}

where 200 is your maxWidth

Mar 19 '07 #2
Scripsit mark4asp:
Apart from width, elements are positioned relatively and absolutely on
these pages and I am required to rewrite them to accomondate a degree
of scaling between 1000 to about 1400 px (the precise max-width has
not yet been decided upon). The pages are currently written for an
absolute width of 1024 px.
When you'll have to make major changes anyway, why don't you consider the
same approach as in HTML authoring for the WWW? You can learn a lot about it
in this group, especially if you just ignore the noise and the questions
that really relate to intranets and to techniques that are guaranteed to
fail on the WWW (and also on intranets more often than people think).

On the WWW, the canvas width varies from zero pixels to infinity.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Mar 19 '07 #3

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

Similar topics

13
by: | last post by:
From ASP I run a query using MIN(some_field/parameter) Now I need to pass this parameter to the query from ASP code How do I do that? Syntax like MIN( / ) does not work
9
by: Not Me | last post by:
Hi, I'm trying to grab records with a priority over those marked as yes (-1) in a certain field. Trying "select id, min(bit) from tab group by id" does not work, as the min operator doesn't...
11
by: Gianni Mariani | last post by:
I have a couple of template methods that take any integer type however, the first "if" statement becomes a constant expression when T is an unsigned type. #include <limits> template...
3
by: Claudio Grondi | last post by:
Trying to understand the outcome of the recent thread (called later reference thread): "Speed quirk: redundant line gives six-fold speedup" I have put following piece of Python code together:...
3
by: imani_technology_spam | last post by:
I know you can use the min function to get the first date within a recordset. However, is there a way to get the second date in a recordset? In other words, is there a way to get "min(date) + 1"...
3
by: Irene | last post by:
Hi all, I have set up a simple VB program (and later on an ASP interface) to manage an Athletics database. I'm using Access 2000. To simplify, I have the Athlets, the Competitions and the...
5
Min
by: Gregc. | last post by:
Hi I am trying to find the min of a list of numbers. For example, if a user enters 10 numbers 1,2,3,4,5,6,7,8,9,9 then the min would be 1. I've looked as past posts on the topic, and there was...
4
by: jaip26 | last post by:
All, I came across a strange situation in my query. Basically here is the result of my query. col1 col2 col3 col4 col5 col6 col7...
16
by: Peng Yu | last post by:
Hi, I'm wondering if there is a min function (in boost, maybe?) that accepts any number of arguments? std::min only accepts two arguments. If I want to get the minimum number out of many, I have...
1
by: teneesh | last post by:
I'm building a report for my boss and he wants the report to display a field that has the minimum value of all minimal values for 5 min fields. so for example, when i run this query - Select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...

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.