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.

Small Styleswitch hiccups

Featured Replies

Hello,

 

I'm doing a small linkblog for myself and i'm encountering a weird behavior.

 

I based the blog on Tumblr. It will mainly be used to bookmark links and annotate them. There are two stylesheets and a small JS to switch between the two. By default, notes are hidden, clicking on "Expanded" will reveal them.

 

> See it in action here

 

Now it works as it should on webkit-based browser (ie Chrome, Safari, PlayBook). Yet in Firefox and Opera, switching the CSS to reveal the notes create a small hiccup to the left and I don't know why.

 

I checked the code, the div width and all but I can't seem to find where this comes from.

 

Do you have any ideas ?

 

Thank you

Edited by Renaissance-Design
Typoed link removed

Link redirects to a spammy affiliate site.

 

Assume you meant it to be this?

 

Edit: if you mean the small jog to the left, it's caused by the extra width of the scrollbar. You can force a scrollbar to appear even when the page is shorter than the window using:

 

html {
min-height: 100%;
padding-bottom: 1px;
}

Edited by Renaissance-Design

  • Author

Thanks for you reply.

 

I added that line but it does not seem to be working

Edited by guillaumeb

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.