Hi, all -
I'm in the process of migrating some code into a site that uses CSS. (Better late than never, right?) The page I'm having trouble with is quite simple; it can be viewed at:
http://www.scopedin.com/wordpress/?page_id=33
Before I started using CSS, my table data was indented a bit; now, as you can see, it's slammed up against the left border. In the very last couple lines of my CSS, I tried the following:
.custom .td
{
margin: 0px 0px 0px 10px;
}
(You can ignore the .custom tag.)
The syntax checker doesn't find anything wrong with this, but it's not doing anything either. Can someone give me an idea as to what I'm doing wrong here?
Thanks...I'll gladly provide more information if needed.
mz
mzimmers wrote:.custom
.custom .td
{
margin: 0px 0px 0px 10px;
}
Syntax error. .td means an element with class="td" attribute. If you want to affect the TD elements on the page don't use the period before the td.
OK...this is progress...
...in that the browser is at least trying to apply the td attributes to the table (as evinced by the "view style information" option in the Web Developer Toolbar).
But...it's still not indenting, so I must have done something else wrong. Any other ideas?
Thanks. I'm still learning the syntax of the CSS commands (obviously).
margin = wrong padding =
margin = wrong
padding = right
thank you!
but...can you tell me why margin didn't work there?
You wouldn't normally apply
You wouldn't normally apply margins to cells, you would use properties such as cellpadding, cellspacing or padding, border-spacing.
OK...thanks for the clarification...
...do I need to mark this resolved or anything like that?
Well, do you consider it
Well, do you consider it ended, or do you need any more help?
I think I'm done...
...with the original question, so I'm prepared to close this out, if someone could tell me how. Thanks.
Editing the topic title and
Editing the topic title and adding [resolved] or similar is sufficient.
There we go, I did it for
There we go, I did it for you, nice and neat.
If you have any other problems, you know where to find us!