Too wide, too narrow?

As for the 100% width, well that had to go. I’ve opted for the max-width solution (1024) offered by most browsers and a max-width workaround for IE.

I also wanted a min-width so I hacked Sven’s solution and made it work in reverse. Added a couple of DIVs around my page and hey presto I’ve got a max, mix-width solution

Here’s the CSS:

#max {
margin:auto;
max-width:980px;
width:expression(document.body.clientWidth greaterThanSign 980? “980px”: “auto” );
}
#min {
min-width:770px;
width:expression(document.body.clientWidth lessThanSign 770? “760px”: “auto” );
}

Sorry about the greaterThanSign etc. in the code. Wordpress doesn’t seem to convert the HTML into the corrent character and the page is failing the accessibility check.

Powered by Gregarious (39)

Leave a Reply


Close
E-mail It
Socialized through Gregarious 39