| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2006
Posts: 8
|
Web Page Alignment
Can anyone help me. I made and published my own business website but am having problems with it. It only aligns correctly on my screen and no other. Can anyone help me align it so it is centered on all screen resolutions and all browsers. |
|
|
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Jan 2006
Posts: 8
|
Quote:
Sorry www.jpbcouriers.co.uk |
|
|
|
|
#4 (permalink) |
|
Everything is fine.
|
Well I presume you are trying to center the entire table in the browser ? In which case, you have this code: Code:
Which you should replace with: Code:
Basically your centering div stops before the table so the table cannot be aligned with it. Move the </div> to right after the </table>. The div will then encompass the entire table and align it in the center of the screen. By the way, times have changed and using tables for layout is old-fashioned and over-bloating HTML. CSS is the way forward however I won't lecture you on that as you simply asked for a straight forward answer to a problem with your current code - Mike |
|
|
|
#6 (permalink) |
|
Senior Member
Join Date: Mar 2006
Posts: 131
|
You could try to center within the cascading style sheet (css) html Code:
css Code:
|
|
|
|
#7 (permalink) | |
|
Everything is fine.
|
Quote:
Fair point but the OP didn't have any CSS styles in use on his site at the time, therefore it would have been more long-winded to have gone down that route and may have added confusion seeing as this was his first website. I did mention about CSS but instead just answered his question. - Mike |
|
|
![]() |