|
Posted by Jonathan N. Little on 09/22/06 17:23
freesoft_2000 wrote:
> Hi everyone,
>
> Jonathan, your example in the link makes the entire
> paragraph have the entire font whereas i only want part of the paragraph
> to have that font and the rest of the paragraph not to have any font at
> all.
>
> Have i misunserstood your explanation in the link
> somehow?
>
> Any help is greatly appreciated
>
I guess you do not go through the whole tutorial. You can style
individual ELEMENTs so all you have to enclose the text your want to
style differently and enclose in an inline ELEMENT. Now how and which
element depends on the semantic "function' of the text. If you just want
to emphasize text well EM would work.
<p>Are your <em>sure</em> you want to emphasize this?</p>
Now browser normally style EM as italic, but you can change this within
your stylesheet
EM { font-style: normal; color: red; background-color: white; }
This would make every instance in your document where your surround text
with EM tags as red text instead if italic. If you do not wish to change
all the EMs your can specify a class:
..classy { font-family: "bernardfashion bt", fantasy; }
<p>Now my <em class="classy">emphasize</em> will be extra fancy!</p>
If it just a special word or phrase that you want to single out whell
your can us a SPAN element with a class:
..partnumber {
font-family: courier, "courier new", monospace;
font-weight: bold; color: blue; background-color: white;
}
<p>The Widgetmaster 5000 <span class="partnumber">PN: 2344-4322</span>
is a marvel of engineering....</p>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|