![]() |
|
extra breaks before table - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: extra breaks before table (/thread-9818.html) |
extra breaks before table - nbruley - 2012-04-02 Why might I get 7 extra breaks inserted before a simple table (containing an ordered list) that is placed in the description area? If I remove the table tags, everything works just fine. Thanks. Example: extra breaks before table - acrylian - 2012-04-02 How do you insert that table (Why do you actually need a table here at all???). You probably insert ed it into the editor, but you need to use the html view mode. TinyMCE will not add a extra breaks before table - nbruley - 2012-04-02 I agree a table really isn't the best practice, but I can't figure out another better way to auto-find the max width of the text to be able to left-align the text (as ordered list) and still have it center aligned with CSS. I can use margin % but that does not truly center the text. Next best is to use a predefined width with a div, but I don't like that as well because I could get word wrap, and even then I won't get truly centered text due to differences in actual width. I inserted it simply with html in html view. It does not show breaks in the html view, even when going back to edit it again. There is a closing paragraph tag followed immediately by table tag (and it does the same thing with only a table in the description). When it renders the page, I get 7 consecutive break tags. Regarding type of tags, Chrome changes all my Weird. extra breaks before table - acrylian - 2012-04-02 Ah, the I don't understand the usage of the table. Use a list and give it and its ``elements a fixed width. Then center it. To avoid line breaks there is a html element for that. extra breaks before table - nbruley - 2012-04-02 Thanks for all the info. I tried replacing printImageDesc(true) with getImageDesc() and no luck, so might just wait for new release. Regarding the table, I would rather not set a width, because then I will get wrapping if I set it too narrow or it will appear off center if I set it too wide. Right? A table automatically gets the proper width. extra breaks before table - acrylian - 2012-04-02 You of course have to "echo" get variants...otherwise it would be a "print" variant..;-) extra breaks before table - nbruley - 2012-04-02 ah, I get it. It looks like there are minor formatting variations with the get variant, so I'm going to stick with print. I must not have understood your CSS suggestion properly-- I created a double div with wrapper to the outside as follows but no luck. But you shouldn't have to answer css questions descriptionWrapper {margin-left:auto; descriptionText {min-width:50px; So looks like I just need to be patient for the next release. |