P
patrick j
Hi
First I must apologise to Mr. Dorayme for my use of his web-page as the
example for my question. In order assist in making him feel better I'll
mention it is an excellent article.
However what I am enquiring about is how to make what he has done work in
IE 6.
Here is the web-page:
http://members.optushome.com.au/droovies/opinion/drugLawsFixed.html
and here is the css:
http://members.optushome.com.au/droovies/opinion/drugLawsFixed.css
It is the declaration of max-width: 600px in the div selector that I'm
enquiring about.
Here it is in context:
div {
max-width: 600px;
margin-top: 30px;
margin-left : auto;
margin-right : auto;
border: 5px solid #ccc;
padding: 30px;
padding-top: 10px;
color : #000;
background-color : #FFF;
}
If you look at this web page in Firefox, Safari, OmniWeb or Camino what
you'll see is that the text of the article is in a box 600 px wide. If you
widen the window of the browser then the margins get wider but the text
area remains in the centre, 600 px in width.
If you narrow the browser window to less than 600 px then the margins
disappear and the central text area starts to narrow so that the text is
now wrapping to the width of the browser window.
Key to all of this is the use of the declarations:
margin-left : auto;
margin-right : auto;
as well as max-width: 600px.
Okay so all is well with the world until you open the web-page in IE 6. Now
you will see that max-width, margin-left, margin-right properties have been
ignored and the article text is simply filling the browser window and
wrapping against the right of the window no matter how wide that window is.
My question obviously is can the max-width property be made to work in IE 6
such that Dorayme's web-page will work in IE 6 as it does in every other
browser I've tried?
Thank you
First I must apologise to Mr. Dorayme for my use of his web-page as the
example for my question. In order assist in making him feel better I'll
mention it is an excellent article.
However what I am enquiring about is how to make what he has done work in
IE 6.
Here is the web-page:
http://members.optushome.com.au/droovies/opinion/drugLawsFixed.html
and here is the css:
http://members.optushome.com.au/droovies/opinion/drugLawsFixed.css
It is the declaration of max-width: 600px in the div selector that I'm
enquiring about.
Here it is in context:
div {
max-width: 600px;
margin-top: 30px;
margin-left : auto;
margin-right : auto;
border: 5px solid #ccc;
padding: 30px;
padding-top: 10px;
color : #000;
background-color : #FFF;
}
If you look at this web page in Firefox, Safari, OmniWeb or Camino what
you'll see is that the text of the article is in a box 600 px wide. If you
widen the window of the browser then the margins get wider but the text
area remains in the centre, 600 px in width.
If you narrow the browser window to less than 600 px then the margins
disappear and the central text area starts to narrow so that the text is
now wrapping to the width of the browser window.
Key to all of this is the use of the declarations:
margin-left : auto;
margin-right : auto;
as well as max-width: 600px.
Okay so all is well with the world until you open the web-page in IE 6. Now
you will see that max-width, margin-left, margin-right properties have been
ignored and the article text is simply filling the browser window and
wrapping against the right of the window no matter how wide that window is.
My question obviously is can the max-width property be made to work in IE 6
such that Dorayme's web-page will work in IE 6 as it does in every other
browser I've tried?
Thank you