Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Candaele 1197 posts 2049 karma points
    Nov 23, 2010 @ 11:31
    Anthony Candaele
    0

    formatting error when including % in width attribute of image

    Hi,

    I discovered that you get a formatting error when you try to add a percent value in the with attribute of image in the TinyMCE editor:

    <img src="../images/homepage11.gif" alt="" width="100%" height="1" />

    Anyone any idea how this can be solved?

    Thanks for the help,

    Anthony Candaele
    Belgium

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 23, 2010 @ 15:03
    Jan Skovgaard
    1

    It makes sense since the width attribute does not accept units. So if you want to make sure the image is sown with it's full width you should omit the width attribute and let the browser figure out the width itself.

    Otherwise you need to either add an id or a class to the image so you can set the width using CSS.

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies