frontend.css question

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

frontend.css question

Post by pico »

Hi

in the new frontend.css I see this Code

Code: Select all

#container {
	width: 760px;
	\width: 780px;
	w\idth: 760px; ....
can someone explain me what that means with the three different 'width'
and the Slash inside ?

and for what is this Class ?

If wrong Thread please move
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi pico,

your first question: I think it is for different browsers? but not sure

second: container css . this is for definition of areas when using in layout settings CSS DIV instead of tables.

so you can put these style definintions into the field class behind the content areas, for e.e.g "all blocks" you use #container, for "left" you use #left and so one....
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

yes - I also think that the first is for different Browsers - but wichone is for what Browser - and wher is a description of this.

With the containerClass I see it on every Area >div#container >dic#headerBlock and so on - so it's clear now

thanx
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Post by Karla »

From the web:
It is the infamous 'simplified box model hack'. It is a syntax hack designed to send the 'incorrect' width of 780px to IE5.* browsers and the correct width of 760px to all other browsers.
IE5.* has a broken box model which means it incorrectly includes padding when it calculates width. Here the padding is 10px on either side so 20px must be added to the width.
Post Reply