Hi. I have been trying to center the table of a website i'm working on, but the 'ol align="center" doesn't work for all screen resolutions. Can anyone help me please?
Thanks xx
|
Go4Expert Founder
|
![]() |
| 31May2009,21:39 | #2 |
|
You submitted this question in Articles and I have moved it to forum for discussion and also if you would like to align to vertical center or horizontal center is not clear but I would try to explain both.
For Horizontal center you can use align:center as a style but for vertical center you have to use Javascript to get the height and then position accordingly or even try valign:middle but that would mean you need |
|
Banned
|
|
| 25Jun2009,15:23 | #3 |
|
If you're using frames you might wanna keep the website on 800x600 entirly so you won't be able to use the standard <center> or <div align="center"> tags..
instead you could place the whole page in a frameset: Code:
<framset rows="*,600,*" border="0"> <frame src="blank.html" scrolling="no"> <frameset cols="*,800,*" border="0"> <frame src="blank.html" scrolling="no"> <frame src="your main page.html" scrolling="no"> <frame src="blank.html" scrolling="no"> </frameset> <frame src="blank.html" scrolling="no"> </frameset> Personally I wouldn't recommend doing your page like this but it would work... I'd try to get a page to work in all resolutions and if that doesn't work, do it for 1024x768 because I think that's being used to most nowadays |

