Designing {content} and {title} output

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Designing {content} and {title} output

Post by Ylle »

This is probably a very stupid question but I've got everything up and running and it works great -- but I can't find where to change the appearance of the {content} and {title} fields. I need to change the font size (without using the editor), font and color -- if possible also the line height.

What do I need to do?

/Ylle
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Designing {content} and {title} output

Post by Dee »

Edit the "Layout" stylesheet used by the template.
It has a section

Code: Select all

div#content {
}
where you can change the style for the content block
and

Code: Select all

div#content h2 {
}
for the title (you could also add an id or class for this in the template to style it seperately).
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Re: Designing {content} and {title} output

Post by Ylle »

Thanks, Dee, but can I just add those tags to my own stylesheet, since I have my own template with my own stylesheet connected to it?

/Ylle
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Designing {content} and {title} output

Post by Dr.CSS »

In what ever div you have the {content} tag your CSS will reflect this with a div#yourdivid {the styling you want}
and however you have the {title} wrapped, {title}  if so then div#content h2 {the style you want}

id= is called in a CSS with # a class= is called with . as in .content {style you want}
class is so you can style more than one thing the same way, no 2 things should have the same id=.
Post Reply

Return to “Layout and Design (CSS & HTML)”