View Single Post
  #7   Spotlight this post!  
Unread 17-04-2007, 23:04
Gigaman2003 Gigaman2003 is offline
Registered User
AKA: Ben
FRC #1280 (The Raging Seabiscuits)
Team Role: Webmaster
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Singapore
Posts: 32
Gigaman2003 is on a distinguished road
Re: Tell me what you think...

Quote:
Originally Posted by Otaku View Post
I'm wondering... how can I make it so that .html files under different folders all access the same .css file? I don't want to have 7 or 8 copies of the same .css file on the website if I can help it.
explains the minimalist design.

you can use implicit or explicit paths in your external css declaration if you didnt know.

e.g.
if our structure was
./
../
-index.php
home/
-index.php
style/
-default.css

if you don't already know, you link to an external css file using

<style type="text/css" href="(place link here)" />

IMPLICIT
a file in /home would link to
../style/default.css

a file in / would link to
style/default.css

a file in /style would ink to
default.css

or you could just link to http://www.yoursite.com/style/default.css for simplicity, but sacrifice your site's portability.
__________________
Webmaster?
Think about making your next site a one.
PQL - The next generation flat-file Relational DBMS.

http://www.srvhsrobotics.org
Team 1280 - The Raging Seabiscuits