W3.CSS Images
Displaying Images
Rounded:
Circle:
Bordered:
Text:
Nature
Rounded Image
The w3-round class adds rounded corners to an image:
Example
Try It Yourself »
Circled Image
The w3-circle class shapes an image to a circle:
Example
Try It Yourself »
Bordered Image
The w3-border class adds borders around the image:
Example
Try It Yourself »
Hoverable Image
The w3-hover-opacity class adds transparency to the image on mouse-over:
Example
Try It Yourself »
Image as a Card
Wrap any of the w3-card-* classes around the element to display it as a card
(add shadows):
Simon
The boss of all bosses
Example
alt="Person">
Try It Yourself »
Image Text
Position the text in an image with the w3-display-classes:
Top Left
Top Right
Bottom Left
Bottom Right
Middle
Example
alt="Lights">
Left
Right
Left
Right
Try It Yourself »
Constructing a Photo Album
In this example we use the W3.CSS Responsive Grid system to create a photo album that looks good on all devices. You will learn more about this later.
Summer 2015
5 Terre
Monterosso
Vernazza
Manarola
Corniglia
Riomaggiore
Example
class="w3-container">
Monterosso
Try It Yourself »