PDA

View Full Version : Fixed window size of webpage...How to do it?



Paul81
11 Nov 2005, 10:12 AM
How can I fix a window size of webpage in DreamweaverMX.

I'd like to build an website of fixed size 1024/768, so if I place on my web page a background picture of 1024/768 size it won't be possible for the user to stretch the browser or the background image won't tile and will remain in the centre of browser window like on the Velvet Revolver website.
www.velvetrevolver.com

Rincewind
11 Nov 2005, 09:41 PM
That site doesn't have a background image. It's just one big flash file. However, if you did want a background image of fixed size centered on the screen, you just use this css.

body {
background-image:url(file.gif);
background-repeat:no-repeat;
background-position:center center;
}