...

View Full Version : DIV Link



Salchester
07-21-2007, 02:56 AM
Hiya Guys,

How do I adapt the following code, so the ButPrevEna div becomes a link like href?


echo '<div id="ButPrevEna">';
echo "<a href=\"./Display.php?id=" . ($start - $perpage) . "\" class=\"NavEna\">Previous Screen</a>";
echo '</div>';

_Aerospace_Eng_
07-21-2007, 03:02 AM
Not sure what you mean. There is already a link in there. What are you trying to do? Make the whole div clickable? If thats the case then this has NOTHING to do with php. You will need CSS to make the link inside of it display:block.

Mwnciau
07-21-2007, 03:03 AM
This should be in the HTML forum...


echo "<a style="display:block;" id="ButPrevEna" href=\"./Display.php?id=" . ($start - $perpage) . "\" class=\"NavEna\">Previous Screen</a>";

display:block; will make the link as if it is a div



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum