Forum Moderators: not2easy
It seems to me that Safari doesn't (yet?) understand the attributes "max-width" (if position: absolute, postition: relative is fine) and "min-width" (if there is a width: n)...
Is that so, or could it be that I do faulty css?
the CSS:
div#container {
position: absolute; left: 5%; width: 85%;
max-width: 800px;
min-width: 400px;
}
Already: Thanks!
david
"Many standards charts have asserted that Safari supports min-width and max-width. How wrong you are. Safari only supports these properties on non-positioned non-replaced elements..."
;)
Here's what I've got (cropped irrelevant bits):
div.timeline {
position: absolute;
bottom: 24px;
width: 9px;
overflow: hidden;
}
div.timeline:hover {
width: auto;
min-width: 9px;
max-width: 96px;
}
and the results are what one would expect.
Remove the max-width, and the div expands to the line's length, remove the min-width, and an empty <div> shrinks to nothing upon hovering... Leave it there, and all is well...
stumbled (I couldn't get it to work a few hours ago...) myself. Maybe Safari can't do if there's some other width defined, such as percentages etc...