...

View Full Version : Centering a table in css help.



Phantom__
11-05-2006, 04:07 PM
For some reason i cant center this table, it wont center for some reason, i tried div align="center" and everything. Any help would be appreciated. and i mean the actual table, not to center the text.

Heres the css.


<style type="text/css">
<!--

#Table_01 {
position:absolute;
width:890px;
height:159px;

}

#td-01 {
position:absolute;
left:0px;
top:0px;
width:890px;
height:114px;
}

#td-02 {
position:absolute;
left:0px;
top:114px;
width:19px;
height:25px;
}

#td-03 {
position:absolute;
left:19px;
top:114px;
width:65px;
height:25px;
}

#td-04 {
position:absolute;
left:84px;
top:114px;
width:68px;
height:25px;
}

#td-05 {
position:absolute;
left:152px;
top:114px;
width:80px;
height:25px;
}

#td-06 {
position:absolute;
left:232px;
top:114px;
width:71px;
height:25px;
}

#td-07 {
position:absolute;
left:303px;
top:114px;
width:72px;
height:25px;
}

#td-08 {
position:absolute;
left:375px;
top:114px;
width:85px;
height:25px;
}

#td-09 {
position:absolute;
left:460px;
top:114px;
width:74px;
height:25px;
}

#td-10 {
position:absolute;
left:534px;
top:114px;
width:338px;
height:25px;
background-image: url(images/test_10.gif)
}

#td-11 {
position:absolute;
left:872px;
top:114px;
width:18px;
height:25px;
}

#td-12 {
position:absolute;
left:0px;
top:139px;
width:890px;
height:20px;
}
a {
font-family: Verdana;
font-size: 9px;
color: white;
}
a:link {
text-decoration: none;
font-size: 9px;
color:#FFFFFF;
}
a:visited {
text-decoration: none;
font-size: 9px;
color: white;
}
a:hover {
text-decoration: none;
font-size: 9px;
color: black;
}
a:active {
text-decoration: none;
font-size: 9px;
color: white;
}
img {
border:0px;
}
</style>

croatiankid
11-05-2006, 04:10 PM
tables exist for this. try adding margin:0 auto;

Phantom__
11-05-2006, 04:37 PM
yea, that didnt work neither.

croatiankid
11-05-2006, 05:55 PM
could you please post either a link or the relevant html, i can't see just from the css how the page is set up

cryonic
11-06-2006, 05:31 AM
i noticed something. You actually named it's ID as "Table_01"? and there are alot of dashes "-". Try removing them. Just a suggestion. I usually avoid using underscores and dashes in CSS.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum