I have a div
#footer_container {
position: fixed;
width: 540px;
height: 45px;
margin-left: -270px
}
And I would like the CSS left value to be left: 50% for Browser-widths >1000px and left: 500px for browser widths of <1000px
I know this can easily be done with media queries but they are problematic and dont work with IE8.
Can someone please do this with javascript? Thanks
Works with CSS3-compatible browsers, updates automatically with no need for
window.onresizeor similar code… or indeed any code.