SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast Cartman's Avatar
    Join Date
    Oct 2004
    Location
    Mount Laurel, NJ
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Standard left column across all pages of site?

    Sorry if this has already been answered, but I searched this forum and couldn't find what I was looking for.

    On one of my sites (www.porscheboxster.info), I have a standard column on the left side of the page, that is the same for all pages. Is there some way to embed that entire column into the CSS file, so that I don't have to make changes to dozens of pages everytime I add/change something in that column?

    (If this is a newbish question, sorry, but CSS is entirely new to me)

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,546
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    CSS is only for the presentation of the page. You can change the size colur and layout of the column through css but you cannot change the content.

    You should look into server side include (SSI) or php includes where you can save the file spearately and include it on all the pages as an include file. Then all you have to do is update the included file and all pages are changed accordingly.

    Paul

  3. #3
    SitePoint Enthusiast Cartman's Avatar
    Join Date
    Oct 2004
    Location
    Mount Laurel, NJ
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the heads-up Paul, I'll look into that and see how I make out. Any idea how the search engines would reach to an include file?

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,546
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Any idea how the search engines would reach to an include file?
    I would have thought that it wouldn't make much difference as the content is added serverside so that the page thats served up has the file already included.

    However search engines aren't my speciality so perhaps someone else can answer this for you

    Paul

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Berlin
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search engines can only look at the page that they get, not at the process that made it.


Bookmarks

Posting Permissions

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