HTML lesson in getting things straight

russnet
Posts: 278
Joined: Tue 09 Sep, 2003 09.32
Location: Milton Keynes

Apologies in advance if I don't explain this properly.

Is there a way in which I can design a page but it puts everything in the middle without the use of a table so for example if the page was designed in a 800x600 resolution, if you viewed it in a higher resolution, the page itself would be in the middle and either side would be a coloured area rather than the html placing things directly in the middle line by line so it looks out of place (if that makes sense!)
Image
Aston
Posts: 278
Joined: Fri 15 Aug, 2003 14.28
Location: London

Rather like getting bars on a 4:3 programme when watching on a widescreen TV? :D
Neil Jones
Posts: 661
Joined: Thu 11 Sep, 2003 20.03
Location: West Midlands

russnet wrote:Is there a way in which I can design a page but it puts everything in the middle without the use of a table so for example if the page was designed in a 800x600 resolution, if you viewed it in a higher resolution, the page itself would be in the middle and either side would be a coloured area rather than the html placing things directly in the middle line by line so it looks out of place (if that makes sense!)
Wrap it in DIVs:

Code: Select all

<div align="center">
Your web page code here
</div>
As for the coloured sidebars: I dunno. Clever use of a background image behind your content would do it I suppose but that would require separate versions for each resolution UNLESS you was to use a small patch which is then tiled across the page going behind your main content, but I have a horrible feeling this wouldn't work as intended in one of the mainstream browsers.
russnet
Posts: 278
Joined: Tue 09 Sep, 2003 09.32
Location: Milton Keynes

Thanks for that but I've already tried the DIV tag. What I'm trying to say is that I want it to stay in a predefined area in the middle of screen so no matter how big your browser window is providing it covers the resolution you set it at, the window will remain the same size and the space either side will be a background that you've asked it to set it as, be it a picture or a set background colour.
Image
Please Respond