Page 1 of 1

Use of CSS files / Verwendung von CSS-Dateien

Posted: Wed 9. Feb 2005, 07:39
by jscholtysik
English Version:
*******************************

Hi all,


is it generally better to modify and enhance the existing CSS files (frontend.css and print_layout.css) to fit to my needs or should I rather create new ones?


Thanks in advance.
*******************************


Deutsche Version:
*******************************

Hi,

is es generell besser, die vorhandenen CSS Dateien (frontend.css und print_layout.css) abzuändern und zu erweitern, damit sie zu meinen Seiten passen oder sollte ich komplett neue CSS Dateien machen?

Vielen Dank im Voraus.
*******************************


Joachim

Posted: Wed 9. Feb 2005, 11:28
by rk
The only file you could edit in the backend is the frontend.css.

I think the best way is to use that file, than could it be changed within the backend.

Posted: Wed 9. Feb 2005, 11:41
by jscholtysik
Hi rk,


I have the possibility to upload a CSS file directly to the phpwcms_templates/inc_css folder. This file can I then also use in PHPWCMS, but have to edit the file external via an external editor.


Joachim

Posted: Wed 9. Feb 2005, 11:45
by rk
than could you use every additional file you want and include it in html-header-field.

Posted: Wed 9. Feb 2005, 12:07
by jscholtysik
Hi rk,


that answers not my question. The question is whether to start programming an own css file or use the two available files? When I use an own css file, it does not cover the settings for example for articles. When I enhance the frontend.css, it does. So I think, it would be better to enhance an available css file with my own settings. Am I right?


Joachim

Posted: Wed 9. Feb 2005, 12:17
by isac
What I do is:

1 - backup fronthend.css
2 - create and name my own styles
3 - go to conf.template_default.inc.php and rename/remove/change styles
4 - import styles from backup when i need it, because some of them are in the core program

And thats it

Posted: Wed 9. Feb 2005, 13:02
by rk
Ok ;-).

If you don't want to touch the frontend.css, use your own css-file for your own styles and include it in header-field.


I use the frontend.css, because i have sometimes not the possibility to use ftp, so i can modify the frontend.css in backend.

Posted: Sat 10. Mar 2007, 13:22
by oeconom
Hi folks,

comming back to this quite old article...
What to do best to get along with css?
Do you have a recommendation for a (free) css editor?

Thanks,
FELIX

Posted: Sat 10. Mar 2007, 13:40
by flip-flop
Yes, for me a combination with
http://www.pspad.com/
-------------------
# FTP-Client – bearbeiten Sie Ihre Dateien direkt auf dem Server
# Installation beinhaltet Vorlagen für HTML, PHP, Pascal, JScript, VBScript, MySQL, MS-Dos, Perl, ...
# Integration von HTML TiDy zum Überprüfen und Formatieren von HTML-Code, Umwandlung in CSS, XML, XHTML
# optionale Integration des CSS-Editors TopStyle Lite
-------------------
and TopStyle Lite http://www.newsgator.com/NGOLProduct.as ... dView=lite

works very well.

Knut

Posted: Sat 10. Mar 2007, 14:47
by Oliver Georgi
@rk - it's NO good idea to put own CSS style information in HTML head. Place custom CSS files in template/inc_css and select CSS file in template. You can use as many as you like.

You can also set custom CSS file directly from your own PHP code.

Code: Select all

$GLOBALS['block']['css'][]  = 'custom/my.css';
...means "template/inc_css/custom/my.css".

I recommend: forget the default frontend.css and build own from scratch. Maybe you can have a look in it and use some pre-defined classes of it.

Oliver