Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-05-16 22:28:24
- Plaz
- Member
- From: Minnesota
- Registered: 2004-06-02
- Posts: 33
Style only the links in article tags?
I need to style the links that appear only in articles or excerpts. Below is some css regarding all links for the site:
a {
text-decoration: none;
color: #006699;
}
a:hover {
color:#990000;
text-decoration: underline;
}
Can someone please explain exactly what I need to do if I want to have all links that are within articles to have a specific attribute, like say a dotted underline?
What should the css look like in the style sheet, and how do I implement it in an articles form so that all article use the different style of links? I want all other links on the site to stay as they are… just style the ones within articles.
I appreciate all of the help very much.
If you want something you have never had, then you must be willing to do something you have never done.
Offline
Re: Style only the links in article tags?
In your article form (default, for example):
<div id="content">
<txp:body/>
</div>
CSS:
#content a
{
/*...*/
}
Last edited by jm (2008-05-16 22:37:24)
Offline