View Full Version : getting a div in a linked div container to change colour on hover?

01-26-2010, 10:41 PM
hi all

i have the following code

<a href="<?php echo $page_link?>">
<div class="individual_link_container">

<h2 class="red">
<?php echo $category['category']?>

<div class="small">
<?php echo $category['desc'];?>


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

01-26-2010, 11:27 PM
Go in the CSS file and add a hover code to that div.

01-27-2010, 10:27 PM
thanks mate sorted it