1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Content in CSS

Discussion in 'CSS' started by Stupidav, Jan 16, 2006.

  1. #1
    Sorry I am new to CSS, I think I have the basics down but as my site grows, keeping up with updating the links in navbars and title bars is a pain.

    Is it possible to put actual content in the CSS page so that every page that accesses that sheet will have the same content?

    ie. like the logo on this page and the Google add, can it be coded in a CSS sheet, so that any change to the CSS page will update the entire site?

    :cool:
     
    Stupidav, Jan 16, 2006 IP
  2. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorta, but not really. What you should use is a server side include (SSI), or, if your pages happen to be PHP pages, you can use PHP's include statement.
     
    FeelLikeANut, Jan 16, 2006 IP
  3. tommie

    tommie Guest

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can include images as background in your stylesheet, but not text.
     
    tommie, Jan 17, 2006 IP
  4. Stupidav

    Stupidav Guest

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you, I will have to look into that using SSI. Some more learning for me now, I have only used SSI because of CGI scripts and things like that, I guess its time to learn, Thanks again.
     
    Stupidav, Jan 17, 2006 IP
  5. Stupidav

    Stupidav Guest

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I figured I would let you know. I started Playing with the SSI and that will work perfectly, Thank you very much! Now I just have the task of updating all the pages to SSI
     
    Stupidav, Jan 17, 2006 IP
  6. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you're webhost supports php it's also easy to use that:
    <?php include('pathtohtmldoc.html'); ?>
    That's all you need :D
     
    Instromaniac, Jan 17, 2006 IP