1 Reply Latest reply on Jan 4, 2012 11:37 PM by Rezu

    image auto resizes depending on text (images added)

    Rezu Level 1



      I'm looking for html5/css (javascript ok, but if it can be done without, great) funtion of an image's ability to resize based on how much text is 'inside' of the image. The image is a white shadowbox.

      For example...please see below..., the first white shadowbox image sizes larger to accomodate more text than the second white shadowbox.


      This must be html5 compliant.


      The original coding was done with a crazy amount of tables and mix-mashing of different image parts to allow for the resizing.

      Is this possible to do with divs and only one image (white shadowbox) that gets resized based on text length...somehow?


      Much Thanks!