Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#14 2005-11-22 07:34:58

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#16 2005-11-22 11:36:03

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#18 2005-11-22 15:17:10

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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.

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

Board footer

Powered by FluxBB