[thelist] PHP & CSS (Two Part Question)
Burhan Khalid
burhankhalid at members.evolt.org
Wed May 1 17:17:00 CDT 2002
Hello All :
I've hit a few rough spots while redesigning the back-end of my site. One
has to deal with PHP, the other (oh boy) with CSS.
First, the PHP one :
Is there a way to get a numerical index of an array, that is
associative? I am trying to eliminate my dependency on mySQL to create a
cookie-crumb navigation system. Here is what I would like to be able to to.
Have one array, with one element that holds the filename, and have it
pointed to the navigation trail portion of it. Example :
$navigation = array("index.php" => "Home Page");
I would like to be able to access this array using $navigation[0], and be
able to access both the index.php and the Home Page part of it. It is my
understanding that the "index.php" part in my example array *is* the index
(0). Am I right, or do I need to unplug? Currently, I have two arrays, one
with file names, one with the description. I query the first one, then step
trough the other one, appending the crumbs to my nav variable. This works
fine, but something tells me that there has got to be a better way to do this.
Now for CSS :
Don't know why, but this css (which I implemented after glancing at an
example over at W3), only seems to work in Moz RC1 :
#boxcredits a[href="http://www.somedomain.com"] { border : 0px;
background:#fff; }
I don't want it to border the graphic which has that link. It works like
expected in Moz, but it does nothing in IE 6 (or 5, for that matter). If
such things are a concern, my DOCTYPE is XHTML Strict.
Any help would be appreciated :)
Regards,
Burhan Khalid
More information about the thelist
mailing list