S
sorry.no.email
Hi,
I am trying to center a table using CSS on the following page:
http://people.aapt.net.au/~adjlstrong/foster/chapter_2.html
The table is captioned '1848 Census'. CSS is at:
http://people.aapt.net.au/~adjlstrong/layout.css
Some of the tables on the site are centered, not all, and I have
centered this particular table using:
..centered-table {
margin-left: auto;
margin-right: auto;
}
This is fine but the Caption remains firmly at the extreme left,
presumably obeying the general caption rules (text-align) above it:
caption {
padding: 0 0.6em 0.8em;
font-size: 1.3em;
font-weight: bold;
text-align: left;
color: #000;
background: transparent;
}
Can anybody suggest a work-around for this?
Thanks for your trouble,
Andrew.
I am trying to center a table using CSS on the following page:
http://people.aapt.net.au/~adjlstrong/foster/chapter_2.html
The table is captioned '1848 Census'. CSS is at:
http://people.aapt.net.au/~adjlstrong/layout.css
Some of the tables on the site are centered, not all, and I have
centered this particular table using:
..centered-table {
margin-left: auto;
margin-right: auto;
}
This is fine but the Caption remains firmly at the extreme left,
presumably obeying the general caption rules (text-align) above it:
caption {
padding: 0 0.6em 0.8em;
font-size: 1.3em;
font-weight: bold;
text-align: left;
color: #000;
background: transparent;
}
Can anybody suggest a work-around for this?
Thanks for your trouble,
Andrew.