> problem url - http://projects.missioninternet.com/proweb/clients/test.php
> javascript fix url - http://projects.missioninternet.com/proweb/clients/test2.php
[quoted text clipped - 8 lines]
> <ul>
> <li onclick="makeRequest('echo.php?clientID=2')">Reports</li>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That is *not* a link, but an onclick handler added to a list index to
"behave" like a link. Why would you expect your rule for an A element
work for a LI? Anyway, don't do this. Very bad practice and very
unreliable...

Signature
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
> problem url - http://projects.missioninternet.com/proweb/clients/test.php
> javascript fix url - http://projects.missioninternet.com/proweb/clients/test2.php
[quoted text clipped - 16 lines]
> </div><!-- end leftMenuPad -->
> </div><!-- end leftMenu -->
[snip]
> #leftMenu li a {
> padding: 5px 0 0 0;
[quoted text clipped - 5 lines]
> font-weight: bold;
> }
You have no <a> tag in the list item reading "Report" so naturally these
selectors won't affect it.
> As a work around I added onMouseOut and onMouseOver behaviors with
> javascript to mimic the stylesheet behaviors. Refer to the
> "javascript
> fix url" above. Although this works, I would like to know why onClick
> overrode the stylesheet format.
The onclick didn't override anything. You *removed* the <a> tag,
therefore there isn't one for the CSS to match.
Big Moxy - 26 Dec 2007 18:07 GMT
On Dec 26, 8:49 am, Harlan Messinger
<hmessinger.removet...@comcast.net> wrote:
> > problem url -http://projects.missioninternet.com/proweb/clients/test.php
> > javascript fix url -http://projects.missioninternet.com/proweb/clients/test2.php
[quoted text clipped - 42 lines]
>
> - Show quoted text -
Harlan and Jonathan,
Thank you for your comments. You pointed out the flaw in my
thinking... that onClick was the same as <a href..>. The reason for
the onClick is that the Javascript uses Ajax to return the results on
the same page. Can you recommend how I can use CSS to define the
onClick behavior (like a:hover)? Should I add <a href="#"> along with
the onClick?
- Tim
Jonathan N. Little - 26 Dec 2007 18:11 GMT
> Should I add <a href="#"> along with the onClick?
Sounds like a plan to me...

Signature
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com