Buying HTML/CSS fix. $25 payout to whoever fixes this

Discussion in 'Programming' started by stats, Jan 19, 2012.

  1. Rich_H

    Rich_H Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #21
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <body>
    <table width="600" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td><span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
          <span>[&bull;]&nbsp;this&nbsp;line&nbsp;should&nbsp;not&nbsp;break</span>
        </td>
      </tr>
    </table>
    </body>
    </html>
    Code (markup):

     
    Rich_H, Jan 23, 2012 IP
  2. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #22

    That code uses bullets and not the images mentioned.
    @stats, can we use lists and additional classes?
     
    wiicker95, Jan 23, 2012 IP
  3. stats

    stats Well-Known Member

    Messages:
    586
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #23
    there's one little step that you need to do to come up with a satisfying solution (although not a general solution to the problem, but a solution in my case)
    here is what is missing:
    the [&bull;] thing is not good .. if you can find me 2 symbols that html (and, of course, my pdf generator) will convert to something like 1.) checked box 2.) unchecked box, i will count this as a solution

    Although this will not solve the general problem with the image staying in the same line with the text, but in my case i only use 2 little images .. one is a checked box image, one is an unchecked box image ..

    so come up with those special chars and you win


     
    stats, Jan 26, 2012 IP
  4. stats

    stats Well-Known Member

    Messages:
    586
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #24
    Use anything that you want, the only precondition is that "you have no idea how long each text snippet can be" .. that will mean you don't have a right to put any hard positioning markup in fixed positions (such as using <br> where you would like it to be or using <table> to fix each snippet's position or using any tag with CSS forcing it to stay at a fixed coordinate such as "margin" or "padding"), also keep in mind that i want the text to be as compact as possible so you can not put line breaks after each snippet just in case .. if 2 snippets can fit on a same line - they MUST be on the same line

    just always keep in mind that you don't know the length of each text snippet (the ones inside the <span> in my example), and your goal is to make those snippets to either stay on same line if they completely fit, or stay on separate lines as a single entity .. meaning to NOT break any of the unknown-length snippet in the middle of it


     
    Last edited: Jan 26, 2012
    stats, Jan 26, 2012 IP