scroll-code disappears

  • Unknown's avatar

    Hi,

    I wrote this code

    <div style="overflow-x:scroll;overflow-y:hidden;width:100%;white-space:nowrap;">
    <div style="width: 91%;display: inline-block;padding: 2%;background: #333333;margin: 0% 0 0 5%;"><img src="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2021/01/no-image-available.jpg" alt="No-image-available" width="300" height="300"></div>
    <div style="width: 91%;display: inline-block;padding: 2%;background: #333333;margin: 0% 0 0"><a href="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2022/12/2386n.jpg"><img src="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2021/01/no-image-available.jpg" alt="No-image-available" width="300" height="300"></div>
    </div>

    When I switch to visual editor and then back to code editor the code has changed all of a sudden

    <div style="width:100%;">
    <div style="width: 91%;display: inline-block;padding: 2%;background: #333333;margin: 0% 0 0 5%;"><img src="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2021/01/no-image-available.jpg" alt="No-image-available" width="300" height="300"></div>
    <div style="width: 91%;display: inline-block;padding: 2%;background: #333333;margin: 0% 0 0"><a href="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2022/12/2386n.jpg"><img src="https://belgischepostzegelcataloguspostwaardestukken.files.wordpress.com/2021/01/no-image-available.jpg" alt="No-image-available" width="300" height="300"></div>
    </div>

    The scroll-code is gone and I have no idea why

    I’m using the theme Hemingway rewritten

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

  • Unknown's avatar

    it seems the overflow-x tag isn’t allowed,

  • Unknown's avatar
  • Unknown's avatar

    Hi, in older posts on the same blog it still works. Just in new ones it doesn’t anymore. strange.

  • The topic ‘scroll-code disappears’ is closed to new replies.