Missing class & id for body Element

Use GitHub to post feature requests for phpwcms.
Locked
LANtastic
Posts: 73
Joined: Sun 22. Feb 2004, 13:11
Location: Germany

Missing class & id for body Element

Post by LANtastic »

Currently you can only set a class for all elemets inside the body tag in the Layoutdefinition. You can also set the "onLoad" Event for body, but I'm missing a possibility to set id and/or class for a body element.

Could this be implemented for one of the next releases ?
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

As far as I know, there is only one body element per page. What prevents you from defining in css:

Code: Select all

body { ... }
:?:

It's just a crazy thought ;).
LANtastic
Posts: 73
Joined: Sun 22. Feb 2004, 13:11
Location: Germany

Post by LANtastic »

My current website is completly based XHTML/CSS. To realize a sort of themes, I have done this :

The part with the blog uses : id="blog"
The article part uses : id="articles"
...
...

An alternative would be to do this :

<body>
<div id="blog">That a wrapper container</div>
</body>

<body>
<div id="articles">That a wrapper container</div>
</body>

but this only means that I have to use additional code, that is absolutly not necessary.
Locked