Welcome to Dream.In.Code
Become an Expert!

Join 149,515 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,339 people online right now. Registration is fast and FREE... Join Now!




Simple CSS Font Problem

 
Reply to this topicStart new topic

Simple CSS Font Problem

Israel
13 Jun, 2007 - 06:49 PM
Post #1

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
I know this is so lame but I can't get my fonts to work

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>Statesboro Inn ~ Buffets and Banquet Menus</title>
<style type="text/css">
body{background-image:url("./_borders/mgt00721.jpg");}
p.five{font-family:Technical;
       font-size:5
       color:#E6C78E}
</style>
</head>
<body>
<p class="five">SALADS</p>
</body>
</html>


It's been a while since I took web design but I know I have to be really close. I even got out my old book from class and double checked, But as you can see my font does not change. Any tips?
User is offlineProfile CardPM
+Quote Post

grimpirate
RE: Simple CSS Font Problem
13 Jun, 2007 - 09:58 PM
Post #2

D.I.C Head
Group Icon

Joined: 3 Aug, 2006
Posts: 226



Thanked: 6 times
Dream Kudos: 375
My Contributions
add a semicolon after the font-size:5 statement, that may be the problem.
User is offlineProfile CardPM
+Quote Post

Israel
RE: Simple CSS Font Problem
13 Jun, 2007 - 10:16 PM
Post #3

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
You were right... I once knew a man who said "It's not the Lions and Tigers that will get you... It's the damn gnats!" Seems to be the case for me more often than not. Thank you!
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Simple CSS Font Problem
14 Jun, 2007 - 04:15 AM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,122



Thanked: 76 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
I know that it's been fixed already, but just for good measure, I would code it like so:
CODE

p.five{
       family:Technical;
       font-size:5;
       color:#E6C78E;
}


putting a semi-colon after the last value as well, plus visually splitting everything up, making it more human readable.


User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:59PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month