Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Get Certified Upgrade Teachers Spaces
   ❮   
     ❯   

CSS References

CSS ReferenceCSS Browser SupportCSS SelectorsCSS CombinatorsCSS Pseudo-classesCSS Pseudo-elementsCSS At-rulesCSS FunctionsCSS Reference AuralCSS Web Safe FontsCSS Fallback FontsCSS AnimatableCSS UnitsCSS PX-EM ConverterCSS ColorsCSS Color ValuesCSS Default ValuesCSS Entities

CSS Properties

accent-coloralign-contentalign-itemsalign-selfallanimationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-functionaspect-ratiobackdrop-filterbackface-visibilitybackgroundbackground-attachmentbackground-blend-modebackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-position-xbackground-position-ybackground-repeatbackground-sizeblock-sizeborderborder-blockborder-block-colorborder-block-endborder-block-end-colorborder-block-end-styleborder-block-end-widthborder-block-startborder-block-start-colorborder-block-start-styleborder-block-start-widthborder-block-styleborder-block-widthborder-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-end-end-radiusborder-end-start-radiusborder-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-inlineborder-inline-colorborder-inline-endborder-inline-end-colorborder-inline-end-styleborder-inline-end-widthborder-inline-startborder-inline-start-colorborder-inline-start-styleborder-inline-start-widthborder-inline-styleborder-inline-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-start-end-radiusborder-start-start-radiusborder-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-widthborder-widthbottombox-decoration-breakbox-reflectbox-shadowbox-sizingbreak-afterbreak-beforebreak-insidecaption-sidecaret-color@charsetclearclipclip-pathcolorcolor-schemecolumn-countcolumn-fillcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-spancolumn-widthcolumns@containercontentcounter-incrementcounter-resetcounter-set@counter-stylecursordirectiondisplayempty-cellsfilterflexflex-basisflex-directionflex-flowflex-growflex-shrinkflex-wrapfloatfont@font-facefont-familyfont-feature-settingsfont-kerning@font-palette-valuesfont-sizefont-size-adjustfont-stretchfont-stylefont-variantfont-variant-capsfont-weightgapgridgrid-areagrid-auto-columnsgrid-auto-flowgrid-auto-rowsgrid-columngrid-column-endgrid-column-startgrid-rowgrid-row-endgrid-row-startgrid-templategrid-template-areasgrid-template-columnsgrid-template-rowshanging-punctuationheighthyphenshyphenate-characterimage-rendering@importinitial-letterinline-sizeinsetinset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-startisolationjustify-contentjustify-itemsjustify-self@keyframes@layerleftletter-spacingline-heightlist-stylelist-style-imagelist-style-positionlist-style-typemarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemargin-inline-endmargin-inline-startmargin-leftmargin-rightmargin-topmarkermarker-endmarker-midmarker-startmaskmask-clipmask-compositemask-imagemask-modemask-originmask-positionmask-repeatmask-sizemask-typemax-block-sizemax-heightmax-inline-sizemax-width@mediamin-block-sizemin-inline-sizemin-heightmin-widthmix-blend-mode@namespaceobject-fitobject-positionoffsetoffset-anchoroffset-distanceoffset-pathoffset-positionoffset-rotateopacityorderorphansoutlineoutline-coloroutline-offsetoutline-styleoutline-widthoverflowoverflow-anchoroverflow-wrapoverflow-xoverflow-yoverscroll-behavioroverscroll-behavior-blockoverscroll-behavior-inlineoverscroll-behavior-xoverscroll-behavior-ypaddingpadding-blockpadding-block-endpadding-block-startpadding-bottompadding-inlinepadding-inline-endpadding-inline-startpadding-leftpadding-rightpadding-top@pagepage-break-afterpage-break-beforepage-break-insidepaint-orderperspectiveperspective-originplace-contentplace-itemsplace-selfpointer-eventsposition@propertyquotesresizerightrotaterow-gapscale@scopescroll-behaviorscroll-marginscroll-margin-blockscroll-margin-block-endscroll-margin-block-startscroll-margin-bottomscroll-margin-inlinescroll-margin-inline-endscroll-margin-inline-startscroll-margin-leftscroll-margin-rightscroll-margin-topscroll-paddingscroll-padding-blockscroll-padding-block-endscroll-padding-block-startscroll-padding-bottomscroll-padding-inlinescroll-padding-inline-endscroll-padding-inline-startscroll-padding-leftscroll-padding-rightscroll-padding-topscroll-snap-alignscroll-snap-stopscroll-snap-typescrollbar-colorshape-outside@starting-style@supportstab-sizetable-layouttext-aligntext-align-lasttext-decorationtext-decoration-colortext-decoration-linetext-decoration-styletext-decoration-thicknesstext-emphasistext-emphasis-colortext-emphasis-positiontext-emphasis-styletext-indenttext-justifytext-orientationtext-overflowtext-shadowtext-transformtext-underline-offsettext-underline-positiontoptransformtransform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslateunicode-bidiuser-selectvertical-alignvisibilitywhite-spacewidowswidthword-breakword-spacingword-wrapwriting-modez-indexzoom



CSSFunctions Reference


CSS Functions

CSS functions can be used to calculate values, manipulate strings or colors, create complex gradients and shapes, and more.

CSS functions are typically used as values for various CSS properties.

FunctionDescription
acos()Returns the inverse cosine of a number between -1 and 1
asin()Returns the inverse sine of a number between -1 and 1
atan()Returns the inverse tangent of a number between -∞ and ∞
atan2()Returns the inverse tangent of two values between -infinity and infinity
attr()Returns the value of an attribute of the selected element
blur()Applies a blur effect to an element
brightness()Adjusts the brightness of an element (brighter or darker)
calc()Allows you to perform calculations to determine CSS property values
circle()Defines a circle
clamp()Sets a value that will adjust responsively between a minimum value and a maximum value depending on the size of the viewport
color()Allows a color to be specified in a particular, specified color space
color-mix()Mixes two color values in a given color space, by a given amount
conic-gradient()Creates a conic gradient
contrast()Adjusts the contrast of an element
cos()Returns the cosine of an angle
counter()Returns the current value of the named counter
counters()Returns the current values of the named and nested counters
cubic-bezier()Defines a Cubic Bezier curve
drop-shadow()Applies a drop shadow effect to an image
ellipse()Defines an ellipse
exp()Returns E raised to the power of the specified number x (Ex)
fit-content()Allows you to size an element based on its content
grayscale()Converts an image to grayscale
hsl() / hsla()Defines a color using the Hue-Saturation-Lightness model (HSL); with an optional alpha component
hue-rotate()Applies a color rotation to an element
hwb()Defines a color using the Hue-Whiteness-Blackness model (HWB); with an optional alpha component
hypot()Returns the square root of the sum of squares of its parameters
inset()Defines a rectangle at the specified inset distances from each side of the reference box
invert()Inverts the color of an image
lab()Specifies a color in the CIE L*a*b color space
lch()Specifies a color in the LCH (Lightness-Chroma-Hue) color space
light-dark()Enables two color-value settings, and returns the first value if the user has set a light color theme, and the second value if the user has set a dark color theme
linear-gradient()Creates a linear gradient
log()Returns the natural logarithm (base E) of a specified number, or the logarithm of the number to the specified base
matrix()Defines a 2D transformation, using a matrix of six values
matrix3d()Defines a 3D transformation, using a 4x4 matrix of 16 values
max()Uses the largest value, from a comma-separated list of values, as the property value
min()Uses the smallest value, from a comma-separated list of values, as the property value
minmax()Defines a size range greater than or equal to amin value and less than or equal to amax value (used with CSS grids)
mod()Returns the remainder left over when a number is divided by another number
oklab()Specifies a color in the OKLAB color space
oklch()Specifies a color in the OKLCH color space
opacity()Applies an opacity effect to an element
perspective()Defines a perspective view for a 3D transformed element
polygon()Defines a polygon
pow()Returns the value of a number (x) raised to the power of another number (y)
radial-gradient()Creates a radial gradient
ray()Defines the offset-path line segment that an animated element should follow
rem()Returns the remainder left over when a number is divided by another number
repeat()Repeats a set of columns or rows in a grid
repeating-conic-gradient()Repeats a conic gradient
repeating-linear-gradient()Repeats a linear gradient
repeating-radial-gradient()Repeats a radial gradient
rgb() / rgba()Defines colors using the Red-Green-Blue model (RGB); with an optional alpha component
rotate()Defines a 2D rotation of an element
rotate3d()Defines a 3D rotation of an element
rotateX()Defines a 3D rotation of an element around the x-axis (horizontal)
rotateY()Defines a 3D rotation of an element around the y-axis (vertical)
rotateZ()Defines a 3D rotation of an element around the z-axis
round()Rounds a number according to the specified rounding-strategy
saturate()Adjusts the saturation (color intensity) of an element
scale()Defines a 2D scaling of an element
scale3d()Defines a 3D scaling of an element
scaleX()Scales an element horizontally (the width)
scaleY()Scales an element vertically (the height)
sepia()Converts an image to sepia
sin()Returns the sine of a number (angle)
skew()Skews an element along the x- and y-axis
skewX()Skews an element along the x-axis
skewY()Skews an element along the y-axis
sqrt()Returns the square root of a number
steps()Creates a stepped timing function for animations
tan()Returns the tangent of a number
translate()Allows you to re-position an element along the x- and y-axis
translateX()Allows you to re-position an element along the x-axis
translateY()Allows you to re-position an element along the y-axis
url()Allows you to include a file in the stylesheet
var()Inserts the value of a custom property


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp