|
| |
|
|
milo3169
Posts: 40 Joined: 4/26/2005 From: Dallas, TX Status: offline
|
chang text inline using CSS - 9/14/2005 17:02:02
Does anybody know if I can change the style of text on the same line? I'm using a Class for the paragraph but in between the paragraph I would like to change the size and style of the font with out the line breaking. Can anyone show me how to do this?
|
|
|
|
Tailslide
Posts: 6270 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: chang text inline using CSS - 9/14/2005 17:10:29
Easiest way would be to stick the particular bit of text you want to change into a <span> like this: HTML: <p class="whatever">To be or not to be <span class="newstyle">that is the question.</span></p>
CSS: p.whatever {font-size:100%; font-weight:normal;}
.newstyle {font-size: 110%; font-weight:bold;} Will give you: To be or not to be that is the question.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
milo3169
Posts: 40 Joined: 4/26/2005 From: Dallas, TX Status: offline
|
RE: chang text inline using CSS - 9/14/2005 17:22:56
Thank again Tailslide. That was it.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|