2 replies [Last post]
spartan3
Offline
newbie
Last seen: 16 years 38 weeks ago
Joined: 2005-11-21
Posts: 2
Points: 0

ok..,im haviong trouble...maybe im missunderstanding how CSS works.

ok do i created a .css file with some div ids. for example i put this on the .css

<div id="navigation">
<table width="500" border="0" cellspacing="0" align="center">

<td bgcolor="cccccc" align="center">
<a href="index.html">Home</a> ]:[
<a href="index.html">Calander</a> ]:[
<a href="index.html">Search</a> ]:[
<a href="index.html">Browse</a>
</td>

</table>
</div>

ok, now i think this might be where im missunderstanding...can i then create a html page and link it to this .css file and just call the id "navigation" to this html page.... for example...

<html>
<head>
<title>test css</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>

#navigation a {display: block}

</body>
</html>

is my coding jus way off or does CSS not even do this?

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 3 years 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

am i misunderstanding?

Hi

I think completely misunderstanding is the phrase that comes to mind.

I think you need to read a few starter tutorials.

What you seem to have in mind is a common block of code to include across a number of pages, in which case some sort of server side include would be best (e.g. using php).

Trevor

spartan3
Offline
newbie
Last seen: 16 years 38 weeks ago
Joined: 2005-11-21
Posts: 2
Points: 0

am i misunderstanding?

ok ya, i figured i jus wasnt getn it right.

ya im also learning php right now so looks like ill stick to just that on designing the site...