It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

nav system in external style sheet

nav system in external style sheet

Postby stacy3601 on Mon Feb 05, 2007 7:16 pm

is it possible to create a navigation system in an external style sheet?
the problem i am facing is that every time i make a new page i have to go back and change the link code in EVERY page. there has got to be a better way.
here is my current navigation layout:

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

   <title>Welcome to the Illuminati website</title>
   <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body background color="000000">
<basefont face="veranda" size="12px" color="ffffff">
<table width=748 align="center" cellspacing=0 cellpadding=0>
<tr>
<td class="outline"width="100%" valign="top">
<img src="layout/banner.png" width="745" height="125" border="0" align="top"><br><br>
</td>
</tr>
</table>
<table width=748 align="center" cellspacing=0 cellpadding=0>
<tr>
       <td width="20%" valign="top">


<!--Begin of left column navigation-->



<table width="150" class="outline">
<tr>
<td align="left" valign="top" class="outline"><font size="1"><b>Navigation</b></font></td>
</tr>
<tr>
<td class="outline" align="left" valign="top"><font size="1">
¤ <a href="index.htm">Home</a> <br>
¤ <a href="AboutUs.htm">About Us</a><br>
¤ <a href="index.htm">Staff Info.</a><br>
¤ <a href="index.htm">Past News</a><br>
¤ <a href="memberbio.htm">Member Info</a><br></font>
</td></tr>
</table>
<br>
<table width="150" class="outline">
<tr>
<td align="left" valign="top" class="outline"><font size="1"><b>Help</b></font></td>
</tr>
<tr>
<td class="outline" align="left" valign="top"><font size="1">
¤ <a href="retiredweapons.htm">Retired Rune Weapons</a><br>
¤ <a href="pointguide.htm">Point System Guide</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br></font>
</td></tr>
</table>
<br>
<table width="150" class="outline">
<tr>
<td align="left" valign="top" class="outline"><font size="1"><b>Club Stuff</b></font></td>
</tr><tr>
<td class="outline" align="left" valign="top"><font size="1">
¤ <a href="prizeshop.htm">Prize Shop</a><br>
¤ <a href="petofthemonth.htm">Pet of the month</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a> <br></font>
</td></tr>
</table>
<br>
<table width="150" class="outline">
<tr>
<td align="left" valign="top" class="outline"><font size="1"><b>Information</b></font></td>
</tr><tr>
<td class="outline" align="left" valign="top"><font size="1">
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br></font>
</td></tr>
</table>
<br>
<table width="150" class="outline">
<tr>
<td align="left" valign="top" class="outline"><font size="1"><b>Links</b></font></td>
</tr><tr>
<td class="outline" align="left" valign="top"><font size="1">
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br>
¤ <a href="index.htm">Link Here</a><br></font>
</td></tr>
</table>

<!--End of left column navigation-->


click to view

and here is my current style sheet. not much to it right now:

Code: Select all
BODY
{font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
background:#000000;
color:#ffffff;
cursor: normal;
margin:0;}

A:link {text-decoration: none; font-weight:bold;color:#999999}
A:visited  {text-decoration: none; color:#ffffff}
A:active  {text-decoration: none; font-weight:bold;color:#cccccc}

a:hover     
{
color:#cccccc;
text-decoration: overline underline; }

.head     
{color:#999999;
font-weight: bold;
padding-left: 0px;
font-size: 12px;
border-top: 0px solid #999999;
border-bottom: 0px solid #999999;
}

td
{color:#999999;
font-weight: normal;
padding-left: 0px;
font-size: 12px;}



.outline

valign: top;
border: 0px solid #999999}


thanks
User avatar
stacy3601
 
Posts: 11
Joined: Sun Feb 04, 2007 12:08 am

Postby dazz_club on Tue Feb 06, 2007 11:23 am

Hi there,

i can understand totally, and yes there is a way. you can have your navigation in an extetnal css file. Obviously theres some html code that needs to be in the other html files aswell, but theres a lot less of it and alot easier to edit.

just google css driven menus and you will be on your way as theres tons of examples and free scripts to edit.

i dont know how advanced you are in web design, but you can use php a include, now this is where only one page is needed. all you need to do, is create the menu/navigation, then in each file that needs it, you insert the code for a php inlcude.

hope that helps, if not, write back and i`ll help you out.
User avatar
dazz_club
250+ Club
 
Posts: 313
Joined: Fri Jul 15, 2005 7:35 am
Location: Chester and Hull

Postby stacy3601 on Tue Feb 06, 2007 6:20 pm

thanks for the help

i use a free web service that i dont think supporst php
User avatar
stacy3601
 
Posts: 11
Joined: Sun Feb 04, 2007 12:08 am

Postby dazz_club on Wed Feb 07, 2007 12:02 pm

do you need hlep with the css navigation then? :)
User avatar
dazz_club
250+ Club
 
Posts: 313
Joined: Fri Jul 15, 2005 7:35 am
Location: Chester and Hull

Postby stacy3601 on Wed Feb 07, 2007 10:46 pm

yes :oops:

i'm getting close to just giving up -_-'
User avatar
stacy3601
 
Posts: 11
Joined: Sun Feb 04, 2007 12:08 am


Who is online

Users browsing this forum: No registered users and 0 guests