PDA

View Full Version : external css syle sheet


bradley7
03-15-2009, 09:12 AM
hello, first post

can a css syle sheets be available for multiple web pages, i know can if they are in the same folder, that works but can it sit in the root folder aand be access by many web apps?

brad

tux
03-15-2009, 09:19 AM
Hello Bradley and welcome to DWC.

Yes it is best to have a seperate style sheet and then link to it in each page. You add this to the head of each page.....

<link rel="stylesheet" type="text/css" href="PATH TO YOUR CSS FILE.css">

Hope this helps, regards

Paul

bradley7
03-15-2009, 09:44 AM
thans paul
add it to line 1
or in the <head>
an example
where exactly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<link rel="stylesheet" type="text/css" href="PATH TO YOUR CSS FILE.css">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>OrganicUtopia Events page</title>

tux
03-15-2009, 09:50 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>OrganicUtopia Events page</title>
<link rel="stylesheet" type="text/css" href="PATH TO YOUR CSS FILE.css">
</head>

bradley7
03-15-2009, 12:08 PM
thank you tux

tux
03-15-2009, 01:29 PM
Your welcome : )