Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,099
    Thanks
    297
    Thanked 12 Times in 12 Posts

    Exclamation getting a div in a linked div container to change colour on hover?

    hi all

    i have the following code
    PHP Code:
                <a href="<?php echo $page_link?>">
                <div class="individual_link_container">
                
                <h2 class="red">
                <?php echo $category['category']?>
                </h2>
                
                <div class="small">
                <?php echo $category['desc'];?>
                </div>
                
                </div>
                </a>
    which sets the main individual_link_container as the link, now you wouldnt know that from looking at the page output as the text in the divs within the individual_link_container dont ack as links, so the default link colour isnt shown and i dont get any hover effects either?

    the above code also throws up some errors "document type does not allow element "div" here" relating to the individual_link_container.

    not sure how to get this working
    any ideas
    Luke

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Go in the CSS file and add a hover code to that div.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #3
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,099
    Thanks
    297
    Thanked 12 Times in 12 Posts
    thanks mate sorted it


  •  

    Posting Permissions

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