HOw to make a div a link in html coding?

niksag_3000

New member
Ok I am trying to make my cafepress store a custom layout. I want to make the "home" a link and I am lost with their div coding.

Here is what I have...

<div class="navheadline">Home</div>

<div id=<a href="http://www.cafepress.com/storename"/<cpstore:home>
<div><cpstore:home></div>
</div>

Below is their coding I tried to copy to link the "home" above....


</div>
<div class="navheadline">Browse Designs</div>
<div id="browsedesigns">
<div><cpstore:sidebar></div>

Can anyone help me here??????? I think I am messing up with the cpstore section.
 
The "div" is a box and that is all. You put things into the box. The id and class are used in CSS to designate a div or whatever, as the id or class and to assign formating desired. In your first line above, the div or box has nothing in it except the word "Home". In your second line, you can not have an id with a tag in its name.

If you wish, and I don't really know what you are trying to accomplish, you could have the following:

<div class="navheadline">
<a href="http://www.cafepress.com/storename…>Home />
</div>

Study the examples and explanations at http://www.w3schools.com You will never get there doing what you are doing now.
 
Back
Top