Email
Share

We Rock Your Web Forum » Content Management Systems » Drupal

FCKeditor table style not working

(4 posts)
  1. DrupalJunkie

    senior member
    Joined: Oct '09
    Posts: 77

    I'm trying to add a style to fckstyles.xml that will enable my client to float tables to the left or right (since floating an image with respect to the table doesn't seem to do the trick).

    Here's what I've got:

    <Style name="Table Left" element="table">
            <Style name="float" value="left" />
            <Style name="margin-right" value="1em" />
        </Style >
        <Style name="Table Right" element="table">
            <Style name="float" value="right" />
            <Style name="margin-left" value="1em" />
        </Style >

    However, when I left-click a table and then select the style drop-down, it's blank (there's no option). Any ideas? Is it not possible to style tables?

    Posted 1 year ago #

  2. Posted 1 year ago
  3. cwd

    senior admin
    Joined: Jul '09
    Posts: 225

    I believe this doesn't work with FCKEditor + Firefox. It should work in Internet Explorer, however. If you need to use Firefox you might want to consider upgrading to CKEditor, although we've found that it's performance lags and it freezes on occasion, so we're sticking with FCK for now.

    You can also set style attributes and then declare the styles in your style sheet, in case your fckstyles.xml file is getting too cluttered:

    <?xml version="1.0" encoding="utf-8" ?>
    <Styles>
        <Style name="Blue Table" element="table">
            <Attribute name="class" value="tableCSS" />
        </Style>
    </styles>
    Posted 1 year ago #
  4. Anonymous



    I had my table with align="left" (not sure if that was set with FCKEditor > table properties), and that was jacking everything up (extra spacing in IE), in case that helps.

    Posted 1 year ago #
  5. Anonymous



    I had a similar problem with the table spacing, but it was because my theme's style sheet had a padding-bottom: 10px set for the paragraph (p) element.

    Posted 1 year ago #

RSS feed for this topic

Reply

(required)

Allowed markup: BBcode blockquote code em strong ul ol li font strike center u hr.
You can also put code in between backtick ( ` ) characters.