Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

span inside a p tag 1

Status
Not open for further replies.

dinger2121

Programmer
Sep 11, 2007
439
US
Hello,
I am attempting to change the formatting of some text midway through a sentence, but it doesn't seem to be working. Here is the html that I am working with -

<p class="large">Here is the first <span class="small"> here is the second</span></p>

Here is my css -

p
{
color: #3A5167; text-align: center;
padding: 0px; margin: 0px;
}
p.large
{
font-size:larger; font-weight:100; margin: 0px;
}
p.small
{
font-size:x-small ; font-weight: 100; margin: 0px;
}


The problem is that the second sentence isn't formatted small.

Am I attacking this from an incorrect angle? Thanks for any thoughts.

carl
MCSD, MCTS:MOSS
 
Hi

Code:
[highlight]span[/highlight][purple].small[/purple] [teal]{[/teal]
  [blue]font-size:[/blue][green]x-small[/green] ; [blue]font-weight:[/blue] [green]100[/green]; [blue]margin:[/blue] [green]0px[/green];
[teal]}[/teal]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top