<戻る

W3.CSS関連検索! be How To W3はうつーだぶりゅさん

W3.CSS Reference[w3schools.com]からの引用文

[w3schools.com]からの引用&改変文


New in Version 5

w3-rtlAdjusts text direction for right to left (rtl) layout
w3-ltrAdjusts text direction for left to right (ltr) layout
w3-text-centerCenter text (same as w3-center)
w3-boldChanges the font to bold
w3-text-boldChanges the font to bold (same as w3-bold)
w3-italicChanges the font to italic
w3-text-italicChanges the font to italic (same as w3-italic)

Container Classes

ClassDefines
w3-containerHTML container with 16px left and right padding
 Used as header
 Used as footer
w3-panelHTML container with 16px left and right padding and 16px top and bottom margin
 Used to display a note
 Used to display a quote
w3-badgeCircular badge
w3-tagRectangular tag
w3-ulUnordered list
w3-display-containerContainer for w3-display-classes (enables positioning of elementsinside the container)
w3-blockClass that can be used to define a full width for any element
w3-codeCode container
w3-codespanInline code container (for code snippets)
w3-contentContainer for fixed size centered content
w3-autoContainer for responsive size centered content
w3-stretchClass that removes right and left margins (especially useful for stretching padded rows (w3-row-padding))
w3-rtlAdjusts text direction for right to left (rtl) layout
w3-ltrAdjusts text direction for left to right (ltr) layout

Table Classes

ClassDefines
w3-tableContainer for an HTML table
w3-stripedStriped table
w3-borderBordered table
w3-borderedBordered lines
w3-centeredCentered table
w3-hoverableHoverable table
ws-table-allAll properties set
 With w3-striped, w3-border, and w3-bordered
 With colored head
 With w3-responsive
 With w3-tiny
 With w3-small
 With w3-large
 With w3-xlarge
 With w3-xxlarge
 With w3-xxxlarge
 With color
 With w3-jumbo
w3-responsiveCreates a responsive table

Card Classes

ClassDefines
w3-cardSame as w3-card-2
w3-card-2Container for any HTML content (2px bordered shadow)
w3-card-4Container for any HTML content (4px bordered shadow)

Responsive Classes

ClassDefines
w3-rowContainer for one row of fluid responsive content
w3-row-paddingRow where all columns have a default padding
w3-autoContainer for responsive size centered content
w3-stretchClass that removes right and left margins
w3-halfHalf (1/2) screen column container
w3-thirdThird (1/3) screen column container
w3-twothirdTwo third (2/3) screen column container
w3-quarterQuarter (1/4) screen column container
w3-threequarterThree quarters (3/4) screen column container
w3-colColumn container for any HTML content
w3-restOccupies the rest of the column width
  
l1 - l12Responsive sizes for large screens
m1 - m12Responsive sizes for medium screens
s1 - s12Responsive sizes for small screens
  
w3-hide-smallHide content on small screens (less than 601px)
w3-hide-mediumHide content on medium screens
w3-hide-largeHide content on large screens (larger than 992px)
  
w3-imageResponsive image
  
w3-mobileAdds mobile-first responsiveness to any element.
Displayselements as block elements on mobile devices.

Layout Classes

ClassDefines
w3-cell-rowContainer for layout columns (cells).
w3-cellLayout column (cell).
w3-cell-topAligns content at the top of a column (cell).
w3-cell-middleAligns content at the vertical middle of a column (cell).
w3-cell-bottomAligns content at the bottom of a column (cell).

Bar Classes - Navigation

ClassDefines
w3-barHorizontal bar
w3-bar-blockVertical bar
w3-bar-itemProvides common style for bar items
w3-sidebarSide bar
 A side bar can contain all types of content
 A side bar overlaying main content
 A side bar overlaying all main content
 A side bar shifting main content to the right
 A side bar with an overlay background
 A Side bar on the right side
w3-collapseUsed together with w3-sidebar to create a fully automatic responsive side navigation. For this class to work, the page content must be within a "w3-main" class
w3-mainContainer for page content when using the w3-collapse class for responsive side navigations
 Fully automatic right-sided responsive side navigation

Dropdown Classes

w3-dropdown-clickClickable dropdown element
w3-dropdown-hoverHoverable dropdown element
 Hoverable dropdown element (used in w3-bar)
 Hoverable dropdown element (used in w3-bar-block)
 Hoverable dropdown element (used in w3-sidebar)

Button Classes

ClassDefines
w3-buttonRectangular button with grey background color on hover
w3-btnRectangular button with shadows on hover
w3-circleCan be used to create a circular button
w3-rippleRectangular button with ripple effect
 Circular floating button with ripple effect
w3-barCan be used to group elements (like buttons) in an horizontal bar
w3-blockClass that can be used to define a full width w3-button
 Full width w3-btn
 Full width circular button

Input Classes

ClassDefines
w3-inputInput elements
 Input form as a card
 Input elements (top labels)
 Input elements (bottom labels)
w3-checkCheckbox input type
w3-radioRadio input type
w3-selectInput select element
w3-animate-inputAnimates the width of an input to 100%

Modal Classes

ClassDefines
w3-modalModal container
w3-modal-contentModal pop-up element
w3-tooltipTooltip element
w3-textTooltip text

Animation Classes

ClassDefines
w3-animate-topAnimates an element from the top -300px to 0px
w3-animate-leftAnimates an element from left -300px to 0px
w3-animate-bottomAnimates an element from the bottom -300px to 0px
w3-animate-rightAnimates an element from right -300px to 0px
w3-animate-opacityAnimates an element's opacity from 0 to 1
w3-animate-zoomAnimates an element from 0 to 100% in size
w3-animate-fadingAnimates an element's opacity from 0 to 1 and 1 to 0 (fades in AND out)
w3-spinSpin an icon 360 degrees
 Spin any element 360 degrees
w3-animate-inputAnimates the width of an input field to 100%

Font and Text Classes

ClassDefines
w3-tinySpecifies a font size of 10 pixels
w3-smallSpecifies a font size of 12 pixels
w3-largeSpecifies a font size of 18 pixels
w3-xlargeSpecifies a font size of 24 pixels
w3-xxlargeSpecifies a font size of 32 pixels
w3-xxxlargeSpecifies a font size of 48 pixels
w3-jumboSpecifies a font size of 64 pixels
w3-wideSpecifies a wider text
w3-serifChanges the font to serif
w3-sans-serifChanges the font to sans-serif
w3-cursiveChanges the font to cursive
w3-monospaceChanges the font to monospace
w3-centerCenter text

Display Classes

ClassDefines
w3-centerCentered content
w3-leftFloats an element to the left (float: left)
w3-rightFloats an element to the right (float: right)
w3-left-alignLeft aligned text
w3-right-alignRight aligned text
w3-justifyRight and left aligned text
w3-blockClass that can be used to define a full width for any element
w3-circleCircled content
w3-hideHidden content (display:none)
w3-showShow content (display:block)
w3-show-blockAlias of w3-show (display:block)
w3-show-inline-blockShow content as inline-block (display:inline-block)
w3-topFixed content at the top of a page
w3-bottomFixed content at the bottom of a page
w3-display-containerContainer for w3-display-classes (position: relative)
w3-display-topleftDisplays content at the top left corner of the w3-display-container
w3-display-toprightDisplays content at the top right corner of the w3-display-container
w3-display-bottomleftDisplays content at the bottom left corner of the w3-display-container
w3-display-bottomrightDisplays content at the bottom right corner of the w3-display-container
w3-display-leftDisplays content to the left (middle left) of the w3-display-container
w3-display-rightDisplays content to the right (middle right) of the w3-display-container
w3-display-middleDisplays content in the middle (center) of the w3-display-container
w3-display-topmiddleDisplays content at the top middle of the w3-display-container
w3-display-bottommiddleDisplays content at the bottom middle of the w3-display-container
w3-display-positionDisplays content at a specified position in the w3-display-container
w3-display-hoverDisplays content on hover inside the w3-display-container

Effect Classes

ClassDefines
w3-opacityAdds opacity/transparency to an element (opacity: 0.6)
 Add opacity/transparency to text
w3-opacity-offTurns off opacity/transparency (opacity: 1)
w3-opacity-minAdds opacity/transparency to an element (opacity: 0.75)
w3-opacity-maxAdds opacity/transparency to an element (opacity: 0.25)
w3-grayscale-minAdds a grayscale effect to an element (grayscale: 50%)
w3-grayscaleAdds a grayscale effect to an element (grayscale: 75%)
w3-grayscale-maxAdds a grayscale effect to an element (grayscale: 100%)
w3-sepia-minAdds a sepia effect to an element (sepia: 50%)
w3-sepiaAdds a sepia effect to an element (sepia: 75%)
w3-sepia-maxAdds a sepia effect to an element (sepia: 100%)
w3-overlayCreates an overlay effect

Background Color Classes

Red

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

w3-red

Pink

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

w3-pink

Purple

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

w3-purple

Deep Purple

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

w3-deep-purple

Indigo

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

w3-indigo

Cobalt

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

w3-cobalt

Blue

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

w3-blue

Light Blue

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

w3-light-blue

Cyan

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

w3-cyan

Aqua

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

w3-aqua

Teal

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

w3-teal

Emerald

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

w3-emerald

Green

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

w3-green

Light Green

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

w3-light-green

Lime

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

w3-lime

Khaki

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

w3-khaki

Yellow

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

w3-yellow

Amber

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

w3-amber

Orange

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

w3-orange

Deep Orange

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

w3-deep-orange

Blue Gray

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

w3-blue-gray

Olive

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

w3-olive

Taupe

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

w3-taupe

Sienna

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

w3-sienna

Brown

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

w3-brown

Crimson

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

w3-win8-crimson

Sand

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

w3-sand

White

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

w3-white

Paper

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

w3-paper

Light Gray

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

w3-light-gray

Gray

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

w3-gray

Dark Gray

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

w3-dark-gray

Asphalt

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

w3-asphalt

Black

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

w3-black

Pale Red

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

w3-pale-red

Pale Yellow

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

w3-pale-yellow

Pale Green

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

w3-pale-green

Pale Blue

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

w3-pale-blue

DANGER

Red often indicates a dangerous or negative situation.

w3-danger

WARNING

Orange often indicates a warning that might need attention.

w3-warning

SUCCESS

Green often indicates something successful or positive.

w3-success

Info

Blue often indicates a neutral informative change or action.

w3-info

Note

Yellow is often used for notifications.

w3-danger, w3-warning, w3-sucess, w3-info, w3-note are new in W3.CSS version 5.0.

w3-note

Transparent

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

w3-transparent


Hover Color Classes

The colors above can also be used as hover classes:

ClassDefines
w3-hover-whiteHover color white
w3-hover-blackHover color black
w3-hover-redHover color red
w3-hover-blueHover color blue
w3-hover-greenHover color green
w3-hover-aquaHover color aqua
w3-hover-orangeHover color orange
w3-hover-greyHover color grey
w3-hover-pale-greenHover color pale green

Text Color Classes

ClassDefines
w3-text-redText color red
w3-text-greenText color green
w3-text-blueText color blue
w3-text-yellowText color yellow
w3-text-light-greyText color light-grey
w3-text-greyText color grey
w3-text-dark-greyText color dark grey
w3-text-blackText color black
w3-text-whiteText color white
w3-text-pinkText color pink
w3-text-purpleText color purple
w3-text-tealText color teal
w3-text-light-greenText color light green
w3-text-limeText color lime
w3-text-deep-purpleText color deep purple
w3-text-indigoText color indigo
w3-text-light-blueText color light blue
w3-text-blue-greyText color blue grey
w3-text-cyanText color cyan
w3-text-aquaText color aqua
w3-text-amberText color amber
w3-text-orangeText color orange
w3-text-deep-orangeText color deep orange
w3-text-sandText color sand
w3-text-khakiText color khaki
w3-text-brownText color brown

Hover Text Classes

The text classes above can also be used as hover classes:

ClassDefines
w3-hover-text-redHover text color red
w3-hover-text-greenHover text color green
w3-hover-text-blueHover text color blue
w3-hover-text-yellowHover text color yellow

Other Hover Classes

ClassDefines
w3-hover-border-colorHover border color
w3-hover-opacityAdds transparency to an element on hover (opacity: 0.6)
w3-hover-opacity-offRemoves transparency from an element on hover (100% opacity)
w3-hover-shadowAdds shadow to an element on hover
w3-hover-grayscaleAdds a black and white (100% grayscale) effect to an element
w3-hover-sepiaAdds a sepia effect to an element on hover
w3-hover-noneRemoves hover effects from an element

Round Classes

ClassDefines
w3-roundElement rounded (border-radius) 4px
w3-round-smallElement rounded (border-radius) 2px
w3-round-mediumElement rounded (border-radius) 4px
w3-round-largeElement rounded (border-radius) 8px
w3-round-xlargeElement rounded (border-radius) 16px
w3-round-xxlargeElement rounded (border-radius) 32px

Padding Classes

ClassDefines
w3-padding-smallPadding 4px top and bottom, and 8px left and right.
w3-paddingPadding 8px top and bottom, and 16px left and right.
w3-padding-largePadding 12px top and bottom, and 24px left and right.
w3-padding-16Padding 16px top and bottom
w3-padding-24Padding 24px top and bottom
w3-padding-32Padding 32px top and bottom
w3-padding-48Padding 48px top and bottom
w3-padding-64Padding 64px top and bottom
w3-padding-top-64Padding 64px on top
w3-padding-top-48Padding 48px on top
w3-padding-top-32Padding 32px on top
w3-padding-top-24Padding 24px on top

Margin Classes

ClassDefines
w3-marginAdds an 16px margin to an element
w3-margin-topAdds an 16px top margin to an element
w3-margin-rightAdds an 16px right margin to an element
w3-margin-bottomAdds an 16px bottom margin to an element
w3-margin-leftAdds an 16px left margin to an element
w3-sectionAdds an 16px top and bottom margin to an element

Border Classes

ClassDefines
w3-borderBorders (top, right, bottom, left)
w3-border-topBorder top
w3-border-rightBorder right
w3-border-bottomBorder bottom
w3-border-leftBorder left
w3-border-0Removes all borders
w3-border-colorDisplays any defined borders in a specified color (like red, etc)
w3-bottombarAdds a thick bottom border (bar) to an element
w3-leftbarAdds a thick left border (bar) to an element
w3-rightbarAdds a thick right border (bar) to an element
w3-topbarAdds a thick top border (bar) to an element
w3-hover-border-colorHoverable border color

美しいWebサイト

INFO

Note

美しいWebサイト

W3.CSSで構築:シームレスな…デザイン&短いコードに努める。


ー サイト内のコンテンツについて ー
・本サイトは「著作権法第32条」に基づき画像・文章を引用しております。
・掲載している画像・文章の著作権、肖像権等は各権利所有者に帰属致します。
・本サイトは権利を侵害する目的は一切御座いません。
・本サイトの情報は独自に収集したデータであり、書籍・商品の内容を保証するものではありません。
・本サイト、及びリンク先のサイトを利用したことによる損失・損害などのトラブル等に関しまして本サイトは一切の責任と義務を負いません。すべて自己責任でご利用下さい。
・本サイトで使用しているコンテンツで不都合がございましたらご連絡ください・適宜対応いたします。
https://is6be.stars.ne.jp/index.htmlis6.be>>https://is6.stars.ne.jp/index.htmlis6.stars.ne.jp>>is6be.stars.ne.jp>>i79688123com.stars.ne.jp
2026-06-03.更新