Forums / Setup & design / Muticolumn in css

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

eZ debug

Timing: Jan 17 2025 22:36:24
Script start
Timing: Jan 17 2025 22:36:24
Module start 'content'
Timing: Jan 17 2025 22:36:25
Module end 'content'
Timing: Jan 17 2025 22:36:25
Script end

Main resources:

Total runtime1.2289 sec
Peak memory usage4,096.0000 KB
Database Queries198

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.6094180.8516
Module start 'content' 0.00581.1202 768.4609576.8125
Module end 'content' 1.12610.1028 1,345.2734336.7734
Script end 1.2289  1,682.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3347210.0002
Check MTime0.00150.1222210.0001
Mysql Total
Database connection0.00080.065310.0008
Mysqli_queries1.148793.46931980.0058
Looping result0.00180.14881960.0000
Template Total1.203197.920.6015
Template load0.00200.166320.0010
Template processing1.201097.727420.6005
Template load and register function0.00020.017710.0002
states
state_id_array0.00080.061510.0008
state_identifier_array0.00100.077520.0005
Override
Cache load0.00190.1514810.0000
Sytem overhead
Fetch class attribute can translate value0.00220.181930.0007
Fetch class attribute name0.00130.102260.0002
XML
Image XML parsing0.00440.357930.0015
class_abstraction
Instantiating content class attribute0.00000.001480.0000
General
dbfile0.00470.3845330.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs