Text formatting trouble

This is a discussion on "Text formatting trouble" within the Web Page Design section. This forum, and the thread "Text formatting trouble are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 7th, 2007, 21:28
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Text formatting trouble

Hey you guys,

I need some help getting this to work properly. Below is a portion of the css for http://72.52.285.72/~bennett/willy.shtml

Code: Select all
h1 {
    font: normal normal lighter 20px;
    color: #0000ff;
}

h2 {
    color: #0000ff;
    font: italic normal lighter 20px;
    position: relative;
    left: 28px;
}
h1 and h2 are messed up h2 is supposed to be in italics. Well it's probably something really simple in my code that I overlooked, but check it out.

Thanks!
Reply With Quote

  #2 (permalink)  
Old Jan 7th, 2007, 22:05
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text formatting trouble

I've always had trouble as well with the shorthand form of the font property, namely when setting a font-style.

If you separate the font-style it works so...

Code: Select all
h2 {
    color: #0000ff;
    font-style: italic;
    font: normal lighter 20px;
    position: relative;
    left: 28px;
}

Not sure.
Reply With Quote
  #3 (permalink)  
Old Jan 7th, 2007, 22:12
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text formatting trouble

Code: Select all
font: italic 20px arial,sans-serif;
The font and font family are required in the font tag.
Reply With Quote
  #4 (permalink)  
Old Jan 7th, 2007, 22:26
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text formatting trouble

That was it thanks you guys!
Reply With Quote
  #5 (permalink)  
Old Jan 8th, 2007, 11:47
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text formatting trouble

Quote:
Originally Posted by ryanfait View Post
Code: Select all
font: italic 20px arial,sans-serif;
The font and font family are required in the font tag.
Totally forgot about that!

Yeah ... font-size and font-family are required.
Reply With Quote
Reply

Tags
text header italics

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph formatting when importing text from TXT or XML McAurthur19 Flash & Multimedia Forum 0 Mar 20th, 2007 19:12
Trouble formatting vlink with css! Help! nateyork Web Page Design 6 Feb 18th, 2007 01:09
text formatting questions Lchad Web Page Design 7 Jan 27th, 2007 23:05
Formatting Text - XML newbie wants everything! AceTutor Other Programming Languages 0 Apr 28th, 2006 13:53
help with formatting this javascirpt text...please! newbie44 JavaScript Forum 2 Sep 29th, 2005 14:08


All times are GMT. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43