Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-01-24 10:28:57

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Getting RSS feed to work in Firefox browser

Okay thanks, now I just need to work out when to use which. :0)

Offline

#17 2006-01-25 03:35:53

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Getting RSS feed to work in Firefox browser

I tend to use ID’s more than classes, mainly because it’s easier for me. For big things, like a header, column/sidebar, you won’t have another instance of it, so you can use an ID. There’s nothing wrong with using classes, but I’m just an ID person…

Here’s something that’s pretty neat (as in tidy). I forget what it’s called specifically, but it’s basically like nesting HTML and CSS. Let’s say our XHTML looks like this:
<code>
<div id=“content”>
<h2>Heading Number Two</h2>
<p>something that is <a href=”#”>linked</a>.</p>
</div>
</code>
Suppose we want to style the h2 and p for the content div only (it won’t apply globally—to other html tags).

CSS:
<code>
#content h2 {
/*Style the <h2> found in the content only*/
font-size: 40em;
}
#content p { text-indent: 30em; }
#content p a {
/* style links found in the #content p only */
color: #FCC;
}
</code>
Probably won’t make sense, but it’s something to play with!

Offline

Board footer

Powered by FluxBB