Hi,
I have a page that I've been working on getting cross-browser possitioning with just XHTML and CSS. So far, so good, I've got all the browsers playing ball except Safari. The effect is to have a div with a min-width but which is positioned relative to both the left and the right sides of the browser window. In all other (non-IE) browsers I accomplish this effect with this code:
In other browsers, the div stops shrinking at 200px and you start scrolling if the window gets too small. In Safari, as soon as I add the 'right' style, the min-width gets broken. Is there any other way (even just Safari specific, but preferably would work with Gecko too) to acheive the effect I'm after?
Thanks!!!
I have a page that I've been working on getting cross-browser possitioning with just XHTML and CSS. So far, so good, I've got all the browsers playing ball except Safari. The effect is to have a div with a min-width but which is positioned relative to both the left and the right sides of the browser window. In all other (non-IE) browsers I accomplish this effect with this code:
Code:
<div style="left: 30px;
right: 30px;
min-width: 200px;
background-color: #EE1111;">Effect here.</div>
In other browsers, the div stops shrinking at 200px and you start scrolling if the window gets too small. In Safari, as soon as I add the 'right' style, the min-width gets broken. Is there any other way (even just Safari specific, but preferably would work with Gecko too) to acheive the effect I'm after?
Thanks!!!