Css Quest

J

Just Askin'

Hi, I'd like my web pages to be uniform with the same navigation buttons on
each page and the same header. I read in here that its best to use CSS's and
not the shared borders in FP.

Maybe I just don't understand CSS's but where do I put the code?

thanks for your help.
 
S

Steve Easton

You create a style sheet and save it with the .css extension.
Then reference the style sheet in the head section of each page.
<link rel="stylesheet" type="text/css" href="mystylesheet.css">

To use the same navigation on each page, you can use an include or a dynamic web template
( dwt )

For a simple example of a web page that uses an include for navigation and a style sheet
look at my hobby site.
Here's the home page:
http://www.95isalive.com/

here's the include page that contains the navigation.
http://www.95isalive.com/nav.htm

Here's the style sheet.
http://www.95isalive.com/95.css

This is by no means meant to be a guide as the correct way to do CSS.
fwiw, it is however W3C compliant.

Good Luck
 
G

Guest

Here is some CSS

/* Global Styles */

body {
margin:0px;
}

td {
font:11px Verdana, Arial, Helvetica, sans-serif;
color:#003366;
}

a {
color: #FF6600;
font-weight:bold;
}

a:hover {
color: #3366CC;
}

/* ID Styles */

#navigation td {
border-bottom: 2px solid #C0DFFD;
}

#navigation a {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #003366;
line-height:16px;
letter-spacing:.1em;
text-decoration: none;
display:block;
padding:8px 6px 10px 26px;
background: url("mm_arrow.gif") 14px 45% no-repeat;
}

#navigation a:hover {
background: #ffffff url("mm_arrow.gif") 14px 45% no-repeat;
color:#FF6600;
}

#logo {
font:24px Verdana, Arial, Helvetica, sans-serif;
color: #CCFF99;
letter-spacing:.2em;
line-height:30px;
}

#tagline { font:12px
Verdana, Arial, Helvetica, sans-serif;
color: #FF9933;
letter-spacing:.4em;
line-height:18px;
}

#monthformat {
border-bottom: 2px solid #E6F3FF;
}

#dateformat {
font:11px Verdana, Arial, Helvetica, sans-serif;
color: #003366;
letter-spacing:.2em;
}

#dateformat a {
font:11px Verdana, Arial, Helvetica, sans-serif;
color: #003366;
font-weight:bold;
letter-spacing:.1em;
}

#dateformat a:hover {
color: #FF6600;
letter-spacing:.1em;
}

/* Class Styles */

..bodyText {
font:11px Verdana, Arial, Helvetica, sans-serif;
color:#003366;
line-height:20px;
margin-top:0px;
}

..pageName{
font: 18px Verdana, Arial, Helvetica, sans-serif;
color: #3366CC;
line-height:24px;
letter-spacing:.2em;
}

..subHeader {
font:bold 10px Verdana, Arial, Helvetica, sans-serif;
color: #3366CC;
line-height:16px;
letter-spacing:.2em;
}

..quote {
font: 20px Verdana, Arial, Helvetica, sans-serif;
color: #759DA1;
line-height:30px;
}

..smallText {
font: 10px Verdana, Arial, Helvetica, sans-serif;
color: #003366;
}

..navText {
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #003366;
line-height:16px;
letter-spacing:.1em;
text-decoration: none;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top