homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
CSS tables that change for the entire site
mayonnaise18

5+ Year Member



 
Msg#: 3575432 posted 4:14 am on Feb 15, 2008 (gmt 0)

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?

 

benihana

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3575432 posted 11:09 am on Feb 15, 2008 (gmt 0)

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.

sgietz

5+ Year Member



 
Msg#: 3575432 posted 4:37 pm on Feb 15, 2008 (gmt 0)

You could use server-side includes to accomplish adding/changing content and then use CSS for the styling.

swa66

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



 
Msg#: 3575432 posted 7:16 pm on Feb 17, 2008 (gmt 0)

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.

benihana

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3575432 posted 9:11 am on Feb 18, 2008 (gmt 0)



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.

Marcia

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



 
Msg#: 3575432 posted 4:49 am on Feb 19, 2008 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved