ImageReady extra 1 pixel table row

Ask a Question related to Adobe Photoshop 7, CS, CS2 & CS3, Design and Development.

  1. #1

    Default Re: ImageReady extra 1 pixel table row


    "Alex Batchinski" <bachynskyi@yahoo.com> wrote in message
    news:1de9b23d.-1@WebX.la2eafNXanI...
    > Hi,
    >
    > I tried ImageReady 7.0 to export my sliced graphics into HTML. And I got
    this problem with 1 pixel height extra row of spacers at the very bottom of
    the table. But I don't have any slice of 1 pixel height. So where is it
    coming from?
    >
    > This makes it impossible to use ImageReady! Because the resulting table
    becomes 1 pixel more in height than I sould have get.
    >
    > Is there any workaround/patch/update?
    >
    > Thank you.
    *****************
    Most likely what you are seeing is a browser issue that has never really
    been taken care of.

    Check your HTML and if your closing cell and row tags are not on the same
    line, something like this:
    <tr>
    <td><img src='somepicslice.gif">
    </td>
    </tr>

    make them look like this:
    <tr><td><img src='somepicslice.gif"></td></tr>

    For some reason having the closing tags on a line below the cell content
    often adds a space below or to the right of the image, putting all the code
    on one line removes it.

    The strange part about this is that all WYSIWYG editors, Code Generators
    (like Image Ready) and all Code Sweepers will drop the table tags down to
    there own line.

    HTH



    Smurfy Guest

  2. Similar Questions and Discussions

    1. #25179 [Fbk->Csd]: sqlite appending one extra char at end of each table name
      ID: 25179 Updated by: mrobinso@php.net Reported By: mrobinso@php.net -Status: Feedback +Status: ...
    2. #25179 [Opn->Fbk]: sqlite appending one extra char at end of each table name
      ID: 25179 Updated by: wez@php.net Reported By: mrobinso@php.net -Status: Open +Status: Feedback Bug...
    3. #25179 [NEW]: sqlite appending one extra char at end of each table name
      From: mrobinso@php.net Operating system: RH-8.0 PHP version: 4.3.3RC4 PHP Bug Type: SQLite related Bug description: sqlite...
    4. Photoshop file sliced into a Table leaves a one pixel gap inbrowsers
      The solution of placing the control code at the bottom WORKS! copy this from your doc and place it after the last row on the page. THANKS! <TR>...
    5. Dreamweaver MX adding 1 extra pixel to table
      Hello, Why Dreamweaver MX adds an extra 1 pixel width to the table? I have a table that is 780 in width. Due to the way the web site was design...
  3. #2

    Default Re: ImageReady extra 1 pixel table row

    You could edit the HTML code manually and change the height parameter of the table.
    dennis johnson Guest

  4. #3

    Default Re: ImageReady extra 1 pixel table row

    What I'm saying is there really should not be this row. It's an extra unneeded one. For example, I have a table with cells which all have images (from "Image" slices) and let's say these images are all red (all table is red). That extra row of spacers creates for me unneeded white (my page's background color) 1 pixel line. And if I have this table inside another red table I'll get small 1 pixel white line inside all red!
    Alex Batchinski Guest

  5. #4

    Default Re: ImageReady extra 1 pixel table row

    The table is generated from slices. How could I possibly have ImageReady to set padding and table border?
    Alex Batchinski Guest

  6. #5

    Default Re: ImageReady extra 1 pixel table row

    I can prepare an example PSD file and resulting HTML code. Just tell me where to put/send it.
    Alex Batchinski Guest

  7. #6

    Default Re: ImageReady extra 1 pixel table row

    I don't use ImageReady for html, but Dreamweaver will do the same thing if
    used in "layout"mode. Basically the 1 pixel row is filled with spacer gifs
    (a 1 pixel transparent gif) to make sure the table stays exactly the width
    you want it. Probably done only if some of the slices aren't labeled as
    images.

    This is not a great way to create code and in the Dreamweaver ng everyone
    advises against it, but if you don't have the time or inclination to learn a
    lot about table structures, try this: you could simply delete that row -
    then if your table doesn't space out right, put a spacer gif in any cells
    with no images. Make that gif the width and height you need to stablize your
    table.

    Flo


    "Alex Batchinski" <bachynskyi@yahoo.com> wrote in message
    news:1de9b23d.-1@WebX.la2eafNXanI...
    > Hi,
    >
    > I tried ImageReady 7.0 to export my sliced graphics into HTML. And I got
    this problem with 1 pixel height extra row of spacers at the very bottom of
    the table. But I don't have any slice of 1 pixel height. So where is it
    coming from?
    >
    > This makes it impossible to use ImageReady! Because the resulting table
    becomes 1 pixel more in height than I sould have get.
    >
    > Is there any workaround/patch/update?
    >
    > Thank you.

    Flo Nelson Guest

  8. #7

    Default Re: ImageReady extra 1 pixel table row

    Hi,

    Did you figure this out? I'm having the same issues.

    Thanks,

    Tim
    Tim Mousel Guest

  9. #8

    Default Re: ImageReady extra 1 pixel table row

    The reason for the extra row/column and spacers is because you're cutting the table in an "impossible" way. If you cut your graphics/slices in a manner that cannot be accomplished with a simple HTML table, ImageReady is clever enough to add an extra row in which it creates the necessary rows/columns and then translates your requested slices into row/column spans. The only way to avoid this is to very carefully plan you slices so that all rows and columns line up (or at least so that "legal" row/column spans can be used - otherwise you'll get spacers).

    Another alternative is to slit a complex table into two separate pieces - even a separate table for each row might be preferable to the spacers given your circumstances.

    Hope that was all clear.
    Trevor Morris Guest

  10. #9

    Default Re: ImageReady extra 1 pixel table row

    It was to me, Trevor, and is the right answer. I will add a comment that might clarify it for those who didn't follow your answer.

    An HTML table must have a defining size. When you make two rows with each having two columns, "but the two columns do NOT align" then HTML has to use column spans to make this work.

    However, it CANNOT span columns correctly in this situation (in most browsers). The way to correct this is to add a third row that has all three columns in it, so that now the browser knows where to end each column.

    The same thing can happen with rows (when a column is added at one end or the other). If you remove those rows (or columns) your image will not be able to align.

    Most programs making web images will give you the option of making the extra row either a slice of the image, or a background color. I don't know IR well enough to know if it has this option.
    Don McCahill Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139