Log In · Register

 
overlay layout help, navigation transforming and html help
kaylz123
post Feb 19 2008, 12:15 PM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: Aug 2007
Member No: 565,049



i was wondering if anyone can help me with changing my navigation.
for instance like most of the myspace overlay layouts pn here, when you hover over a link the back ground around the link and the text transform.
i am having difficulty managing to do this properly and so far have only managed to change the text.
if you dont know what i mean here is a link to a profile which does what i want >
http://www.createblog.com/layouts/preview.php?id=22481


i would also like to change all the underlined text on my page to a different colour.
please can anyone help?
 
 
Start new topic
Replies (1 - 1)
miyashu
post Feb 19 2008, 05:21 PM
Post #2


cake or DEATH
*****

Group: Staff Alumni
Posts: 631
Joined: Sep 2005
Member No: 223,586



I'll go through this step-by-step.

First you adjust the properties for your links. Change it to your liking:

CODE
a.nav:link, a.nav:active, a.nav:visited{
background-color:000000;
color:ffffff;
font-family:arial;
font-size:8px;
text-align:center;
padding:7px;
text-decoration:none;
width:150px;
text-transform:uppercase;
font-weight:normal;
letter-spacing:1pt;
margin-bottom:1px;
}


Then you adjust the properties of your links when hovered. Again, you can change the colors, styles, sizes, etc to whatever you want.

CODE
a.nav:hover{
background-color:000000;
color:333333;
font-family:arial;
font-size:8px;
text-align:center;
padding:7px;
text-decoration:uppercase;
width:150px;
text-transform:none;
font-weight:normal;
letter-spacing:1pt;
margin-bottom:1px;
}


Then you put your code to work, using this:

CODE
<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>


So this is the entire code, which you would place in your About Me section:

CODE
<style>
a.nav:link, a.nav:active, a.nav:visited{
background-color:000000;
color:ffffff;
font-family:arial;
font-size:8px;
text-align:center;
padding:7px;
text-decoration:none;
width:150px;
text-transform:uppercase;
font-weight:normal;
letter-spacing:1pt;
margin-bottom:1px;
}

a.nav:hover{
background-color:000000;
color:333333;
font-family:arial;
font-size:8px;
text-align:center;
padding:7px;
text-decoration:uppercase;
width:150px;
text-transform:none;
font-weight:normal;
letter-spacing:1pt;
margin-bottom:1px;
}
</style>

<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>
<a href="URL HERE" class="nav">Link</a>



To change the color of underlined text, you'd use this code:

CODE
u {
color:FONT COLOR HERE;
}
 

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