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.

Noobish mistake.

Featured Replies

Hey guys,

 

This quesition is entirely of my own making (i.e. not planning enough first). Basically, I am using this clearfix code:

 

 

/*Clearfix*/

 

.clearfix:after {

content: ".";

display: block;

clear: both;

visibility: hidden;

line-height: 0;

height: 0;

}

 

.clearfix {

display: inline-block;

}

 

html[xmlns] .clearfix {

display: block;

}

 

* html .clearfix {

height: 1%;

}

 

iframe {

text-align: center;

}

 

The issue i am having is that i want to hide an element, using display:none to an element that i have added the clearfix class (it containts a display: inline-block;) too. I have tried it in different orders but i cant seem to make the element hidden.

 

I should also mention that the reason i am hiding certain parts is because the theme is responsive.

 

Any help woult be greatly appreciated.

<style>
 .dNone { display: none !important; }
</style>

Add that class AFTER all your CSS and then add that class to your HTML element. It should no longer display.

 

the !important means CSS should over write any other styling before or after this, unless another !important is specified.

Without seeing your code, my first assumption, too, would be that it is entered in the wrong order in your CSS.

 

An example would help!

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.