Log In · Register

 
2.0 layout link help
kalientemexikana
post Jun 27 2009, 12:18 AM
Post #1


Member
**

Group: Member
Posts: 10
Joined: Sep 2007
Member No: 576,180



how do i make my links look like block headers?

rectangles with the words if you are confused

please help me out

<3
 
 
Start new topic
Replies
Mikeplyts
post Jun 27 2009, 01:59 PM
Post #2


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



^ That's a 1.0 layout though. But I guess you can sort of make links like that in 2.0.

First, we'll need to hide the navigation. Put this in your CSS:
CODE
#topnav li {display:none;}
div#googlebar {display:none;}


Next, we'll add a custom div class to your CSS so we can display it later in your HTML. Put this in your CSS:
CODE
.cstmnav {
position:absolute;
top:###px;
_top:###px;
left:50%;
_left:50%;
margin-left:-###px;
_margin-left:-###px;
width:###px;
height:###px;
}

Replace the ### with your own values.

Now, we need to define a class for how our little block header links are going to look like. Use this in your CSS:
CODE
a.cstmnav_link {
font-family:arial;
font-size:12px;
color:#FFFFFF;
background-color:#333333;
border-width:1px;
border-color:#777777;
border-style:solid;
padding:4px;
display:block;
}
a.cstmnav_link:hover {
font-family:arial;
font-size:12px;
color:#333333;
background-color:#FFFFFF;
border-width:1px;
border-color:#010101;
border-style:solid;
padding:4px;
display:block;
}


You can edit or add more properties if you'd like. Finally, we move on to the HTML.

We're going add the DIV container and the links inside it so add this in your About Me:
CODE
<div class="cstmnav">
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
<a class="cstmnav_link" href="URL">TEXT</a>
</div>


Now edit that stuff, Save Changes, and you're done! _smile.gif
 

Posts in this topic
kalientemexikana   2.0 layout link help   Jun 27 2009, 12:18 AM
Mikeplyts   can you give an example?   Jun 27 2009, 12:55 AM
kalientemexikana   RE: 2.0 layout link help   Jun 27 2009, 12:57 PM
Mikeplyts   ^ That's a 1.0 layout though. But I guess you ...   Jun 27 2009, 01:59 PM
kalientemexikana   omg thank you!! ive been trying to do this...   Jun 27 2009, 07:11 PM
Mikeplyts   haha, no problem.   Jun 27 2009, 09:33 PM
Mike   Topic closed & moved.   Jun 28 2009, 02:44 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: