Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- <h1> as bold opening phrase in top paragraph


kiril - 2:09 am on Aug 23, 2003 (gmt 0)


Thank you all for the suggestions. I hope somebody has time to read my long, late follow up.

Dr. Doc' solution works very well:
-------
h1.indexpage {
font: bold 16px verdana;
}
.indexpage {
display: inline;
}

<h1 class="indexpage">Widgets.com</h1> <p class="indexpage">is the best place to buy widgets. Blah, blah blah...</p>
-------
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.

1) Is my understanding correct?:
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

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


Thread source:: http://www.webmasterworld.com/css/1704.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com