Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2005-11-22 07:24:17
- pollo
- Member
- Registered: 2005-02-17
- Posts: 22
Re: Selectors? CSS? New guy here.
thanks. At least I understand that permalink can’t “override” anything. So, I must either have something in the style sheet or the HTML that is messing me up. I will try specifying everything as you noted nardo. But I’ll wait till tomorrow…
thanks again for the help.
In case you were curious, here is some more info:
css:
http://smartcycle.com/news/textpattern/css.php?s=default
Form:
<code>
<div class=“title”><txp:permlink><txp:title /></txp:permlink></div>
<div class=“credits”><txp:posted format=”%B %e, %Y” /></div>
<div class=“body”><txp:body /></div>
<txp:if_comments><div class=“credits”><txp:comments_invite /></div>
</txp:if_comments><br>
<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div><br></code>
Last edited by pollo (2005-11-22 07:38:51)
Offline
Re: Selectors? CSS? New guy here.
Use < code>< /code> tags (without the spaces) to display code properly. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#15 2005-11-22 07:39:35
- pollo
- Member
- Registered: 2005-02-17
- Posts: 22
Re: Selectors? CSS? New guy here.
thanks.
Offline
Re: Selectors? CSS? New guy here.
I would change the <code><txp:if_comments></code> tags around the <code><txp:comment_invite /></code> tag to <code><txp:if_comments_allowed></code> tags otherwise the invite won’t show if you have zero comments.
Looking at your code I think you should be using “.title” “.title a” “.title a:hover” – in your CSS for styling the title link. Anything to do with the font such as size, weight and colour should be in the “a” and “a:hover”. Anything to do with positioning such as margins or padding should be in “.title”.
Last edited by thebombsite (2005-11-22 11:36:40)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#17 2005-11-22 13:10:25
- pollo
- Member
- Registered: 2005-02-17
- Posts: 22
Re: Selectors? CSS? New guy here.
I added a:hover and .title and a:visited. It’s great!
Thanks to all of you for your tips and advice.
Last edited by pollo (2005-11-22 13:18:14)
Offline
Re: Selectors? CSS? New guy here.
pollo please read HTML Dog’s html and css tutorials. They are some of the best out there. One area to focus on would be semantic HTML markup. So instead of having code like <code><div class=“title”>title here</div></code> you could have <code><h2>title here</h2></code>. The code makes more sense that way because a heading is marked up as a heading and not a meaningless div.
Refresh Dallas and other Refreshing Cities.
Offline
#19 2005-11-28 02:21:45
- pollo
- Member
- Registered: 2005-02-17
- Posts: 22
Re: Selectors? CSS? New guy here.
thanks for the tip tinyfly
p
Offline