Use of CSS files / Verwendung von CSS-Dateien

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
jscholtysik

Use of CSS files / Verwendung von CSS-Dateien

Post by jscholtysik » Wed 9. Feb 2005, 07:39

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

rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk » Wed 9. Feb 2005, 11:28

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.
Ralf

jscholtysik

Post by jscholtysik » Wed 9. Feb 2005, 11:41

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

rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk » Wed 9. Feb 2005, 11:45

than could you use every additional file you want and include it in html-header-field.
Ralf

jscholtysik

Post by jscholtysik » Wed 9. Feb 2005, 12:07

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

User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac » Wed 9. Feb 2005, 12:17

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

rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk » Wed 9. Feb 2005, 13:02

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.
Ralf

User avatar
oeconom
Posts: 337
Joined: Fri 13. May 2005, 09:33
Location: Stuttgart
Contact:

Post by oeconom » Sat 10. Mar 2007, 13:22

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
...alles wird gut!
still alive...
Experimenting with phpwcms and hoping to have time one day to get a site live... :wink:
One Site finished! :P

User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop » Sat 10. Mar 2007, 13:40

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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )

User avatar
Oliver Georgi
Site Admin
Posts: 9583
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Post by Oliver Georgi » Sat 10. Mar 2007, 14:47

@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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

Post Reply