SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    May 2005
    Location
    Suwanee GA
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSSZen reusable content - high content sites

    Q. What do the CSS Zen practitioners do to repeat menus, headers, footers, and reusable content through out a site?

    I think I understand the ideas behind CSS layout and content separation. this works beautifully for a few pages. however I tend to build product sites which may have 20 or more pages. I have been using table based layout with PHP to fill in the content into 1-3 layout templates with nested subtables occaisionally.
    Do they design each page fully? Or use a template model with many variations of positional elements to control page placement?

    My concern is that I have some pages with 2columns +header/footer/menu or 3 column+h/f/m.

    My php.inc included pages are little more than text paragraphs.
    The PHP.php template pages controll all layout with Div and span elements.

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

    I'm not quite sure I follow your train of thought but there is no problem with using css on large sites. In fact thats what its good at .

    Obviously on a large site (I've just finished one with over a hundred pages which is php driven and uses includes etc for main elements) you develop strategies to cope with the different layouts that are in different sections of the site.

    On most sites the navigation and headings and footers are similar (and should be to maintain a conistent look and feel for users) and these would be the main css files that are included on every page.

    On pages that have different layouts you would call in a separate css file for that section. It's unlikely that you would have a different layout on every page as it would be a strage site. You just group the sections together and let them use the same css file.

    I try to keep all css files under 20k and not just have one massive css file for the whole site as that would be a waste. Therefore you can call in different css files for the different sections (or directories if you wish) and so on.

    It just takes a little bit of organising but its quite easy to maintain and usually quite logical

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by esearing
    Q. What do the CSS Zen practitioners do to repeat menus, headers, footers, and reusable content through out a site?
    SSI, PHP, ASP, JSP, ... just like the table guys.
    Birnam wood is come to Dunsinane


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
  •