Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Can I put my whole navbar table in CSS?
Old 07-19-2007, 08:50 PM Can I put my whole navbar table in CSS?
Novice Talker

Posts: 14
Location: Missouri
Trades: 0
Ok, I've decided to learn CSS and so here is my question.

Since I am putting a table which happens to make up my navbar in every
page on the site, can I just put the whole table once in a css and then
a simple code in each html page? Or do I have to put the whole table in
in each html?

Here is the site:

http://www.arapahocampground.com/index1.html


Here is the table I have to put in each page. BTW, I copied this code from somewhere and I didn't name it "tblNAVBar", I just kept in in there.
(in case that helps)


<table width="875" height="24" border="0" cellpadding="0" cellspacing="0" id="tblNavBar" background="images/fa2.gif">
<tr>
<td align="center" valign="middle"><a href="index.html"><font face="arial" size="2"><b>HOME</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="services.html"><font face="arial" size="2"><b>SERVICES</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="camp.html"><font face="arial" size="2"><b>CAMPING</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="float.html"><font face="arial" size="2"><b>FLOATING</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="aboutus.html"><font face="arial" size="2"><b>ABOUT US</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="policy.html"><font face="arial" size="2"><b>POLICIES</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="dir.html"><font face="arial" size="2"><b>DIRECTIONS</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="contact.html"><font face="arial" size="2"><b>CONTACT US</B></a>&nbsp;</td>
<td align="center" valign="middle"><a href="pics.html"><font face="arial" size="2"><b>PICTURES</B></a>&nbsp;</td>
</tr></table>


Now, can I put that code into my main css?
Do I have to make a separate CSS?
Or do I have to put that code in every html?

Basically, I just wrote this whole site in html and now I want to figure out how to use CSS with it. This is my real first attempt at writing CSS.

I am working on getting the navbar in CSS at the moment, but will be putting everything I can in CSS from this site.

If anyone wants has nothing to do and feels like whipping up a CSS on this site, you'll make me happy but if not, I'd still be grateful if
I could just get the original info I am asking about.

Thanks
spiritlady is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-19-2007, 10:23 PM Re: Can I put my whole navbar table in CSS?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
What you are asking is not about CSS. You can do this, but you would use SSI (Server Side Includes). SSIs are not hard, it just is a little confusing to learn how it works. Check out this site: http://www.htmlgoodies.com/beyond/we...le.php/3473341
it might help you understand how to do this.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-19-2007, 10:48 PM Re: Can I put my whole navbar table in CSS?
Novice Talker

Posts: 14
Location: Missouri
Trades: 0
Thanks I'll check that out.
spiritlady is offline
Reply With Quote
View Public Profile
 
Old 07-20-2007, 03:05 PM Re: Can I put my whole navbar table in CSS?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
can I just put the whole table once in a css and then a simple code in each html page?
Nope, as Angele said, SSI would server the purpose.

If you're going to learn CSS, then learn to DUMP the table for the nav altogether. Use an unordered list for your nav and no table is needed.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can I put my whole navbar table in CSS?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28719 seconds with 12 queries