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.

transform: translateX Scroll

Featured Replies

I am trying to create a search bar that slides in when a button is clicked. I am using translateX(-100%) to position it off screen. However when I do this it adds a horizontal scroll to the page allowing you to scroll right and see the hidden search bar. I have tried a combination of position absolute on the search-bar and overflow-x: hidden on the header div.

 

See it action here: http://www.cqwebdesign.co.uk/saverplaces%202.0/TEST/index.html

 

Please view it on small screen as its built for mobile screens.

 

Thanks

 

Can you take the search element(s) out of the container? If it is not in the container then the container will not expand to incorporate the position.

 

EDIT:

 

BTW, when I went to your site, I did not see any horizontal scroll bars at all. However, when I make the width less than 1600p I get (2) vertical scroll bars :p

Edited by drt_t1gg3r

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.