CSS Virgin --- Need some help

by kf
4 replies
  • |
I'm using CSS for the first time. Building a site with multiple pages.

So my template has nav bar on the main page with page1.html, page 2.html, etc.

There should be some way to only change the names of those pages once, and I can't find where to do that.

I've looked in layout.css.

B/c I'm a neanderthal, I would normally just save as/rename each page and edit in notepad. Surely the benefit of using css is being able to change all menu items for all pages only once.

Your help greatly appreciated!


In the folder I have a layout.css and a colors.css file. Neither of these have what I need. Am I missing a file?

On the index.html file I have:

<!-- \/ Set of mini links \/ -->
<div class="minilinks">
<a href="index.html">Home</a> |
<a href="page1.html">Page1</a> |
<a href="page2.html">Page2</a> |
<a href="page3.html">Page3</a> |
<a href="page4.html">Page4</a> |
<a href="page5.html">Page5</a>
<!-- /\ Set of mini links /\ -->

Similar thing nearer the top of index.html for the top/main nav bar. Shouldn't I be able to change that once somewhere so any future updating would apply to all sub-pages?

Can't move forward 'til I figure this ...
so any help appreciated.
#css #virgin
  • Profile picture of the author Aaron H
    Hi kf, I don't think CSS will solve your problem on this one as it only controls visual styling of the page, it does sound like SSI (server side includes) are going to be the solution for this, or if you have a copy of dreamweaver then using library items.
    {{ DiscussionBoard.errors[214675].message }}
  • Profile picture of the author kf
    Thanks Aaron. I'm not using DreamWeaver, since I edit in notepad, but will explore SSI.

    Appreciate your response.
    Those who stand for nothing, fall for anything. ~ Alexander Hamilton
    {{ DiscussionBoard.errors[214706].message }}
  • Profile picture of the author Aaron H
    Just found a page that might be useful to you on SSI, it's not as bad as it sounds. You'd basically create a web page that just has your menu code inside it, then you link to this page with a server side include on all the pages you want the menu to appear. This way you only ever have to update the page with the menu code.

    SSI, Server Side Includes, Tutorials, Server Side SSI Browser Sniffers, Conditional SSI, XSSI, Apache, Linux, Unix Resources, Books, Server Programming - Web Site Resources, Website Tips - WebsiteTips.com
    {{ DiscussionBoard.errors[214716].message }}
  • Profile picture of the author kf
    Great resource Aaron. That's exactly what I'm trying to set up.

    I'll look into this.

    Thanks again!
    Those who stand for nothing, fall for anything. ~ Alexander Hamilton
    {{ DiscussionBoard.errors[214732].message }}

Trending Topics