|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Valid CSS options for max-width
I'm using the max-width in IE in my site - specifically I'm using it to set the minimum height of certain elements. Now that it has become a key part of my design, I realized that it generates errors in the W3 validator.
Does anyone know a valid way to use the min-height that will work with IE? |
|
#2
|
||||
|
||||
|
I'm sure you could use JavaScript as a work-around if that's an acceptable solution.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
I hate to admit, but I do not have a strong understanding of JavaScript. I've also tried the IE7 stylesheet from http://dean.edwards.name/IE7/ but it seemed to break my fairly complicated CSS design. I was very disapointed when I realized the max-width in IE trick doesn't pass the validator, but I guess it's not the end of the world. It's a real bummer after working so hard to keep it valid.
|
|
#4
|
||||
|
||||
|
I know what you mean. M$'s borked things up so much that it's nearly impossible to design a site purely with CSS that actually validates. You have to use so many different work-arounds to handle all the quirks.
What exactly are you using that isn't valid? |
|
#5
|
|||
|
|||
|
It's a technique described on this page http://www.svendtofte.com/code/max_width_in_ie/
This example of the min-height in IE is exactly the code I'm using that will not validate: http://www.svendtofte.com/code/max_..._minheight.html Just try to run that last page through the CSS Validator and you can see the error it comes up with. http://jigsaw.w3.org/css-validator/..._minheight.html Other than this, my entire corporate site validates as XHTML 1.1 Strict with a 3-column CSS-based layout. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Valid CSS options for max-width |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|