PDA

View Full Version : navigation code help



Mindy Sue
Feb 17th, 2010, 02:49 AM
I have the following words that need to navigate to other pages, and are different sizes. I need them to stay the same font size when "hovered" over.

YOGA (font size 14)

PILATES (font size 14)

Print Current Class Schedule (font size 12 )

Contact Us (font size 9)


I am using Dreamweaver CS4 and am definitely a beginner.

Excavator
Feb 17th, 2010, 04:35 AM
Hello Mindy Sue,
You can use classes and id's (http://www.tizag.com/cssT/cssid.php) for that, see this example -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
background: #FC6;
font-family: "Comic Sans MS";
}
* {
margin: 0;
padding: 0;
border: 0;
}
#container {
width: 800px;
margin: 30px auto;
background: #999;
overflow: auto;
}
.link {font-size: 14px;}
#contact {font-siae: 12px;}
</style>
</head>
<body>
<div id="container">
<a href="" class="link">Yoga</a>
<a href="" id="contact">Contact</a>
<!--end container--></div>
</body>
</html>