HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How do I change the font in this table code?
Post new topic   Reply to topic    HTML Help Forum -> Introduce Yourself
View previous topic :: View next topic  
Author Message
1Horseluver23



Joined: 12 Oct 2009
Posts: 2

PostPosted: Mon Oct 12, 2009 6:30 am     How do I change the font in this table code? Reply with quote

Where do I enter this code to my table to change the font to Curlz MT ?

Here is the font code I found ( If this isn't the correct one could you tell me what the correct code would be also?)

BODY
{
font-family:Curlz MT;
}

I need to add that code^^^ to change my font in this table:



<br><table style="background-color: rgb(255, 255, 204);" border="2" bordercolor="#ffcc00" cellpadding="4" cellspacing="4" width="600">
<tbody><tr>
</tr><tr><td bgcolor="#ff0066"><img src="http://i36.tinypic.com/del0s6.jpg"><br></td>
</tr>
<tr>
<td bgcolor="#53b1fc"><div style="overflow: auto; height: 350px;">Table Cell<br></div></td>
</tr>
<tr>
<td bgcolor="#ff0066"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
<tr>
<td bgcolor="#53b1fc"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
<tr>
<td bgcolor="#ff0066"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
<tr>
<td bgcolor="#53b1fc"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
<tr>
<td bgcolor="#ff0066"><div style="overflow: auto; height: 350px;">Table Cell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br></div></td>
</tr>
<tr>
<td bgcolor="#53b1fc"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
<tr>
<td bgcolor="#ff0066"><div style="overflow: auto; height: 350px;">Table Cell</div></td>
</tr>
</tbody></table>
<p style="" font-size:="" 10px;="">


Where does the code go in the code above to change the font to Curlz MT through the WHOLE thing?

Cool Thanks[/code]
sticks464



Joined: 31 Dec 2006
Posts: 2629

PostPosted: Mon Oct 12, 2009 8:15 am     Reply with quote

That's the correct place for the font but it needs to be enclosed in quotes to be recognized because it is two words or contains 'whitespace'. You don't need font-family because you are specifying only one font and letting users use their browser default if they don't have this font.

Code:
font:"Curlz MT";


If the table is all you want to affect, then specify the font in the inline style and use a font or font-family for the body tag.

Code:
<table style="background-color: rgb(255, 255, 204); font: "Curlz MT";" border="2" bordercolor="#ffcc00" cellpadding="4" cellspacing="4" width="600">
1Horseluver23



Joined: 12 Oct 2009
Posts: 2

PostPosted: Mon Oct 12, 2009 9:16 am     Reply with quote

Great! Thanks for the code! Very Happy
Now, where do I insert the code sticks464 gave me to my table code? Smile
sticks464



Joined: 31 Dec 2006
Posts: 2629

PostPosted: Mon Oct 12, 2009 9:55 am     Reply with quote

Is the code you posted not the code for your site?

You posted
Code:
<table style="background-color: rgb(255, 255, 204);" border="2" bordercolor="#ffcc00" cellpadding="4" cellspacing="4" width="600">
as the first line of the table code. Just replace that line with the one I posted. Remember, if that font is not present on your computer then you will see a default font.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Introduce Yourself All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial