Page is a not externally linkable
kiril - 2:09 am on Aug 23, 2003 (gmt 0)
Dr. Doc' solution works very well: <h1 class="indexpage">Widgets.com</h1> <p class="indexpage">is the best place to buy widgets. Blah, blah blah...</p> 1) Is my understanding correct?: 2) I'm assuming that both <h1> and <p> must be defined as "indexpage" classes so that one is "inline" with respect to the other. For this association to exist, do they need to be next to each other in the html? What if there was another element defined as "indexpage" later in the html? 3) Not to waste people's time, but I also don't know what this means: h1#indexpage+p *** One thing I really need is a book (or website) that explains all the ways of declaring styles. Can anybody suggest a place to look? *** Thank you all. Kiril
Thank you all for the suggestions. I hope somebody has time to read my long, late follow up.
-------
h1.indexpage {
font: bold 16px verdana;
}
.indexpage {
display: inline;
}
-------
I'd like to follow up to make sure I understand some more general lessons about CSS--I hope somebody has the time to indulge me, because these things just aren't covered in my CSS books.
a) .indexpage defines a class that can apply to any element
b) h1.indexpage defines additional styles for the case when indexpage is assigned to an h1