Page 1 of 1

CSS problem

Posted: Wed 3. Mar 2004, 00:41
by Manolo
Hello, I have little experience with making websites. I've downloaded phpwcms last week and I've created a nice looking layout by now. (in my opinion anyway)

Now I have 2 questions about the CSS file. First, when I change the font and size of: td, tr, th, p
Then the font and size of some text I used in the footer changes. That seems ok to me. However, the font of the article summary also changes, but not the size. Why is this?

Second question, When I change the size of the article_summary (in the CSS file), then it seems that not the size changes, but it seems that something like line distance or so is changing.

I really don't understand how this file works. I hope someone wants to explain it to me.

Thanks in advance,
Manolo

Posted: Wed 3. Mar 2004, 01:04
by Jan212
hi manolo,
you have to view the page source in your editor. copy a word at the beginnig of the text you want to formate and drag it in the editors search function, search after it in the page-source and read out which class is formating it, our if there's no class declared.

regards

Posted: Wed 3. Mar 2004, 09:28
by Manolo
Ok, I did what you said:

<div class="articleText"><span lang="NL" style="FONT-SIZE: 11pt; FONT-FAMILY: ">De stichting is

I can see here that the class would be articleText, but after that it seems to me that the fontsize is redeclared. I can't find how to change this. It seems to be generated by the WYSIWYG editor, because when I look in the phpwcms system in the content summary, you can see the same declaration of font size.

Posted: Wed 3. Mar 2004, 19:44
by Manolo
Can somebody explain to me that redeclaration of the font size?
And what I can do about that?

Manolo

Posted: Wed 3. Mar 2004, 19:53
by ionrock
You are right that the font size is declared in your example by the rich text editor. You can turn styles off in spaw (the rich text editor) but I don't really know what that will do. If you know you want to edit the text using the style sheet then just do the article in plain text and use the css to format it. You can then add your own classes/ids as well. I hope this answers your question.

By the way, you might want to look at the inheritance properities of css. That might help you out as well with finding a nice balance between using the css file and rich text editor.

Posted: Wed 3. Mar 2004, 22:49
by Manolo
Thank you guys for your help.
I think I accidently inserted the tags myself in spaw. Maybe it happened with some copy-pasting from other editors.
With the html edit option I was able to delete the tags.