100% Height?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Pappnase

100% Height?

Post by Pappnase »

Guten Morgen

Wie kann man es hinbekommen das man eine Höhe aller Blöcke von 100% hinbekommt? So das man immer eine einheitliche ansicht hat.

Gruß
Oliver
brans

Post by brans »

ähm ? hast du ein Beispiel, wo die Ansicht nicht einheitlich ist?
beschreib dein Problem mal genauer, mache einen Screenshot, oder poste die Url, an der du arbeitest bitte!
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

100% Table Height

Post by Oliver Georgi »

Here is the solution - I have tested this:

add a new class to the templates's CSS file (can also be named different):

Code: Select all

.tableheight { height: 100%; }
And then fill in all blocks's class field "tableheight".


That works.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marco

Post by marco »

What do you do if you have to define more than one class in the CSS file?
You can add only one class in the page layout form...
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

:?: Hm, this is something I do not understand?

Marco what do you want to do?

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marco

Post by marco »

Have both a border around the table and the length expressed as %.

Maybe a simple solution is to use a separate stylesheet include in the header or somewhere... Then we could have the default or standard phpwcms styles and include as many classes we need. Or maybe reference that custom stylesheet file in the page layout instead of the class.
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Hm, but where is the problem to put this into one class?

.tableheight { height: 100%; border: 5px solid Gray;}

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marco

Post by marco »

Not a problem, indeed, in this case.
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

:D
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply