2 problems

J

Jochen Fuhrmann

1) i wanna center a table by using a css-stylesheet, i didn't find a way to do
that, i tried
table {align:center} but it didn't word.

2) i wanna manage that a tables right side fits with the right browser side
without any space between.

would be great if anybody could help me ... jochen
 
S

Steve Pugh

Jochen Fuhrmann said:
1) i wanna center a table by using a css-stylesheet, i didn't find a way to do
that, i tried
table {align:center} but it didn't word.

table { margin-left: auto; margin-right: auto;}

Works in decent browsers and IE6 in standards mode.

For other browsers use HTML or nest the table inside a div with
text-align: center; and rely on bugs to do what you want. (You'll
probably need table {text-align: left} to stop all the contents of the
table being centered within their cells.)
2) i wanna manage that a tables right side fits with the right browser side
without any space between.

body {margin-right: 0; padding-right: 0}
table {float: right; margin-right: 0}

Steve
 
L

Leif K-Brooks

Toby said:
This means "center all the text *within* the table" so won't work.

Actually, it means nothing. You're thinking of text-align, there is no
property named "align" in CSS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top