<< Go Back Home

Documentation

Please note that Win 98 CSS is still in development and only a few features are available. If you're still ready to use it,this guide explains how do you use it. It must be noted that the developer is not responsible for any unexpected behaviours due to other CSS frameworks. It is best advised to use Win 98 CSS Standalone. If you want to file a bug or add a feature open an issue.

  1. How to start
  2. Starter template
  3. Alerts
  4. Buttons
  5. Card
  6. Forms
  7. List Groups
  8. Quotes

How to start?

To get started download the Win 98 CSS. You can download Win 98 CSS uncompressed or compressed. Include that in your HTML file. Next, Download the Win 98 JS, uncompressed or compressed and also include it in you HTML file and you're ready to go.

Starter template

<!doctype html>
<html lang="en">
 <head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <!-- Win 98 CSS -->
  <link rel="stylesheet" href="win98.min.css">
  <title>Hello, world!</title>
 </head>
 <body>
  <h1>Hello, world!
  <!-- Win 98 JavaScript -->
  <script src="win98.min.js">
 </body>
</html>

Alerts

Alerts are available for any length of text, as well as an optional dismiss button. These resemble similar to the 98 Window Alerts

This is an alert
This is the alert body with a SUPER BAD LOOKING ERROR CODE. Please fix this error before pursuing to the webpage.

<div class="alertbox">
 <div class="alertbox-header">
  This is an alert
 </div>
 <div class="alertbox-body">
  This is the alert body with a SUPER BAD LOOKING ERROR CODE. Please fix this error before pursuing to the webpage.
  <button class="btn btn-alertbox"><span>Okay</span></button>
 </div>
</div>

Buttons

Win 98 CSS includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.

<button class="btn btn-primary"><span>Primary</button>
<button class="btn btn-secondary"><span>Secondary</button>
<button class="btn btn-danger"><span>Danger</button>
<button class="btn btn-success"><span>Success</button>
<button class="btn btn-warning"><span>Warning</button>
<button class="btn btn-info"><span>Info</button>
<button class="btn btn-outline"><span>Outline Button</button>

Card

A card is a flexible and extensible content container. It includes options for headings and titles, a wide variety of content, contextual background colors, and powerful display options.

...
Card Title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Error odio delectus magnam. Neque odit voluptas tempore beatae iste assumenda ipsum odio! Quisquam dolorem laudantium deserunt sapiente quam nostrum, perspiciatis dignissimos!

<div class="card">
  <img src="..." class="card-image" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card Title</h5>
    <p class="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Error odio delectus magnam. Neque odit voluptas tempore beatae iste assumenda ipsum odio! Quisquam dolorem laudantium deserunt sapiente quam nostrum, perspiciatis dignissimos!</p>
    <button class="btn btn-primary"><span>Go Somewhere</span></button>
  </div>
</div>

Card body can also be added alone.

This is some text within a card body.

<div class="card">
  <div class="card-body">
    This is some text within a card body.
  </div>
</div>

Card can also contain subtitles, links and no images.

Card title
Card subtitle

Some quick example text to build on the card title and make up the bulk of the card's content.

Card link Another link

<div class="card">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <h6 class="card-subtitle">Card subtitle</h6>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <a href="#" class="card-link">Card link</a>
    <a href="#" class="card-link">Another link</a>
  </div>
</div>

Forms

Forms are used to get data on your site.

<input type="email" class="form-control" placeholder="name@example.com">
<input type="password" class="form-control" placeholder="Password">
<div class="form-select">
  <select>
    <option>Select A Number:</option>
    <option>One</option>
    <option>Two</option>
    <option>Three</option>
    <option>Four</option>
  </select>
</div>
<textarea class="form-control" rows="3"></textarea>

List Groups

Featured
  • Cras justo odio
  • Dapibus ac facilisis in
  • Vestibulum at eros

<div class="card">
  <div class="card-header">
    Featured
  </div>
  <ul class="list-group">
    <li class="list-group-item">Cras justo odio</li>
    <li class="list-group-item">Dapibus ac facilisis in</li>
    <li class="list-group-item">Vestibulum at eros</li>
  </ul>
</div>

Quotes

Quote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

— Someone famous in Source Title

<div class="card">
  <div class="card-header">
    Quote
  </div>
  <div class="card-body">
    <blockquote class="blockquote ">
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
      <footer class="blockquote-footer">— Someone famous in <cite title="Source Title">Source Title</cite><footer>
    </blockquote>
  </div>
</div>