It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

A a href Problem

A a href Problem

Postby Mihail on Fri Apr 18, 2008 6:42 am

hi, a new Member to the Forum
i just try to make a simple word on a li, anchor text pointing the equivalent url. How can i create a new a href class or id to change the current a href values?

the css code is:

Code: Select all
#postcodes li  a {color:#fff;  display:block; outline:none; height:20px;}
#postcodes li  a.expanded {background:url(/images/minus.gif) no-repeat 98% 50%;}
#postcodes li  a.collapsed {background:url(/images/plus.gif) no-repeat 98% 50%;}
#postcodes li  a:hover {color:#CA3541; text-decoration:none;}
#postcodes li ul {list-style:disc; margin:0 0 0 20px; }
#postcodes li li {background:none; display:inline; padding:0 5px 0 8px; background:url(/images/bullet.gif) no-repeat 0 50% ; font:9pt arial, helvetica, sans-serif; font-weight:normal;}



and the current postcodes.php code:

Code: Select all
<ul>
    <li id="centralLondon"><a href="#">Central London <span class="hide">parks</span></a>
     <ul>
     
      <li>Bankside</li>
      <li>Barbican Estate</li>
      <li>Barnsbury</li>
</ul>
    </li>


i just try to add

Code: Select all
<ul>
    <li id="centralLondon"><a href="#">Central London <span class="hide">parks</span></a>
     <ul>
    <li>[b]<a href="../london-areas/Bankside.php">[/b]Bankside[b]</a>[/b]</li>
      <li>Barbican Estate</li>
      <li>Barnsbury</li>
</ul>
    </li>


Can someone help?
thanks


[/code]
Mihail
 
Posts: 2
Joined: Fri Apr 18, 2008 6:11 am

Postby rangana on Fri Apr 18, 2008 7:55 am

What do you wanted to achieve is this?
can i create a new a href class or id to change the current a href values


...CSS can't do it for you....JS...I see possibility...or I miss something with what you wanted to achieve ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby Mihail on Fri Apr 18, 2008 11:19 am

yes, i want to create a new a href class or id to change the current a href values, or somehow to make this a href link work as a simple link without the current display.

thank you, any suggestions?
Mihail
 
Posts: 2
Joined: Fri Apr 18, 2008 6:11 am

Postby rangana on Fri Apr 18, 2008 11:48 pm

I don't get what you mean :(

...As what I understood, you want to change the anchor's class during onclick?...or you want to change its href values??...or something else?

...Also, what do you mean when you say..."work as a simple link without current display"?..what's that?..

...We could code you for your needs,,but I'm (We) confused on what you wanted to achieve ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 0 guests