Forums

This topic is locked

Link Properties in DWMX

Posted 17 Aug 2007 17:23:39
1
has voted
17 Aug 2007 17:23:39 vonda carmack posted:
I am pretty new at this so bare with me.
I have a row of words that I made links. But--I don't want the words to change colors or do anything except have an underline on rollover. I have selected the rollover in the page properties.
And I don't know anything about css.

Replies

Replied 25 Aug 2007 02:20:20
25 Aug 2007 02:20:20 Violet W replied:
First make yourself a css file (style.css), in that file put this (no html or anything just this only):

a {
color: #CC0000;
text-decoration: none;
}

a:hover {
color: #CC0000;
text-decoration: underline;
}

then in your page between <head> </head>
put this line of code:

<link rel=stylesheet href="www.yourwebsite.com/style.css" type="text/css">

Also, I suggest in your css, putting in your font and stuff so that if you ever want to change something, you change one file instead of however many pages you have. To do font or anything else, do the same as above only with font for example:

body {
font-family: Arial, Verdana, Helvectica;
font-size: 10px;
color: #FFFFFF;
background-color: #000;
margin-left: 0;
margin-top: 0;

}

or sometimes I do this too

td {
font-family: Arial, Verdana, Helvectica;
font-size: 10px;
color: #FFFFFF;
}

for when you're working with tables, to make sure the font is the same and not default.
If you want you can make your own like...

main {
font-family: Arial, Verdana, Helvectica;
font-size: 10px;
color: #FFFFFF;
}

sub {
font-family: Arial, Verdana, Helvectica;
font-size: 12px;
color: #FF0000;
}

When you make special things like that, aside from the typical links, font, td etc you have to call it i.e. <div span="main">your main font</div>
<p>
<div span="sub">your sub font</div>

Edited by - vmethod on 25 Aug 2007 02:21:54

Reply to this topic