THE WORLD'S LARGEST WEB DEVELOPER SITE
×

HOW TO

HowTo Home

Menus

Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Top Navigation Responsive Topnav Search Bar Fixed Sidebar Side Navigation Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Fixed Menu Slide Down Bar on Scroll Sticky Navbar Hover Dropdowns Click Dropdowns Dropdown in Topnav Dropdown in Sidenav Mega Menu Pagination Breadcrumbs Button Group Vertical Button Group

Images

Slideshow Slideshow Gallery Modal Images Lightbox Responsive Image Grid Image Grid Tab Gallery Image Overlay Image Overlay Zoom Image Overlay Icon Image Effects Image Text Image Text Blocks Transparent Image Text Full Page Image Hero Image Rounded Images Avatar Images Responsive Images Center Images Thumbnails Meet the Team Sticky Image Flip an Image Shake an Image Portfolio Gallery Portfolio with Filtering Image Zoom Image Magnifier Glass Image Comparison Slider

Buttons

Alert Buttons Outline Buttons Animated Buttons Button on Image Social Media Buttons Loading Buttons Icon Buttons Next/prev Buttons Block Buttons Text Buttons Round Buttons Scroll To Top Button

Forms

Login Form Signup Form Contact Form Newsletter Responsive Form Clear Input Field Copy Text to Clipboard Animated Search Search Button Fullscreen Search Custom Checkbox/Radio Custom Select Toggle Switch Check Checkbox Password Validation Toggle Password Visibility Multiple Step Form Autocomplete

Filters

Filter List Filter Table Filter Elements Filter Dropdown Sort List Sort Table

More

Fullscreen Video Modal Boxes Timeline Scroll Indicator Progress Bars Skill Bar Range Sliders Tooltips Popups Calendar Zebra Striped Table Responsive Tables Comparison Table HTML Includes To Do List Loaders Star Rating User Rating Overlay Effect Contact Chips Cards Profile Card Alerts Notes Labels Circles Coupon Fixed Footer Equal Height Clearfix Snackbar Scroll Drawing Sticky Header Pricing Table Parallax Aspect Ratio Build a Web Site Toggle Like/Dislike Toggle Hide/Show Toggle Text Toggle Class Add Class Remove Class Active Class Zoom Hover Arrows Shapes Browser Window Custom Scrollbar Device Look Placeholder Color Vertical Line Animate Icons Countdown Timer Typewriter Coming Soon Page Center Website Chat Messages Split Screen Testimonials Quotes Slideshow Draggable HTML Element Trigger Button on Enter Syntax Highlighter JS Animations Contact Section

Grid

2 Column Layout 3 Column Layout 4 Column Layout Expanding Grid List Grid View Mixed Column Layout Blog Layout

Google

Google Maps Google Translate Google Charts Google Fonts

Converters

Convert Weight Convert Temperature Convert Length Convert Speed

W3 How To


Code snippets for HTML, CSS and JavaScript.


Slideshow

1 / 4
Caption Text
2 / 4
Caption Two
3 / 4
Caption Three
4 / 4
Caption Four


Login Form


× Avatar
Remember me
Forgot password?

Accordion

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.




Side Navigation





Modal Box

×

Modal Header

Hello World!

Modals are awesome!

Go Back To W3 How TO Examples

Modal Footer



Lightbox

×

Nature and sunrise
Trolltunga, Norway
Mountains and fjords

Slideshow Gallery

1 / 6
2 / 6
3 / 6
4 / 6
5 / 6
6 / 6

The Woods
Trolltunga, Norway
Mountains and fjords
Northern Lights
Nature and sunrise
Snowy Mountains


Tabs

London

London is the capital city of England.

Paris

Paris is the capital of France.

Tokyo

Tokyo is the capital of Japan.



Tab Image Gallery

Nature ×
Nature

Alert Buttons


Outline Buttons



Responsive Top Navigation

Resize the browser window to see the effect:






Icon Bar

Vertical:

Horizontal:





Toggle Hide Show

Toggle between hiding and showing me!

Image Text

Norway
Bottom Left
Top Left
Top Right
Bottom Right
Centered

Image Text Blocks

Nature
Nature
Beautiful sunrise

Popups

Toggle Popup! A Simple Popup!


Contact Form





Animated Menu Icon



Range Sliders

Value:


Tooltips

Top Tooltip text
Right Tooltip text
Bottom Tooltip text
Left Tooltip text




Custom Checkbox

Checkbox:

Radio button:


Custom Select



Filter Lists


Filter Tables

Name Country
Alfreds Futterkiste Germany
Berglunds snabbkop Sweden
Island Trading UK
Koniglich Essen Germany
Laughing Bacchus Winecellars Canada
Magazzini Alimentari Riuniti Italy
North/South UK
Paris specialites France

Filter Elements

Audi
BMW
Volvo
Cat
Dog

Sort Lists

Click the button to sort the list alphabetically:

  • Oslo
  • Stockholm
  • Helsinki
  • Berlin
  • Rome
  • Madrid



HTML Includes

Include HTML snippets in HTML.








Overlay Effect

Overlay


Click anywhere to turn off the overlay effect


Multi Step Form

Register:

Name:

Contact Info:

Birthday:

Login Info:


Autocomplete

Start typing:


Alerts

× Danger!
× Success!
× Info!
× Warning!





Zebra Striped Table

First Name Last Name Points
Jill Smith 50
Eve Jackson 94
Adam Johnson 67


Image Zoom

Mouse over the image:

Zoom Preview:


Image Magnifier Glass




Image Comparison Slider


Cards

Avatar
John Doe

Architect & Engineer

Avatar
Jane Doe

Interior Designer


Responsive Tables

First Name Last Name Points Points Points Points Points Points Points Points Points Points Points Points
Jill Smith 50 50 50 50 50 50 50 50 50 50 50 50
Eve Jackson 94 94 94 94 94 94 94 94 94 94 94 94
Adam Johnson 67 67 67 67 67 67 67 67 67 67 67 67











Notes

Danger! Some text...

Success! Some text...

Info! Some text...

Warning! Some text...


Labels

Success Info Warning Danger Other






Snackbars / Toasts

Snackbar text that will last for 3 seconds.


Copy Text to Clipboard

Click on the button to copy the text from the text field.







Toggle Text

Hello

Toggle Like/Dislike


Calendar

  • August
    2017
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • Su
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31


Trigger Button Click on Enter

Press the "Enter" key inside the input field to trigger the button:


Add Active Class

Highlight the active/current (pressed) button:




Testimonials

Avatar

Chris Fox. CEO at Mighty Schools.

John Doe saved us from a web disaster.






Center Website

This page is horizontally centered.


Transparent Image Text

Norway

Lorem ipsum dolor sit amet, an his etiam torquatos. Tollit soleat phaedrum te duo.



Skill Bars

HTML

90%

CSS

80%

JavaSscript

60%




Profile Card

Jane

John Doe

CEO & Founder, Example

Harvard University




Button Group



Pricing Tables

  • Basic
  • $ 9.99 / year
  • 10GB Storage
  • 10 Emails
  • 10 Domains
  • 1GB Bandwidth
  • Sign Up





Google Fonts

Use Cool Fonts on Your Website

Typewriter

 



Draggable HTML Element

Click here to move

Move

this

DIV










Block Buttons


Chat Messages

Avatar

Hello. How are you today?

11:00
Avatar

Hey! I'm fine. Thanks for asking!

11:01
Avatar

Sweet! So, what do you wanna do today?

11:02
Avatar

Nah, I dunno. Play soccer.. or learn more coding perhaps?

11:05