[CPS-devel] How to remove <div style="clear:both"></div>

Jean-Marc Orliaguet jmo at ita.chalmers.se
Wed Apr 12 09:26:18 CEST 2006


JoseLuis de la Rosa Triviño wrote:

>Hello,
>
>In our project, we have received a design (html, css and images) from another company and now we have to make cps to look exactly the same as that graphic design. We find it difficult to do it with CPSSkins because some styles overlap our original styles (like those that are defined as html tag attribute).
>Finally, we decided to modify the automatic generation of html code so that we get just the strictly necessary html code.
>
>However, if anybody has ever faced a similar problem I'd be grateful to hear about their choice or any other solution.
>
>I've removed <div style="clear:both"></div> from portal_skins/cpsskins_cmf/cpsskins_portlet_manage_lib but it still goes on being in the final html code.
>
>Thank you very much.
>
>  
>

If there is some overlap, I would rather look at the static CSS files 
(./skins/CPSSkins/cpsskins_common-css2.css.dtml 
./skins/CPSSkins/cpsskins_common.css.dtml and 
./skins/cps_styles/default.css.dtml) than trying to change the code used 
by the rendering engine.

<div style="clear:both"></div> is used to clear horizontal floats in slots. In any case it is completely invisible.

anyway you can check:
skins/cpsskins_cps3/cpsskins_portlet_manage_lib

but you won't be able to use horizontal layouts in slots (lots of themes will break).

/JM



More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.