beaux1 Posted February 27, 2007 Share Posted February 27, 2007 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? Quote Link to comment Share on other sites More sharing options...
beaux1 Posted February 27, 2007 Author Share Posted February 27, 2007 Nevermind, solved: Had to wrap it with literal tags: {literal} <CSS> {/literal} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.