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!)
HTML lesson in getting things straight
-
- Posts: 661
- Joined: Thu 11 Sep, 2003 20.03
- Location: West Midlands
Wrap it in DIVs: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!)
Code: Select all
<div align="center">
Your web page code here
</div>
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.
