Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I frame efect but not an iframe

Featured Replies

Hi again,i wish to create a div that looks like an iframe but isnt i would like the vertical scroll but not horizontal like a JavaScript pop up but only with CSS is this possible thank you

You could set the height of the div to say 200px and add overflow:auto; to your css.

Any content that doesn't fit inside the div will force a scrollbar.

Or you could force a scrollbar no matter how much content there is by using overflow:scroll; but this isn't very user friendly.

To restrict the scrollbar to the vertical you would use overflow-y:auto; or overflow-y:scroll;

Hope that helps :)

Yup - you can achieve this using CSS. However, I suggest you turn away from anything even remotely related to an iframe unless it is absolutely necessary.

  • Author

Thank you its for a guest book for a website where customers can leave a comment about the products they have bought but if the site gets a lot of comments it could start looking a mess so thought about an iframe but didnt wish to use it thank you

  • 4 weeks later...

Why isn't it a smart idea to use Iframes?

  • Author
Why isn't it a smart idea to use Iframes?

 

 

I Think it can mess with the SEO of the site may be other reasons as well

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.