|
Posted by Joe Butler on 09/23/07 15:20
I have a basic, Title, series of paragraphs, Title, Series of paragraphs,
etc. etc. structure to a page.
Title 1
para stuff
more para stuff
Title 2
para stuff
list item 1 (want these to inheret the left margin, and probably other
styles from the para)
list item 2
para stuff
If the paragraphs belonging to a particular title are simply text, then I
can break up the paragraphs with <br><br> to give me a blank line between
the paragraphs. And, most importantly, if I change the style of the
paragraph in the css file each paragraph on the screen takes on the correct
visual appearance - e.g. the left margin moves all paragraphs over. Now, if
I need to put a list between two of the paragrapsh, the list is not 'inside'
the paragraph - I guess you could say it does not inherit the sytle of the
paragraph that it is being displayed in. Then, when the list ends, I have
to re-state that we are using the paragraph style, otherwise the following
paragraphs don't have the correct style (mainly the margin indent).
So, the question is, what is the correct way to deal with this so that I can
say, here are a set of things that are all inside this paragraph style, and
things like lists will add their own defined left margins to whatever the
containing paragraph style is?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<p class="article-title">This is the title</p>
<p class="article">
this is the article text.
<ul>
<li>list item 1.</li>
<li>list item 2.</li>
<li>etc.</li>
</ul>
<p class="article">
another paragraph.
Navigation:
[Reply to this message]
|