You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)

Please post your question in the Forum and we will get back to you as soon as we can.

  Monday, 26 July 2021
  4 Replies
  1.1K Visits
how can i hide the horizontal scrollbar in the iframe in custom css. Thanks for your effort.
more than a month ago
·
#108378
You would usually use something like:


iframe {
overflow: hidden;
}


but you should target a specific iframe, which you can do using it's src value. For example, to hide the scrollbar for iframes with a pdf file src, use:


iframe[src$=".pdf"] {
overflow: hidden;
}

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#108379
Thanks for the quick reply, but unfortunately both codes do not work for me. Greetings
more than a month ago
·
#108380
Please post a link to an example.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#108391
The width I have set to 100%. Here normally the horizontal scrollbar should disappear on a normal monitor. Unfortunately it does not.


This is because the iframe content causes the horizontal scrolling, which you can't control from the iframe itself.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!