Categories: CSSScriptWeb Design

CSS Framework With Almost No Classes – no.css

no.css is a pure CSS front-end framework that helps developers quickly create modern web pages with almost no classes.

You can think of it as an advanced CSS reset library. Comes with several commonly used components like dropdown, modal, and accordion.

Table of Contents

Toggle

How to use it:

1. Download and load the no.min.css in the document.

<link rel="stylesheet" href="no.css" />

2. Create a responsive dropdown nav. Possible color classes:

  • black
  • white
  • default
  • success
  • warning
  • error
  • info
  • transparent
<nav class="black">
  <a>LOGO HERE</a>
  <label for="hamburger">&#9776;</label>
  <input type="checkbox" id="hamburger" />
  <ul>
    <li><a>Home</a></li>
    <li><a>Test1</a></li>
    <li><a>Test2</a></li>
    <li><a>Test3</a></li>
    <li>
      <a>Test4</a>
      <ul>
        <li><a>Test5</a></li>
        <li><a>Test6</a></li>
        <li><a>Test7</a></li>
        <li><a>Test8</a></li>
      </ul>
    </li>
  </ul>
  <ul>
    <li>
      <a>Login</a>
      <ul>
        <li><a>Register</a></li>
        <li><a>Lost Password</a></li>
        <li><a>Logout</a></li>
      </ul>
    </li>
  </ul>
</nav>

3. Create an alert box.

<div role="alert" class="warning">
  <span class="close"></span>
  Alert Message Here
</div>

4. Create a grid system. Possible classes:

  • c25 (25%)
  • c33 (33%)
  • c50 (50%)
  • c66 (66%)
  • c75 (75%)
<div class="columns">
   <div class="c33">
     ...
   </div>
   <div class="c66">
     ...
   </div>
</div>

5. Create an accordion component.

<div class="accordion">
  <!-- checkbox here is to keep the state of the accordion
       its id must be unique and referened by the label -->
  <input type="checkbox" id="x03">
  <label for="x03"><a>One</a></label>
  <div class="white">
    {content}
  </div>
</div>

6. Create a modal window.

<label role="button" for="x06">open modal</label>
  <div role="dialog">
    <input type="checkbox" id="x06"/>
    <div>
      <label class="close" for="x06"></label>
      <center class="white padded">
        <h2>Hello from modal</h2>
        {content}
      </center>
    </div>
  </div>

Changelog:

05/11/2026

  • improved CSS

09/26/2020

  • fixed footer and max 900 on center

The post CSS Framework With Almost No Classes – no.css appeared first on CSS Script.

rssfeeds-admin

Share
Published by
rssfeeds-admin

Recent Posts

Vanilla Scroll Sky: Pure CSS Scrollytelling Library

Vanilla Scroll Sky is a pure CSS scrollytelling library that creates sticky image reveals and…

56 minutes ago

Michigan Medicine and Blue Cross negotiations cause stress for thousands of patients

DETROIT, MICH. (WOWO) Patients who rely on both Blue Cross Blue Shield and Michigan Medicine…

1 hour ago

New BitUnlocker Downgrade Attack on Windows 11 Allows Access to Encrypted Disks Within 5 Minutes

A new tool, BitUnlocker, reveals a practical downgrade attack against Microsoft’s BitLocker encryption, allowing attackers…

1 hour ago

Hackers Abuse CVE-2026-41940 to Take Over cPanel and WHM Servers

A fatal authentication bypass vulnerability is actively affecting cPanel and WebHost Manager (WHM) servers worldwide.…

1 hour ago

84 TanStack npm Packages Hacked in Ongoing Supply-Chain Attack Targeting CI Credentials

A significant supply-chain compromise affecting 84 npm package artifacts across the TanStack namespace. The malicious…

1 hour ago

USDA closes biology lab at Indiana University Bloomington

BLOOMINGTON, IND. (WOWO) A biology lab at Indiana University’s Bloomington campus has been closed by…

2 hours ago

This website uses cookies.