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.

CSS Import

Featured Replies

Hello I am redesigning my web site to include a style switcher plug in but when testing the import I cannot get the layout sorted

 

@import url ("assets/bootstrap/css/bootstrap.min.css");
@import url ("../assets/fonts/ionicons.min.css");
@import url ("Footer-Basic.css");
@import url ("Navigation-Clean.css");
@import url ("links.css");

the css is stored in assets > css directory  any idea on how to resolve?

First thing to do is combine into a singel CSS file. All you are doing with multiple files is slowing down the site.

Why do you need a style switcher? What is the benefit for the user?

  • 2 months later...
On 6/22/2024 at 1:02 AM, eugenemdonaghy said:

Hello I am redesigning my web site to include a style switcher plug in but when testing the import I cannot get the layout sorted

 

@import url ("assets/bootstrap/css/bootstrap.min.css");
@import url ("../assets/fonts/ionicons.min.css");
@import url ("Footer-Basic.css");
@import url ("Navigation-Clean.css");
@import url ("links.css");

the css is stored in assets > css directory  any idea on how to resolve?

There should be no space between url and the parentheses. Here’s the corrected syntax:

@import url("assets/bootstrap/css/bootstrap.min.css");
@import url("../assets/fonts/ionicons.min.css");
@import url("Footer-Basic.css");
@import url("Navigation-Clean.css");
@import url("links.css");

 

3 hours ago, willis said:

One guide that has stood out to me so far is this one:

No idea why you think this one stands out. Apart from being wrong, it only contains a fraction of all the possible pseudo classes:

https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes#alphabetical_index

And it doesn't differentiate between pseudo-class and psuedo-element (even though both are covered incorrectly in the article):

https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements

If I didn't know any better I'd think you were just link-dropping.

Edited by fisicx

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.