SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multiple classes forest... help please

    hi there,

    basically i want this:
    Code:
    .sidebar h4>a { ... }
    to work in IE...


    this is defined already:
    - .sidebar
    - .sidebar a
    - .sidebar a:hover
    - .sidebar h4

    I have tried the following:
    - add a class: <a class="test" href="">h4link</a> but this puts the links the same as .sidebar a / a:hover ...??
    - <a style="color:#fff;" href="">h4link</a> but i cannot put the a:hover effect into this, can i??

    Please help
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to get away with this:
    Code:
    .sidebar h4 a
    unless you nest lots of elements inside your H4s.
    Birnam wood is come to Dunsinane

  3. #3
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for your info:

    Quote Originally Posted by AutisticCuckoo
    Code:
    .sidebar h4 a
    does the trick

    Code:
    <div class="sidebar">
    <h4>header</h4>
    <p><a href="" title="">link</a></p>
    ...
    <h4><?php echo date("d M Y");?> - <?php echo date("H:i");?>
     <br>
      <a href="http://www.website.com" title="website.com">website.com
      </a>: &copy;
    <a href="contact.php" title="name">name</a></h4>
    </div>
    shame on IE! .sidebar h4>a looks so much neater... ts ts ts...

    thanx again AutisticCuckoo
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •