PDA

View Full Version : [RESOLVED] Layers acting as buttons?


user4937
02-03-2008, 10:01 AM
Hello,

Please help me finding a solution to this little problem I'm having.

I have some layers with links in them. How do I make the whole layer act as the link? In other words to have the user click on the layer and still be taken to the link within that layer.

Thank you for your time and resources!

coothead
02-03-2008, 10:51 AM
Hi there user4937,

does this help...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
#big_link {
width:320px;
border:2px solid #000;
margin:auto;
}
#big_link a {
width:100%;
line-height:196px;
display:block;
font-family:serif;
font-size:1.8em;
color:#ccf;
text-align:center;
background-color:#669;
}
</style>

</head>
<body>

<div id="big_link">
<a href="http://www.google.com/">go google</a>
</div>

</body>
</html>

user4937
02-03-2008, 12:58 PM
YES!!

That was it!

With a little customization I was able to get the result I was looking for.

Thank you so much!

coothead
02-03-2008, 01:01 PM
No problem, you're welcome. :agree: