The rule I quoted does ever so much more than that. If you want that rule
to apply only to the table tag, it should be like this -
table {
border: 1px solid #b8b8b8;
background-color: #131313;
width: 600px;
}
td {
padding: 2px 2px 2px 4px;
background-position: center;
}
although I'm not clear on where the background position should be placed,
since I don't know if you intended it to apply to the <table> or the <td>.
Note also that you used an octothorpe ("#") as the first character of your
selector which, in this case, was inappropriate since that looks for an
element with id ="table", and you are wanting to just style the table tag -
<table>. In this case, you would just use a tag selector - 'table'.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"sandanz" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
So how do I write a CSS rule to set the border colors, padding, and table
centered within div?
Sorry, I'm new at this. |