navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

chang text inline using CSS

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> chang text inline using CSS
Page: [1]
 
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

(in reply to milo3169)
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.

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> chang text inline using CSS
Page: [1]
Jump to: 1





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