Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 09-17-2007, 10:17 PM   #1 (permalink)
New Member
 
Join Date: Aug 2006
Posts: 3
Question CSS layout ?'s/Tutorial

Hello. I am still using tables for most of my web designs as I have yet to grasp CSS enough to feel confident using it. I am currently working on a design that will have a date sensitive sidebar area. This means that the info in the sidebar will need to be changed frequently and will run on every page of the site (this will be around 15 or so pages). It is my understanding that with CSS I would be able to create one file for the sidebar, link it to every page and then only update that one file in order to update the sidebar on each page. Is this correct? If so, can someone direct me to a good source for implementing something along these lines?

Thank you.
S
saralynndesign is offline   Reply With Quote
Old 09-21-2007, 07:46 PM   #2 (permalink)
New Member
 
Join Date: Sep 2007
Location: England
Posts: 20
Default

You are not exactly correct there. CSS is more of coding language for styling the pages. You can use the PHP include method: '<? include "filename.html"; ?>' (obviously, without the quotes), and you will be able to update the one file and show it across all of the other files.

A guide from Tizag, for the PHP include, may help you.
Paul is offline   Reply With Quote
Old 09-25-2007, 07:31 PM   #3 (permalink)
New Member
 
Join Date: Aug 2006
Posts: 3
Thumbs up Thanks!

Thank you for clarifying and for the link to the guide. I guess maybe I have more a hold on CSS than I thought. I have managed to set up a style sheet for the text in the site design. I don't know anything about PHP though, so I'll go that route for this.

Thanks!
S
saralynndesign is offline   Reply With Quote
Old 09-30-2007, 05:58 AM   #4 (permalink)
Super Noob
 
zkiller's Avatar
 
Join Date: Aug 2004
Location: position:relative
Posts: 1,560
Send a message via AIM to zkiller Send a message via Yahoo to zkiller
Default

what you are refering to is not CSS, it is something called SSI (Server Side Includes). you don't need php to make these work, just a host that supports SSI. an include would look something like...

Code:
<!--include file="filename.html" -->
however, css stylesheets would be included into the page like this...
Code:
<link href="stylesheet-name.css" rel="stylesheet" type="text/css" />
__________________
Stefan, the Post Master

Track Devil - May the boost be with you!
zkiller is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:53 AM.


Computer Forum - Internet Business - Webpage Design

 
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.