I have downloaded Nista-6.x-4.8 and installed it on Drupal 6.20 running on a WAMP 2.1 SERVER: Apache/2.2.17 (Win32), MySQL ver 5.5.8, PHP/5.3.5. I am using ckeditor 6.x-1.2, imce 6.x-2.1 and several other modules. I am using HTMLPurifier 6.x-2.4.
This is just an experimental setup running on my laptop. I have everything working correctly, but can't figure out how to control the placement of HTML tables that contain page content. I can make decent tables on pages, but they all wind up on the left page margin when viewed in the "public" mode. When in "edit" mode, they are properly placed. I know NISTA is a tableless theme, but does that include little tables on pages?
It seems that this is controlled by the "html-elements.css" file because when I disable that, the problem goes away. However, everything else that is controlled by that file's CSS goes away too!

I have set CKEDITOR to use the "CKEDITOR.css" (default) Editor CSS. "Predefined Styles" is set to "CKEditor-default." I have varied all of these settings, but nothing seems to fix the problem. I have also tried all of DRUPAL's built-in HTML filter setups to no avail. I am assuming I need to override something in the "html-elements.css" file, but can't figure it out.

Would appreciate any advice.

Thanks.

Comments

Feckless’s picture

Assigned: Feckless » Unassigned
Feckless’s picture

Having not much CSS experience is a hindrance. However, my own workaround for this was to create a custom CSS file, put it in the theme directory, put a reference to it in the nista.info file, right under nista.css.

Put this into the custom CSS file:

/** block-level element to override table item in html-elements.css **/
table {margin: auto;}

This seems to work. However, Firebug seems to indicate that everything in the list is being overriden, not just the "table."

What appears is:
p, ul, ol, d1, pre, table, fieldset, blockquote {
margin: 1em 0;

However, it seems that these other selectors are still mostly working correctly. I'm not really sure yet.

I have solved the problem, but am wondering if this is the best way.

Thanks.