This is a discussion on "Center slice table vertically" within the Web Page Design section. This forum, and the thread "Center slice table vertically are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Center slice table vertically
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Center slice table vertically
Could someone have a look at this for me and advise how to center this table vertically so all the component slices line up correctly within it please?
I have it working in HTML already but I'm trying to use CSS and can't figure it out. I'm a CSS total n00b. Last edited by Legacy_Staff; May 5th, 2006 at 14:40. |
|
|
|
|||
|
Re: Center slice table vertically
if you ment horrizontaly, add margin: 0px auto;
into your style for #table_01 and if you did mean verticly, add margin-top: 50%; instead. Should do the trick. |
|
|||
|
Re: Center slice table vertically
Thx for reply.
I'm trying to align the table to the centre, instead of the left. Tried both of those suggestions but the first didn't seem to do anything, and the second aligns the table to the bottom, but still on the left (actually, this would be useful for something I'm trying to achieve elsewhere *sigh* |
|
|||
|
Re: Center slice table vertically
Thanx Herk',
I used part of your suggestion and it's fixed it up a treat. Original code: #Table_01 { position:absolute; left:0px; top:0px; width:850px; height:170px; Ammended code: #Table_01 { position:absolute; left:50%; top:0px; width:850px; margin-left: -425px; height:170px; Many thx for assists guys. Maybe back later, heheh. |
|
||||
|
Re: Center slice table vertically
Quote:
Of course, if you haven't mentioned it, I'm probably wrong |
|
||||
|
Re: Center slice table vertically
Yeah, I agree, but relative positioning has its own drawbacks sometimes. I think we've all been through "why the heck won't this go into that empty space"
|
|
|||
|
Re: Center slice table vertically
I had noticed you'd used the relative tag but the image centres okay and it appears as it's meant to... I ain't doing nuttin else unless it's broke!
(Will let you know later if it breaks) |
|
|||
|
Re: Center slice table vertically
Thank you Herkelees I will try that.
well done Colin |
![]() |
| Tags |
| center, slice, table, vertically |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Slice it, or float it? | Inkers | Web Page Design | 2 | Nov 13th, 2007 18:03 |
| [SOLVED] background img center in table | robertl | Web Page Design | 9 | Oct 1st, 2007 05:27 |
| vertically center text | alexgeek | Web Page Design | 2 | Aug 14th, 2007 12:47 |
| How to center a page without use of a table | pdk | Web Page Design | 23 | Jan 31st, 2007 11:28 |
| Help with Button dropping slice! | gnarlysurfer | JavaScript Forum | 6 | Jun 22nd, 2006 21:18 |