Results 1 to 4 of 4
  1. #1
    Yup, Sure ... now let me check ... Cagles Mill's Avatar
    Join Date
    January 18th, 2005
    Location
    The Midwest
    Posts
    646
    Can you do this with CSS?
    I'm trying to teach myself CSS as I understand it can make updating multiple pages much easier since all you need to change is the external stylesheet file.

    What if you have a menu on one side of the page (a vertical list) consisting of links to other pages on the website. I want to include the actual link and text in the stylesheet since otherwise I fail to see the advantage in using CSS. Every reference I find to this issue ends up with the link and text in the HTML. I want to be able to add or delete links in the menu by just changing the stylesheet. Is this possible?
    Rick M.
    I would rather have a bottle in front of me, than have a frontal lobotomy!
    Does your bubblegum lose its flavor on the bedpost overnight?

  2. #2
    Influencer Marketing GravityFed's Avatar
    Join Date
    January 18th, 2005
    Location
    Ithaca & Park City
    Posts
    3,338
    You should use server side includes (.ssi) for nav/menus.. or PHP inlcludes.
    http://httpd.apache.org/docs/1.3/howto/ssi.html

    Same idea.. all content for the includes live in one file that's referenced from each of your html files..

    To reference an .ssi file (for a navigation code block, for example) in your html use <!--#include virtual="/path/NAVFILENAME.ssi" -->

  3. #3
    Affiliate Manager MINDsprinter's Avatar
    Join Date
    August 18th, 2006
    Location
    Washington, DC
    Posts
    1,436
    I'm sure you can do this with java or other server side code as was mentioned above, but that is not CSS really.

    CSS is a style sheet. As in, a sheet full of styles. It makes it easy to change the look of your website (not having to change the link color to orange on every page of your whole 10,000 page site, you just update the stylesheet).

    It really isn't for the actual text or links. That is included in the HTML and "styled" with the CSS.

    See www.csszengarden.com for more of what I mean. If you haven't seen this site, the actual site is just a simple HTML page. However, users can upload their own stylesheets to make that same exact HTML look really really different!
    Jason Rosenbaum
    Affiliate Manager
    MINDsprinting

  4. #4
    Yup, Sure ... now let me check ... Cagles Mill's Avatar
    Join Date
    January 18th, 2005
    Location
    The Midwest
    Posts
    646
    Thanks guys!

    That's sort of what I thought, but I wanted to make sure before I wasted any more time trying to find a CSS solution to the problem.
    Rick M.
    I would rather have a bottle in front of me, than have a frontal lobotomy!
    Does your bubblegum lose its flavor on the bedpost overnight?

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. CSS Help PLEASE!
    By Doug247 in forum Blogging, Mobile and Social Media
    Replies: 5
    Last Post: March 9th, 2010, 09:50 AM
  2. A little CSS help
    By Kevin in forum Programming / Datafeeds / Tools
    Replies: 13
    Last Post: September 5th, 2007, 07:59 PM
  3. CSS or Tables?
    By Cheesehead in forum Programming / Datafeeds / Tools
    Replies: 32
    Last Post: July 10th, 2007, 02:35 AM
  4. Need some CSS help
    By suzie250 in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 18th, 2005, 09:02 AM
  5. Help With CSS Please
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: March 24th, 2005, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •