July 18, 201115 yr hi! everyone! ^^ i got two questions to ask regarding for my assignment which i am doing now. i am now doing a horizontal scroll website. i faced the problem of the size. is there any way that can show the website follow the size of the browser or screen? so that the website won't look weird or too big or too small i just find the javascript on scale background image but cannot find the whole website 1 the 2nd question position:absolute can function well in all browser or not? if not,got any other way of position so that i can move my element to anywhere i want inside the div? thanks ^^
July 18, 201115 yr For question 1, you can use "em" or "%" instead of "px". Those two units are relative to the window and/or browser size. Here you can read about it: http://jontangerine.com/log/2007/09/the-incredible-em-and-elastic-layouts-with-css
July 19, 201115 yr I don't usually like to link to myself, but one of our guys has written a nice blog about responsive web design: http://www.tristarwebdesign.co.uk/blog/website-design/css3-media-queries-responsive-web-design/ Position absolute will function in all browsers, as long as it's parent has position relative. Position fixed does not function in ie6 very well, but there are javascript work arounds.
Create an account or sign in to comment