|
Posted by Ed Seedhouse on 03/15/07 01:28
On 14 Mar 2007 11:02:36 -0700, "Dan" <dan@tobias.name> wrote:
>On Mar 14, 1:24 pm, charles cashion <charle...@dunjas.com> wrote:
>> I want to use css to change font size in the middle of a sentence.
>> What I have tried thus far, has added a line feed.
>> (sort of like plain vanilla <p>)
>
>You probably tried using a <div> element which is a block-level
>element that defaults to adding a line break (and can't be nested
>within a paragraph anyway). What you really want is the <span>
>element, which is character-level and can be nested inside a paragraph
>and does not imply a line break.
Actually you probably need some other inline element such as <em>
depending on the meaning of the content. <span> should be used only
when some other semantic and appropriate tag is unavailable.
Navigation:
[Reply to this message]
|