RE: Advanced styles woes...
by "Kali Woodbridge" <kaliajer(at)mail.com>
|
Date: |
Thu, 16 Mar 2000 18:30:13 -0500 |
To: |
<kixi(at)altavista.net>, "'HWG-basics'" <HWG-basics(at)hwg.org> |
In-Reply-To: |
gmx |
|
todo: View
Thread,
Original
|
|
Eve'nin' Jakob--
<snip>
This an advanced and tricky question about CSS: How do I
mark (different
font <face|size|color|weight|style>) words in a line
*_without_*
making use of <DIV>, <P> and <FONT>? AFAIK forces <DIV>
browsers
breaking lines.
</snip>
Most tags are "block level" tags which have line breaks
built into
the (perceived) closing of the tag. To alter text style
within a
line, use the SPAN tag. Using your example:
<P>This is my text, <I><SPAN STYLE="color:
red>"which</SPAN<I> displays
in a single line.</P>
You will note that I did not include the italics attribute
inside
the span tag. I generally dont include font attributes which
are
in-line rather than block-level attributes.
Good Luck!
kali
kaliajer(at)mail.com
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA