Text class

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
richardpettet
Posts: 24
Joined: Sat 21. Oct 2006, 11:16

Text class

Post by richardpettet »

Hi

This is probably very easy but i'm a novice programmer and have only used PHPWCMS a few times.

I have a website that is using articles with the WYSIWYG content part. How do i customise the class of the text? I have found how to control the Title, Subhead, Summary etc here:
http://forum.phpwcms.org/viewtopic.php? ... tle#p84617 but can't find how to change the style of the text, i.e the font throughout the site.

Any help with examples would be appreciated.

Thanks
Rich
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Text class

Post by update »

The overall font is styled within the body / html tag. Have a look at the top of frontend.css...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
richardpettet
Posts: 24
Joined: Sat 21. Oct 2006, 11:16

Re: Text class

Post by richardpettet »

Hi

I've changed the stylesheet quite a bit so i'm not sure I know what you mean. Is it this?

.articleText {
color: #000000;
margin-bottom: 3px;
text-align: justify;
}

I know this is probably a really simple thing but i'm lost!

Rich
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Text class

Post by update »

This is the overall (default) definition:

Code: Select all

    body, html {
        text-align: left;
        font-family: "Lucida Grande","Lucida Sans Unicode","Trebuchet MS",Arial,sans-serif;
        line-height: 135%;
        color: #333;
    }
for example
Later you will like to override id with your articleText definition: color and text-align (only for example also) ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
richardpettet
Posts: 24
Joined: Sat 21. Oct 2006, 11:16

Re: Text class

Post by richardpettet »

Cheers for the replies, Claus.

This line changes the line depth and colour but not fonts or font size:

.body, html {font-size:20px; font-family: "Arial"; line-height: 100%; color: #000000;}

How do i change the font and size?
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: Text class

Post by breitsch »

A bit further down in frontend.css

Code: Select all

td, th, p, div, span {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 11px
}
change or delete it to apply the body definitions
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
Post Reply