...

View Full Version : Simple Font Issue



Brooxy28
02-13-2008, 09:58 AM
Hey guys,

Just started a Web Development course here in South Australia.

My first assignment I'm breezing through.

Basically build the worst looking website possible.

Anyway, I'm having the simplest of simple problems. I'm following the instructions on both my assignment and Dreamweaver's auto code filler thing, and I need to get the page font to Verdana, without wrapping <font> tag's around the text. (ie using the <style> tags in the header).

here is my code (btw, have a good laugh at how crap looking it is, its how it has to be.)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Nick Brooks - 13/02/2008 -->
<title>Joe's Fruit Shop - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body {background-color: #CCFFCC; font:Verdana, Arial, Helvetica, sans-serif; font-size:12px}
h1 {text-align: center; font-size: 48px; font:Verdana, Arial, Helvetica, sans-serif;}
table {width: 1000px;}
</style>
</head>

<body>
<table border="0">
<tr>
<td height="120" colspan="2"><div align="center"><img src="images/joes_header.jpg" align="middle" title="Joe's Fruit Shop" alt="Joe's Fruit Shop" width="482" height="42" /></div></td>
</tr>
<tr valign="top">
<td width="200" valign=”top”>
<div align="center">
<p><img src="Images/berry01_red.gif" alt="Home" title="Home Berry" width="22" height="20" /></p>
<p>Home</p>
<p>&nbsp;</p>
<p><img src="Images/berry01_red.gif" alt="Produce" title="Produce Berry" width="22" height="20" /></p>
<p>Produce</p>
<p>&nbsp;</p>
<p><img src="Images/berry01_red.gif" alt="History" title="History Berry" width="22" height="20" /></p>
<p>History</p>
</div></td>
<td width="800" valign=”top”>
<p align="center"><h1>Joe's Fruit Shop</h1></p>
<p><img src="Images/fruit01.jpg" alt="Fruit" width="111" height="78" hspace="0" vspace="0" align="right" /><strong>At Joe's we are dedicated to selling the freshest, finest fruit, vegetables and cut flowers. We will deliver anywhere in the metropolitan area for only $10 (including GST).</strong></p>
<p><em>We've been in business for the past 20 years in one location and now we've moved into the 21st century by moving on to the World Wide Web, where we can provide services we never dreamed of when Joe first opened the store way back in the 1980s.</em></p>
<hr>
<p><em><img src="Images/fruit02.jpg" alt="Fruit" width="68" height="75" align="left" />Take a look at our special fruit and vegetable baskets. We've collected the freshest, most succulent fruit and vegetables and packaged them in quantities to suit many different sized families. Because we buy in bulk, you get the benefits in low prices and fresher produce. All fruit and vegetables are guaranteed to be be delivered to you less than a day after they go on sale in the produce markets.</em></p>
<p><strong>We can provide the baskets in organic produce too!</strong></p>
<p><em>Ideal for the busy family - takes out all the agonising decisions about menus for the family and how to please everyone! And we can even provide menus to go with the basket!</em></p>
<hr>
<div style=”style definition;”>
<div align="center">| Copyright | Privacy | Webmaster |</div>
</div> </td>
</tr>
</table>
</body>
</html>


I have highlighted the bits of coding in question.

It comes up fine in Dreamweaver, but reverts to Times New Roman in Firefox & IE.

Here is a screen from IE:

http://img509.imageshack.us/img509/1032/joesfruitscreenik0.jpg

abduraooft
02-13-2008, 10:02 AM
Change font:Verdana, Arial, Helvetica, sans-serif; to

font-family:Verdana, Arial, Helvetica, sans-serif;

Brooxy28
02-13-2008, 10:03 AM
Change font:Verdana, Arial, Helvetica, sans-serif; to

font-family:Verdana, Arial, Helvetica, sans-serif;
:o

Knew it was something that simple.

Cheers, you are a champion. :thumbsup:

abduraooft
02-13-2008, 10:09 AM
You can make use of CSS-Validator (http://jigsaw.w3.org/) in future!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum