|
|||
|
hi,
i started yesterday using the template kit and i made simple layout where i wanted to make a custom looking polls so as usual i put"<?php if (mosCountModules('right')>0) mosLoadModules('right',-2); ?>" to be a XHTML valid, then i made the following custom css in css file /* Add here Custom Modules */ table.moduletable-mypoll { width: 100%; padding: 0px; margin: 0px; } table.moduletable-mypoll th { background:#FF6600; height: 18px; } table.moduletable-mypoll td {height: 18px;background:#FF6600;} /* End Custom Modules */ and then in joomla adminstration i gave the polls module suffix -mypoll. but al what i get is transperant background now the strange thing is if i change the line "<?php if (mosCountModules('right')>0) mosLoadModules('right',-2); ?>" to "<?php if (mosCountModules('right')>0) mosLoadModules('right',0); ?>" it works fine. what am i missing here ? thx in advanced |
|
|||
|
Hi joomlaman,
There are a few issues with the polls module. This module has a component for polls. That has its own hard coded CSS style calls plus it’s a table. As may know that doc type will affect a valid xhtml layout There are a lot of factors that play into this. Just name a few the Wizywyg editor & content. Your template can render and validate just fine in DW but once template meets the malformed content your going to get errors. The module is wrapping the content from the poll. You’re trying to add table element formatting via your styles. But you need to div formatting. You added a -2 module style call which outputs This wrapper <div> <h3>Title</h3> Module Data </div> You would have need to add formatting for div element first div.moduletable-mypoll{} See this link: http://www.m65.net/cms/articles/joom...nce-1.0.x.html See: What is a Module? Read this section this will give a insight into module wrappers. Reference and Examples. Any Standard Joomla Class can have: | Optional HTML Element | CMS-CORE-CLASS | Optional HTML Element | .suffix or -suffix Also see this link http://www.m65.net/cms/dreamweaver-joomla-template-kit.html Click the “Module Menu Screen Shots” tab: Scroll to the bottom of the page see the module output via module styles I don’t use the negative values but you will the point of the output. You can find this info in your help file of the extension and “css_ref” folder in the download file. Also it possible to have both a table.moduletable-mypoll{} div.moduletable-mypoll{} To cover any component table formatting Let me Know Cheers Brian |
| Thread Tools | |
| Display Modes | |
|
|