Quote:
Originally Posted by theducks
a, h1,p, div... are tags. They don't get a period, only class selectors get them.
p.foo means ONLY P tags with a class of foo
this would not apply to div class="foo"
whereas a simple .foo would apply to both
|
Thanks again everyone, but I'm still struggling.
Tried adding it at the of the contents page and that didn't work, then to the classes in the style sheet and that hasn't worked either. This is what i now have in the style sheet, where do you think I've gone wrong? I've tried without the letter a, with { } brackets, and no format has worked so far.
.MsoToc {
display: block;
font-family: "Arial", "sans-serif";
font-size: 1em;
a text-decoration:none;
margin-bottom: 5pt;
margin-left: 0;
margin-right: 0;
margin-top: 0;
}
.MsoToc1 {
display: block;
font-family: "Arial", "sans-serif";
font-size: 1em;
a text-decoration:none;
margin-bottom: 5pt;
margin-left: 11pt;
margin-right: 0;
margin-top: 0;
}
.MsoToc2 {
display: block;
font-family: "Arial", "sans-serif";
font-size: 1em;
a text-decoration:none;
margin-bottom: 5pt;
margin-left: 40pt;
margin-right: 0;
margin-top: 0
A is a tag. you can't embed one class
inside another style
a { text-decoration: none }
BTW the red above probably invalidated the style and the whole style was now ignored.