Content not fitting onto page

  • Unknown's avatar

    I am trying to insert a table and it is too wide how can I adjust it, when in drafts it seems to fit, once published it doesn’t.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Link to the post in question please.

  • Unknown's avatar
  • Unknown's avatar

    There are lots of issues. What did you use to create this?

    First of all, there’s no way this content can fit at this font size on this theme. (Would you consider switching to a different theme?) You need to decrease the overall font size. You also need to decrease the default padding (on 2010, each cell has an outrageous 24px left and right defalt padding).

    Second, some of the coding is outdated (you need to use the style attribute instead) and some of it is wrong. One by one:
    1) You need to remove the div align=”center” you used to center the table: it’s useless, because the default for tables on 2010 is 100% width, and because there’s no point making the table width less than 100% in this case.
    2) border=”1″, cellpadding=”0″, valign=”whatever” have no effect: they should be removed.
    3) I don’t see why the seven columns have varying widths: the widths should be equal. And the width doesn’t have to be specified for each and every cell: you can use the col attribute instead, so remove all the width=”whatever” commands.
    4) You should remove all the opening and closing p tags – both the plain ones and the p align=”whatever” ones (because they create a blank line below the actual text) and all the instances of the HTML entity for the non-breaking space (because it’s pointless).

    So, after deleting all that stuff, start with these:

    Turn the opening table tag to this:
    <table style="font-size:60%;border:1px solid #ccc;">

    Add this seven times before the opening tbody tag:
    <col width="14%" />

    Turn each opening td tag to this, if the text should be centered:
    <td style="text-align:center;border:1px solid #ccc;">

    Turn each opening td tag to this, if the text should be right aligned:
    <td style="text-align:right;border:1px solid #ccc;">

    After you make all these changes and the thing takes some shape, you can tell me what else should be adjusted.

    (By the way, you’re missing the final H from ΠΑΡΑΣΚΕΥΗ.)

  • The topic ‘Content not fitting onto page’ is closed to new replies.