Jump to content

CSS Sheet when called isn't displaying properly


beaux1

Recommended Posts

My CSS:

<style type="text/css">

body { font-family: tahoma; font-size: 75%; color: #ffffff; background: #454242 }

a { text-decoration: none; color: #eebb99 }

h1,h2 { margin: 0px; background: #6c5f59 }

h1 { font-size: 150% }

h2 { font-size: 100%; margin-top: 1em }

.hl { font-style: italic }

.plus { float: right; font-size: 8px; font-weight: normal; padding: 1px 4px 2px 4px; margin: 0px 0px; background: #eb9; color: #000; border: 1px solid #da8; cursor: hand; cursor: pointer }

.plus:hover { background: #da8; border: 1px solid #c97 }

ul { list-style: none; padding-left: 0px; margin: 0px }

li { margin: 0px }

li:hover { background: #2e2a2a; }

li a { display: block; width: 100%; }

</style>

 

It works, but it doesn't show the body (background color). It's called by PHP like so:

echo '<link rel="stylesheet" href="/navcss/' . $_COOKIE['menucss'] . '.css" />';

I know it's working, because it displays some of the css so I'm pretty sure it isn't a PHP problem, it just doesn't display  the body.

If I were to put it in a normal document though by itself, it would work.

Anyone know why/what the solution is?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.