Professional Documents
Culture Documents
CSS
(a CSS Framework)
Ref: https://www.w3schools.com/ and
other internet based tutorials
W3.CSS
◼ W3.CSS is a modern CSS framework with support for desktop,
tablet, and mobile design by default.
◼ W3.CSS is smaller and faster than similar CSS frameworks.
◼ W3.CSS was designed to be a high quality alternative to
Bootstrap.
◼ It was designed to be smaller, faster, easier to learn, and easier
to use.
◼ W3.CSS is free to use. No license is necessary.
How to use W3.CSS
m/w3css/4/w3.css">
◼ Other way is to download w3.css
from w3css_downloads and add a link to w3.css:
❑ <link rel="stylesheet" href="w3.css">
W3.CSS Colors
◼ The w3-panel class adds a 16px top and bottom margin and a 16px
left and right padding to any HTML element.
◼ The w3-panel class is perfect for displaying notes.
◼ The w3-panel class is perfect for displaying quotes. Like:
<div class="w3-panel w3-leftbar w3-sand w3-xxlarge w3-serif">
◼ Show or hide the panel is easy using panel.
W3.CSS Card
W3.CSS Card Classes
w3-block Class that can be used to define a full width (100%) button.
◼ Both the w3-button class and the w3-btn class add button-
behavior to any HTML elements.
◼ The most common elements to use are <input type="button">
and <button>
≪ #8810
✂ #9986
❝ #10077
❞ #10078
❠ #10080
✔ #10004
W3.CSS Tables
Class Defines
w3-table Container for an HTML table
w3-striped Striped table
w3-border Bordered table
w3-bordered Bordered lines
w3-centered Centered table content
w3-hoverable Hoverable table
w3-table-all All properties set
W3.CSS Icons
◼ To insert an icon:
❑ Include the icon library from a CDN (Content Delivery Network)
in the <head> section.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/l
ibs/font-awesome/4.7.0/css/font-awesome.min.css">
❑ Add the name of the icon class to any inline HTML element.
❑ Tip: The <i> and <span> elements are widely used to add icons.
◼ To control the size of the icon, change the font-size property of the
icon, or use one of the w3-size classes:
❑ w3-tiny
❑ w3-small
❑ w3-large
❑ w3-xxlarge
❑ w3-xxxlarge
❑ w3-jumbo
Example of some Icons
W3.CSS Icons
page content
❑ Use a collapsible, "fully automatic" responsive side
navigation
❑ Open navigation pane over the left part of the page
content
❑ Open navigation pane over all of the page content
◼ Example