Results 1 to 9 of 9
Thread: fixed table
-
05-11-2004, 08:46 AM #1WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
fixed table
im trying to get my design centred in the middle of the page.
i dont want the table to move when the browser is moved though.
what should i do to get it fixed like this?
regards
-
05-11-2004, 09:00 AM #2Aspiring Evangelist
- Join Date
- Jan 2004
- Posts
- 406
Do you mean that you don't want it to move if the browser is resized?
-
05-11-2004, 06:19 PM #3WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
yeah thats what i mean! do i have to set the margins or something?
cheers
-
05-11-2004, 06:42 PM #4WHT Addict
- Join Date
- Apr 2004
- Posts
- 167
Simple:
<table align="center" width="XXX">
In this way your table won't be resized by the browser.
-
05-13-2004, 09:44 AM #5WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
i didnt mention the table being resized, i want it to be centered, but when the browser window is shrunk, i dont want the table remaining in the center of the screen.
im not sure, but i have a funny feeling i have to just use a blank table cell as a margin, for whatever resolution im designing for?
does anyone have any pointers? or understand what im talking about?
cheers
-
05-15-2004, 09:20 AM #6Temporarily Suspended
- Join Date
- May 2004
- Posts
- 5
nice one !
-
05-15-2004, 01:07 PM #7WHT Addict
- Join Date
- Feb 2004
- Location
- FTL on the Information Super Highway
- Posts
- 142
With your outermost table, set it for:
<table width="100%">
and it will stretch fully left to right.Serial Beggar
Hate Your Family? Have No Friends? Make Me Your Beneficiary!
-
05-15-2004, 01:12 PM #8Web Hosting Guru
- Join Date
- Mar 2004
- Posts
- 287
I don't think he wants it stretched - sounds like he has a table that is NOT the full width of the screen and he doesn't want it to float to the left when the browser is dragged to a smaller view.
What you might do is add a large margin to the left side. For example...
<body leftmargin="200">
This prevents the table from floating to the left once it's 200 pixels from the far left side - like a spacer. Give that a try.Something witty here...
-
05-15-2004, 07:34 PM #9WHT Addict
- Join Date
- Dec 2003
- Posts
- 126
yeah thats what i was getting at in my last post, apologies for the confusion!
its for an accountants website, i was at my wits end trying to place a navbar within a layer (javascript / span id) and get it to stay in place on the table border.
the guys getting it all left aligned!