Forum Moderators: not2easy
I've looked at Internet tutorials and a good book, but they just say how to use CSS to specify the type of bullet.
What I don't get is I'm entering text within my body text class and suddenly want to go into <ul> list mode. Don't care what the bullet looks like!
Do I have to define a class for an unordered list which also specifies the font and size? None of the examples show this.
Or can I just insert a <ul> in the body text class and it will continue with the same font... which doesn't seem to be working.
Thanks, Peter
Here's my code:
/* Body text: paragraph left body regular*/
.plbr {
text-align: left;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 20px;
color: #0000cc}
<p class='plbr'>
We welcome your e-mails, but please read the following before writing us:
</p><p class='plbr'>
<ul>
<li>If you...
We welcome your... comes out in the correct font.
If you... comes out in list format, but not in the correct font.
body {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 20px;
background: white;
color: #0000cc;
}
Then just change what you need in the other rules, e.g.,
p {
color: orange;
font-size: 50px;
}
Then all your body styles are inherited to the other elements (like the unordered list), and only those that are over-rided by the separate rules will be different.
Top-down instead of bottom-up. :)
Jordan
Unfortunately it fails in Netscape 7.1. Looks like the Body definitions of font size etc. don't fall into the body of the page. I'll have to put all that back into definitions for para center, para left, etc.
That's odd, the only thing I can think of is that there may be another style over-riding the one you're trying to set. Try using the "!important" indicator in the one that isn't working, like "font-size: 20px!important;" and see if that works. Also be sure to check your syntax, make sure you didn't miss a semi-colen or colen anywhere, because NN is alot less forgiving about that kind of thing than IE is. NN needs every rule to be in this format: "attribute: value;"
Jordan
Also, try this for your CSS. Give UL a class, and make a Contextual Selector for the child tag LI.
* * * * * * * * * * * * * * *
/* Body text: paragraph left body regular*/
.plbr, .plbr li {
text-align: left;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 20px;
color: #0000cc
}
* * * THEN * * *
<p class='plbr'>We welcome your e-mails, but please read the following before writing us:</p>
<ul class='plbr'>
<li>If you...</li>
</ul>
<p class='plbr'>Keep on going...</p>
* * * * * * * * * * * * * * *
good luck
--jim