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

 

Change font attributes in the same sentence

 
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 >> Change font attributes in the same sentence
Page: [1]
 
Nicole

 

Posts: 2845
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
Change font attributes in the same sentence - 9/12/2005 7:11:56   
I'm really surprised that I haven't needed to do this before now, but I need to put a menu item followed by a brief description on the same line and have the menu item stand out from the description:

Deluxe: beef, chicken, bean or chilli con carne topping.

In other words I'd like the word "Deluxe" to be not only bold, but larger than the other text, which I know is easy to do using <font> tags, but how can it be done using CSS AND kept on the same line as the remaining text?

For instance,, If I class it as a separate <p> or even <h6> or something, as soon as I close that tag the description will appear on the next line?

Nicole

_____________________________

:)
Donkey

 

Posts: 3910
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: Change font attributes in the same sentence - 9/12/2005 7:19:45   
I would use a <span> inside the <p> or <h6> tags, the validator will warn you about nested span tags but it should still validate OK.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to Nicole)
Nicole

 

Posts: 2845
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Change font attributes in the same sentence - 9/12/2005 7:26:49   
thanks!

_____________________________

:)

(in reply to Donkey)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Change font attributes in the same sentence - 9/12/2005 16:38:04   
I use spans for that as well but with a doctype of XHTML transitional I don't get any warnings.

The menu is a css list styled and then I use

<a tabindex="2" href="design.html" title="go to design page">D<span class="shrinknav">esign</span></a>


which gives me a menu button as follows

Design

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Nicole)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Change font attributes in the same sentence
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