Wednesday, November 9, 2016

Constructing a Photo Album W3.CSS

Summer 2015

 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
5 Terre
 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
Monterosso
 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
Vernazza
 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
Manarola
 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
Corniglia
 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
Riomaggiore
W3.CSS

Responsive Image

An image can be set to automatically resize itself to fit the size of its container.

All you have to do is set the image width to 100%:

Lights

Resize the browser window to see the effect.

W3.CSS

Responsive Table

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

A responsive table will display a horizontal scroll bar if the screen is too small to display the full content.

Resize the screen to see the effect.

W3.CSS

Displaying Quotes

The w3-panel class can be used to display quotes:

"Make it as simple as possible, but not simpler."

Albert Einstein

W3.CSS 000000000000000000000000000000

Slideshow Indicators

An example of using buttons to indicate how many slides there are in the slideshow, and which slide the user is currently viewing.

 photo Quc Quacircn K S oagraven Nhy Dugrave.jpg  photo Quc Quacircn K S oagraven Nhy Dugrave.jpg  photo Quc Quacircn K S oagraven Nhy Dugrave.jpg
W3.CSS

Dynamic Progress Bar with Labels

Label outside of the progress bar:

Added 0 of 10 photos

W3.CSS

Pagination

The w3-pagination class provides pagination links:

W3.CSS
Use any of the w3-animate-classes to fade, zoom or slide in tab content. Click on the links.

London

London is the capital city of England.

It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.

Paris

Paris is the capital of France.

The Paris area is one of the largest population centers in Europe, with more than 12 million inhabitants.

Tokyo

Tokyo is the capital of Japan.

It is the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.

W3.CSS

Tabbed Image Gallery

Click on the images below:


Nature ×
Nature
Fjords ×
Fjords
Mountains ×
Mountains
Lights ×
Northern Lights
W3.CSS

Tabs in a Grid

London

London is the capital city of England.

Paris

Paris is the capital of France.

Tokyo

Tokyo is the capital of Japan.

W3.CSS

Navigation Bar Sizes

Add the w3-small, w3-large, w3-xlarge or w3-xxlarge to change the size of the navigation (will change the font-size of each link).

Default:

w3-large:

w3-xlarge:

w3-xxlarge:

If you want more space between each link, instead of increasing the font-size, you could add the w3-padding-classes to each link:

[img src="img_mountains.jpg"]

 

No comments:

Post a Comment