|
-
Nov 25th, 2005, 07:03 AM
#1
Thread Starter
Fanatic Member
CSS for table alignment
what is the CSS attribute for table postion if i want align the table to center??
Last edited by kenny_oh; Nov 25th, 2005 at 07:08 PM.
-
Nov 25th, 2005, 08:25 AM
#2
Hyperactive Member
Re: CSS for table alignment
Do you mean something like this?
Code:
<HTML>
<HEAD>
<TITLE>Center a Table</TITLE>
</HEAD>
<BODY>
<DIV align="center">
<TABLE border="1">
<TR>
<TD>
First Row, First Cell
</TD>
<TD>
First Row, Second Cell
</TD>
</TR>
<TR>
<TD>
Second Row, First Cell
</TD>
<TD>
Second Row, Second Cell
</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Nov 25th, 2005, 08:40 AM
#3
Thread Starter
Fanatic Member
Re: CSS for table alignment
no...anyway.....the problem is solved!!
-
Dec 5th, 2005, 07:07 PM
#4
Hyperactive Member
Re: CSS for table alignment
 Originally Posted by kenny_oh
no...anyway.....the problem is solved!!
What was the solution you found?
-
Dec 9th, 2005, 08:57 AM
#5
Thread Starter
Fanatic Member
Re: CSS for table alignment
-
Dec 11th, 2005, 05:22 PM
#6
PowerPoster
Re: CSS for table alignment
 Originally Posted by kenny_oh
lol, thats not centered. 
You need to center the containing div (so its compatible with IE) or whatever, and then do,
margin-left:auto;
margin-right:auto;
I believe.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|