Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Variable not used in adocument.css.php
January 17, 2007, 10:25 am
rate this thread
I use an 'adocument.css.php' document, which is used as a CSS template.
Having just installed PHP 5.2.0 on my Win XP system, I checked on old
code of a website I made in the past. One of the first this I noticed,
my 'Main Navigation Container', containing a menu with different choices
was not viewable anymore. I think this must be because the background
color variable is not used to set the background to dark blue. Could
that be because PHP 4.0 works different from 5.2.0? And what do I need
to do to view the page as it is intended to?
I got the following lines:
$blueDark = "#000066";
/* ======== Main navigation container ======== */
background-color: <?= $blueDark; ?>;
padding: 2px 0;
margin: 0 0 0 20px;
/* border-left: 1px solid #fff; */
#mainnav li a
padding: 0 10px;
So what do I need to do? Change all occurrences of $blueDark with "#000066"?
- Captain Paralytic
January 17, 2007, 10:30 am
- » "Array to String Conversion" error when constructing a multi-dimensional array
- — Previous thread in » PHP Scripting Forum