I added the following code to http://www.pmob.co.uk/temp/3colfixedtest_4.htm and change the name of “centrecontent” to intro for my own semantic use at http://dot.kr/x-test/3cols11-1.php .
<script type="text/javascript">
window.onload=function() {
document.getElementById("left").onclick=function() {
window.location.href="left.php";
}
document.getElementById("[COLOR="Red"]intro[/COLOR]").onclick=function() {
window.location.href="intro.php";
}
document.getElementById("right").onclick=function() {
window.location.href="right.php";
}
}
</script>
If a user clicks anywhere inside the left div block it will go to left.php.
If a user clicks anywhere inside the intro div block it will go to intro.php.
If a user clicks anywhere inside the right div block it will go to right.php.
It works fine as long as you click the area near to text at each div.
But what about the margin which has not text.
As left div has the longest text, intro div and right div has some margin on their bottom.
My problem is the margin is not clickable.
How can I make it the margin is clickable?
I tried for making maring clickable at the following links, but failed.
http://dot.kr/x-test/3cols12-1.php
http://dot.kr/x-test/3cols13-1.php