images css.css.,W3.CSS Images

W3.CSS Images

Displaying Images

Rounded:

43b69bd7066cb91027ba8aca1a9b1b81.png

Circle:

00857293a944138a9e30598b525f5459.png

Bordered:

6070425f80392f1f6fdb856243168106.png

Text:

e890e628823da860feff532169c5fb4c.png

Nature

Rounded Image

db0742b4c8418bb3035a85a3bf8a9fcb.png

The w3-round class adds rounded corners to an image:

Example

Norway

Try It Yourself »

Circled Image

db0742b4c8418bb3035a85a3bf8a9fcb.png

The w3-circle class shapes an image to a circle:

Example

Norway

Try It Yourself »

Bordered Image

db0742b4c8418bb3035a85a3bf8a9fcb.png

The w3-border class adds borders around the image:

Example

Norway

Try It Yourself »

Hoverable Image

db0742b4c8418bb3035a85a3bf8a9fcb.png

The w3-hover-opacity class adds transparency to the image on mouse-over:

Example

Norway

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):

43b69bd7066cb91027ba8aca1a9b1b81.png

10198cfa19d7137482e341e97c73442f.png

Simon

The boss of all bosses

Example

  img_avatar.png

alt="Person">

Try It Yourself »

Image Text

Position the text in an image with the w3-display-classes:

43b69bd7066cb91027ba8aca1a9b1b81.png

Top Left

Top Right

Bottom Left

Bottom Right

Middle

Example

  img_lights.jpg

alt="Lights">

Top

Left

Top

Right

Bottom

Left

Bottom

Right

Middle

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

c70bfb8aeaf2ac32f5bb6f2c08c91b41.png

5 Terre

d4c864307862e4cc1b9c84baf4c73b57.png

Monterosso

291e50cf8564df95da13d2e7339d46ef.png

Vernazza

3e699bbd0fa50659c3b92355264fcd82.png

Manarola

2ea2974b1ae015b6cfc3230f17a093a3.png

Corniglia

ef25442ebf7b78224317b19a1c396569.png

Riomaggiore

Example

img_monterosso.png

class="w3-container">

Monterosso

Try It Yourself »

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值