CSS Reference
CSS Reference
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
CSS Reference
❮ Home Next ❯
CSS Properties
Search..
A
accent-color Specifies an accent color for user-interface controls
https://www.w3schools.com/cssref/index.php 1/26
2/29/24, 7:29 PM CSS Reference
animation-duration
Tutorials Specifies how long an animation
Exercises Services
one cycle
should take Sign
to complete
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
animation-fill-mode Specifies a style for the element when the animation is not
playing (before it starts, after it ends, or both)
B
backdrop-filter Defines a graphical effect to the area behind an element
https://www.w3schools.com/cssref/index.php 2/26
2/29/24, 7:29 PM CSS Reference
background-position-y
Tutorials
Specifies the position of a background
Exercises Services image on y-axis
Sign Up Log in
background-repeat Sets if/how a background image will be repeated
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
background-size Specifies the size of the background images
border-block-color Sets the color of the borders at start and end in the block
direction
border-block-end-color Sets the color of the border at the end in the block direction
border-block-end-style Sets the style of the border at the end in the block direction
border-block-end-width Sets the width of the border at the end in the block
direction
border-block-start- Sets the color of the border at the start in the block
color direction
border-block-start- Sets the style of the border at the start in the block
style direction
border-block-start- Sets the width of the border at the start in the block
width direction
border-block-style Sets the style of the borders at start and end in the block
direction
border-block-width Sets the width of the borders at start and end in the block
direction
https://www.w3schools.com/cssref/index.php 3/26
2/29/24, 7:29 PM CSS Reference
border-bottom-color
Tutorials Sets the color of the bottomborder
Exercises Services Sign Up Log in
border-bottom-left- Defines the radius of the border of the bottom-left corner
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
radius
border-end-end-radius Sets the radius of the corner between the block-end and
the inline-end sides of the element
border-end-start- Sets the radius of the corner between the block-end and
radius the inline-start sides of the element
border-inline-color Sets the color of the borders at start and end in the inline
direction
border-inline-end-color Sets the color of the border at the end in the inline direction
https://www.w3schools.com/cssref/index.php 4/26
2/29/24, 7:29 PM CSS Reference
border-inline-end-style
Tutorials Sets the style of the border
Exercises Services at the end in the inline direction
Sign Up Log in
border-inline-end- Sets the width of the border at the end in the inline
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
width direction
border-inline-start- Sets the color of the border at the start in the inline
color direction
border-inline-start- Sets the style of the border at the start in the inline
style direction
border-inline-start- Sets the width of the border at the start in the inline
width direction
border-inline-style Sets the style of the borders at start and end in the inline
direction
border-inline-width Sets the width of the borders at start and end in the inline
direction
border-start-end- Sets the radius of the corner between the block-start and
radius the inline-end sides of the element
https://www.w3schools.com/cssref/index.php 5/26
2/29/24, 7:29 PM CSS Reference
border-start-start-
Tutorials
radius
Sets the radius of the corner
Exercises Services between the block-start
the inline-start sides of the element
Sign Up and
Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
border-style Sets the style of the four borders
bottom Sets the elements position, from the bottom of its parent
element
C
https://www.w3schools.com/cssref/index.php 6/26
2/29/24, 7:29 PM CSS Reference
caption-side
Tutorials Specifies the placement of atable caption
Exercises Services Sign Up Log in
clear Specifies what should happen with the element that is next
to a floating element
https://www.w3schools.com/cssref/index.php 7/26
2/29/24, 7:29 PM CSS Reference
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
D
direction Specifies the text direction/writing direction
E
empty-cells Specifies whether or not to display borders and background
on empty cells in a table
F
filter Defines effects (e.g. blurring or color shifting) on an
element before the element is displayed
flex-grow Specifies how much the item will grow relative to the rest
flex-shrink Specifies how the item will shrink relative to the rest
https://www.w3schools.com/cssref/index.php 8/26
2/29/24, 7:29 PM CSS Reference
@font-face
Tutorials A rule that allows websites to
Exercises Services
than the "web-safe" fonts
download and Sign
use fonts other
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
font-family Specifies the font family for text
font-variant-east-asian Controls the usage of alternate glyphs for East Asian scripts
(e.g Japanese and Chinese)
https://www.w3schools.com/cssref/index.php 9/26
2/29/24, 7:29 PM CSS Reference
G
gap A shorthand property for the row-gap and the column-gap
properties
grid-area Either specifies a name for the grid item, or this property is
a shorthand property for the grid-row-start, grid-column-
start, grid-row-end, and grid-column-end properties
https://www.w3schools.com/cssref/index.php 10/26
2/29/24, 7:29 PM CSS Reference
grid-template
Tutorials
A shorthand property for the
Exercises Services grid-template-rows,
template-columns and grid-areas properties
grid-
Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
grid-template-areas Specifies how to display columns and rows, using named
grid items
grid-template-columns Specifies the size of the columns, and how many columns in
a grid layout
H
hanging-punctuation Specifies whether a punctuation character may be placed
outside the line box
I
image-rendering Specifies the type of algorithm to use for image scaling
@import Allows you to import a style sheet into another style sheet
https://www.w3schools.com/cssref/index.php 11/26
2/29/24, 7:29 PM CSS Reference
inset-inline
Tutorials
Specifies the distance between
Exercises Services an element and
element in the inline direction
the parent
Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
inset-inline-end Specifies the distance between the end of an element and
the parent element in the inline direction
J
justify-content Specifies the alignment between the items inside a flexible
container when the items do not use all available space
justify-self Is set on the grid item. Specifies the alignment of the grid
item in the inline direction
K
@keyframes Specifies the animation code
L
left Specifies the left position of a positioned element
https://www.w3schools.com/cssref/index.php 12/26
2/29/24, 7:29 PM CSS Reference
list-style-image
Tutorials Specifies an image as the list-item
Exercises Services marker
Sign Up Log in
list-style-position Specifies the position of the list-item markers (bullet
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
points)
M
margin Sets all the margin properties in one declaration
https://www.w3schools.com/cssref/index.php 13/26
2/29/24, 7:29 PM CSS Reference
mask-origin
Tutorials
Specifies the origin position
Exercises Services
mask layer image
(the mask position area) of a
Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
mask-position Sets the starting position of a mask layer image (relative to
the mask position area)
O
object-fit Specifies how the contents of a replaced element should be
fitted to the box established by its used height and width
https://www.w3schools.com/cssref/index.php 14/26
2/29/24, 7:29 PM CSS Reference
offset-anchor
Tutorials Specifies a point on an element
Exercises Services
animated along
that is fixed Sign
to the path it is
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
offset-distance Specifies the position along a path where an animated
element is placed
order Sets the order of the flexible item, relative to the rest
orphans Sets the minimum number of lines that must be left at the
bottom of a page or column
overflow-wrap Specifies whether or not the browser can break lines with
long words, if they overflow the container
https://www.w3schools.com/cssref/index.php 15/26
2/29/24, 7:29 PM CSS Reference
overscroll-behavior-
block
Tutorials Specifies whether to have scroll
Exercises Services chaining or overscroll
affordance in the block direction
Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
overscroll-behavior- Specifies whether to have scroll chaining or overscroll
inline affordance in the inline direction
P
padding A shorthand property for all the padding-* properties
https://www.w3schools.com/cssref/index.php 16/26
2/29/24, 7:29 PM CSS Reference
perspective-origin
Tutorials
Defines at which position the
Exercises Services
positioned element
user is looking Sign
at the 3D-
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
place-content Specifies align-content and justify-content property values
for flexbox and grid layouts
Q
quotes Sets the type of quotation marks for embedded quotations
R
resize Defines if (and how) an element is resizable by the user
S
scale Specifies the size of an element by scaling up or down
scroll-margin Specifies the margin between the snap position and the
container
https://www.w3schools.com/cssref/index.php 17/26
2/29/24, 7:29 PM CSS Reference
scroll-margin-block
Tutorials Specifies the margin between
Exercises Services the snap position
container in the block direction
Signand
Up theLog in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
scroll-margin-block- Specifies the end margin between the snap position and the
end container in the block direction
scroll-margin-block- Specifies the start margin between the snap position and
start the container in the block direction
scroll-margin-inline Specifies the margin between the snap position and the
container in the inline direction
scroll-margin-inline- Specifies the end margin between the snap position and the
end container in the inline direction
scroll-margin-inline- Specifies the start margin between the snap position and
start the container in the inline direction
scroll-margin-left Specifies the margin between the snap position on the left
side and the container
scroll-margin-right Specifies the margin between the snap position on the right
side and the container
scroll-margin-top Specifies the margin between the snap position on the top
side and the container
scroll-padding-block- Specifies the distance in block direction from the end of the
end container to the snap position on the child elements
https://www.w3schools.com/cssref/index.php 18/26
2/29/24, 7:29 PM CSS Reference
scroll-padding-inline
Tutorials Specifies the distance in inline
Exercises Services direction fromSign
to the snap position on the child elements
the container
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
scroll-padding-inline- Specifies the distance in inline direction from the end of the
end container to the snap position on the child elements
scroll-padding-left Specifies the distance from the left side of the container to
the snap position on the child elements
scroll-padding-right Specifies the distance from the right side of the container to
the snap position on the child elements
scroll-padding-top Specifies the distance from the top of the container to the
snap position on the child elements
T
tab-size Specifies the width of a tab character
table-layout Defines the algorithm used to lay out table cells, rows, and
columns
text-align-last Describes how the last line of a block or a line right before
a forced line break is aligned when text-align is "justify"
https://www.w3schools.com/cssref/index.php 19/26
2/29/24, 7:29 PM CSS Reference
text-decoration-color
Tutorials Specifies the color of the text-decoration
Exercises Services Sign Up Log in
text-decoration-line Specifies the type of line in a text-decoration
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
text-decoration-style Specifies the style of the line in a text decoration
https://www.w3schools.com/cssref/index.php 20/26
2/29/24, 7:29 PM CSS Reference
transition-duration
Tutorials
Specifies how many secondsor milliseconds a transition
Exercises Services
effect takes to complete
Sign Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
transition-property Specifies the name of the CSS property the transition effect
is for
U
unicode-bidi Used together with the direction property to set or return
whether the text should be overridden to support multiple
languages in the same document
V
vertical-align Sets the vertical alignment of an element
W
white-space Specifies how white-space inside an element is handled
widows Sets the minimum number of lines that must be left at the
top of a page or column
word-break Specifies how words should break when reaching the end of
a line
https://www.w3schools.com/cssref/index.php 21/26
2/29/24, 7:29 PM CSS Reference
word-wrap
Tutorials
Allows long, unbreakable words
Exercises Services
the next line
to be brokenSign
and wrap to
Up Log in
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
writing-mode Specifies whether lines of text are laid out horizontally or
vertically
Z
z-index Sets the stack order of a positioned element
❮ Home Next ❯
W3schools Pathfinder
Track your progress - it's free! Sign Up Log in
ADVERTISEMENT
https://www.w3schools.com/cssref/index.php 22/26