Muticolumn in css

Author Message

Veronique Jamilloux

Wednesday 01 June 2011 4:08:06 am

Hi,

In my template,I would like for an attribute multi-column layouts. In css we can define a div like that:

div# NewsArticle{ 
border: solid black 1em;
padding: 1em; 
column-count: 2; 
column-rule: solid black 1em; 
column-gap: 4em;
border: solid black 1em; 
padding: 1em; 
column-count: 2; 
column-rule: solid black 1em; 
column-gap: 4em;
}

I put this in my stylesheet file.

If I display my object, when I use the css inspector of the browser, this tag definition is interpreted like that:

div#NewsArticle 

{border-top-width: 1em;

border-right-width-value: 1em;

border-right-width-ltr-source: physical;

border-right-width-rtl-source: physical;

border-bottom-width: 1em;

border-left-width-value: 1em;

border-left-width-ltr-source: physical;

border-left-width-rtl-source: physical;

border-top-style: solid;

border-right-style-value: solid;

border-right-style-ltr-source: physical;

border-right-style-rtl-source: physical;

border-bottom-style: solid;

border-left-style-value: solid;

border-left-style-ltr-source: physical;

border-left-style-rtl-source: physical;

border-top-color: black;

border-right-color-value: black;

border-right-color-ltr-source: physical;

border-right-color-rtl-source: physical;

border-bottom-color: black;

border-left-color-value: black;

border-left-color-ltr-source: physical;

border-left-color-rtl-source: physical;

padding-top: 1em;

padding-right: 1em;

padding-bottom: 1em;

padding-left: 1em;

}

and it miss column-count:2; column-rule: solid black 1em; column-bap:4em. And the display of the attribute stays on only One column!

It seems that eZ publish doesn't manage these css properties.

How can I solve this problem?

Thanks a lot for your help.

Véronique

URGI - INRA
Webmaster
Route de Saint Cyr
78000 Versailles

Brandon Chambers

Wednesday 01 June 2011 10:12:29 am

Hello,

-Try pasting your CSS code into W3C's CSS validator (www.w3c.org)

-Are you using Windows / Notepad while editing your CSS file? Make sure there aren't any special characeters in the file (use Notepad++ for Windows or use any *nix machine)

-Is your CSS being compiled/packed with eZJSCore?

-If your have CSS in the template file, remember to use {literal}{/literal} tags or {ldelim}{rdelim}

-Make sure there's no comment blocks in CSS messing you up.

Hope this helps

Brandon Chambers
brandon@granitehorizon.com
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com

Veronique Jamilloux

Wednesday 01 June 2011 10:53:09 am

Hi Brandon,

Thanks for your suggestions.

I don't understand what you mean by -Is your CSS being compiled/packed with eZJSCore?

My editor is Eclipse

My css was validate with http://jigsaw.w3.org/css-validator
and there is no comment in my css file

I'll try to put my style with {literal}{/literal} tags

Thanks again for your help

Véronique

URGI - INRA
Webmaster
Route de Saint Cyr
78000 Versailles

Brandon Chambers

Wednesday 01 June 2011 1:30:23 pm

"

Hi Brandon,

Thanks for your suggestions.

I don't understand what you mean by -Is your CSS being compiled/packed with eZJSCore?

My editor is Eclipse

My css was validate with http://jigsaw.w3.org/css-validator
and there is no comment in my css file

I'll try to put my style with {literal}{/literal} tags

Thanks again for your help

Véronique

"

If you take a look at your page source real quick: if there is only one file with a hash-type looking filename like: jkldfsgjklfgf90200ds98090d890fds.css being included on your page, all the CSS is probably being packed with the eZJSCore packer.

Take a look at the ezjscore extension which should be available in at least eZP 4.3+. Its settings in ezjscore/settings/ezjscore.ini has the ability to disable packing for debugging and non-caching behavioral purposes.

I hope this helps!

Let me know about your progress!  :)

Brandon Chambers
brandon@granitehorizon.com
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 01:09:23
Script start
Timing: Jan 18 2025 01:09:23
Module start 'layout'
Timing: Jan 18 2025 01:09:23
Module start 'content'
Timing: Jan 18 2025 01:09:23
Module end 'content'
Timing: Jan 18 2025 01:09:23
Script end

Main resources:

Total runtime0.0140 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 591.0859152.6094
Module start 'layout' 0.00590.0020 743.695339.4219
Module start 'content' 0.00790.0040 783.117297.9609
Module end 'content' 0.01190.0020 881.078138.2891
Script end 0.0140  919.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.4262140.0002
Check MTime0.00107.1730140.0001
Mysql Total
Database connection0.00085.774110.0008
Mysqli_queries0.002115.181630.0007
Looping result0.00000.085110.0000
Template Total0.001711.910.0017
Template load0.00096.095810.0009
Template processing0.00085.780910.0008
Override
Cache load0.00064.254510.0006
General
dbfile0.00031.951980.0000
String conversion0.00000.034040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs