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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.