Log in

View Full Version : Using links in templates with Dreamweaver



med1041
03-04-2009, 04:18 PM
I am working with a template and I have set the page properties to display the links in a certain way. I thought this would only affect the areas that are not editable. Apparently I am wrong. The content area of the template page is hanging on to the page properties of the template. I want my links in the content areas to appear differently than what I created in the template. I used style= to change the color of each individual link on each page but I cannot figure out how to get the rollover behavior so its consistent with the template links. Can anyone help me besides telling me I shouldn't use templates? I am in too far now to turn back. Thanks.

Snookerman
03-04-2009, 04:41 PM
You could give the links you want to target a common class value or you could give the container containing the links a class value and use it to target only those links. I would be much easier to explain if you could post a link to your site or attach the code and specify which links you want to target.

med1041
03-04-2009, 05:21 PM
Here is the link to my site. I am still working on it. The area of concern is getting the links in the content area of the pages to appear in a color other than white. It is fine in the header but on the pages it is hard to read. Then if they could have the functionality and change color when rolled over and visited.

Let me know if you have any ideas. I am new at this so hopefully the fix isn't too complicated.

http://cuip.net/~mwenzel/tieportfolio/index.html

Snookerman
03-04-2009, 05:28 PM
First, give the tr tag that contains the content a class value:

<tr class="content">
Then, add this to your css code:

.content a {
color: #00f;
}
.content a:hover {
color: #f00;
}
On a side note, when you have time please read this article: http://www.hotdesign.com/seybold/everything.html (http://www.hotdesign.com/seybold/everything.html)

Good luck!

pinkycook
03-09-2009, 03:50 AM
Thanks for the script.