Welcome to WebmasterWorld Guest from 54.146.180.94

Forum Moderators: not2easy

CSS tables that change for the entire site

   
4:14 am on Feb 15, 2008 (gmt 0)

5+ Year Member



Hello,

I know that CSS can help change attributes such as fonts, etc. throughout the entire site by using external style sheets. But can one create CSS files for tables or cells?

For example, I want to modify the footer b/c I want to add a link, or whatever. But since the footer is the same on all the pages, I need to go into all the files to modify all the footers. Instead is there a way using CSS, I can modify one file and it updates all the footers on all the pages?

11:09 am on Feb 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



b/c I want to add a link

no.

Adding a link would be adding page content which should be handled in the HTML. CSS describes how that content is presented.

create CSS files for tables or cells

absolutely. You can use CSS to very powerfully control how all tables cells (or any other elements) appear across your site.

4:37 pm on Feb 15, 2008 (gmt 0)

5+ Year Member



You could use server-side includes to accomplish adding/changing content and then use CSS for the styling.
7:16 pm on Feb 17, 2008 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Adding a link would be adding page content which should be handled in the HTML

You can do limited things with the content attribute.

.example:before{content: "Example: ";}

Things like a big quote in a quote class could be pure layout, just like a graphic of the character can be.

IE6 just ignores that, no surprise there.

The solution seems to be indeed SSI (Server Side Includes), alternatively generate the pages dynamically or use a content management system that generates static pages before "uploading" them.

9:11 am on Feb 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member





Adding a link would be adding page content which should be handled in the HTML

You can do limited things with the content attribute.

.example:before{content: "Example: ";}

yes you, can. I really dont think that means you should.

4:49 am on Feb 19, 2008 (gmt 0)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Using PHP includes for the footer section of a site is very easy, and you can use the CSS to style the whole section, text and links included. It all updates all at once, for the whole site. In addition, you can have the copyright date update automatically Jan. 1st and also have the last updated put on the page automatically when a modified page is uploaded.

CSS and a little bit of simple PHP play very well together.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month