WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
×

CSS Reference

CSS Reference CSS Selectors CSS Functions CSS Reference Aural CSS Web Safe Fonts CSS Animatable CSS Units CSS PX-EM Converter CSS Colors CSS Color Values CSS3 Browser Support

CSS Properties

align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight hanging-punctuation height justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position quotes resize right tab-size table-layout text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-overflow text-shadow text-transform top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width word-break word-spacing word-wrap z-index



 

CSS Reference


Commonly Used Font Combinations

The textual style family property should hold a few text style names as a "fallback" framework, to guarantee greatest similarity between programs/working frameworks. In the event that the program does not bolster the primary text style, it attempts the following font.

Example

p {
    textual style family: "Times New Roman", Times, serif;
}

Below are some regularly utilized text style mixes, sorted out by conventional family.


Serif Fonts

font-family Example text
Georgia, serif

This is a heading

This is a paragraph

"Palatino Linotype", "Book Antiqua", Palatino, serif

This is a heading

This is a paragraph

"Times New Roman", Times, serif

This is a heading

This is a paragraph

Sans-Serif Fonts

font-family Example text
Arial, Helvetica, sans-serif

This is a heading

This is a paragraph

"Arial Black", Gadget, sans-serif

This is a heading

This is a paragraph

"Comic Sans MS", cursive, sans-serif

This is a heading

This is a paragraph

Impact, Charcoal, sans-serif

This is a heading

This is a paragraph

"Lucida Sans Unicode", "Lucida Grande", sans-serif

This is a heading

This is a paragraph

Tahoma, Geneva, sans-serif

This is a heading

This is a paragraph

"Trebuchet MS", Helvetica, sans-serif

This is a heading

This is a paragraph

Verdana, Geneva, sans-serif

This is a heading

This is a paragraph

Monospace Fonts

font-family Example text
"Courier New", Courier, monospace

This is a heading

This is a paragraph

"Lucida Console", Monaco, monospace

This is a heading

This is a paragraph


outskirt top-width Sets the width of the best border 1 border-width Sets the width of the four borders 1 box-embellishment break

CSS Properties

CSS Property Groups


The "CSS" segment demonstrates in which CSS form numerous sorts CSS1, CSS2, or CSS3.

Color Properties

Property Description CSS
color Sets the shade of text 1
opacity Sets the haziness level for an element 3

Background and Border Properties

Property Description CSS
background A shorthand property for setting all the foundation properties in one declaration 1
foundation attachment Sets whether a foundation picture is fixed or looks with whatever remains of the page 1
foundation mix mode Specifies the mixing method of each foundation layer (shading/image)
Specifies the foundation shade of an element 1
foundation image Specifies at least one foundation pictures for an element 1
foundation position Specifies the situation of a foundation image 1
foundation repeat Sets how a foundation picture will be repeated 1
foundation clip Specifies the artistic creation zone of the background 3
foundation origin Specifies where the foundation image(s) is/are positioned 3
foundation size Specifies the measure of the foundation image(s) 3
border Sets all the outskirt properties in one declaration 1
outskirt bottom Sets all the base outskirt properties in one declaration 1
outskirt base color Sets the shade of the base border
outskirt base left-radius Defines the state of the outskirt of the base left corner 3
outskirt base right-radius Defines the state of the outskirt of the base right corner 3
outskirt base style Sets the style of the base border 1
outskirt base width Sets the width of the base border 1
outskirt color Sets the shade of the four borders 1
outskirt image A shorthand property for setting all the outskirt picture * properties 3
outskirt picture outset Specifies the sum by which the outskirt picture zone reaches out past the fringe box 3
fringe picture repeat Specifies whether the fringe picture ought to be rehashed, adjusted or stretched 3
fringe picture slice Specifies how to cut the fringe image 3
fringe picture source Specifies the way to the picture to be utilized as a border 3
fringe picture width Specifies the widths of the picture border 3
fringe left Sets all the left fringe properties in one declaration 1
fringe left-color Sets the shade of the left border 1
fringe left-style Sets the style of the left border 1
fringe left-width Sets the width of the left border 1
fringe radius A shorthand property for setting all the four fringe *-sweep properties 3
fringe right Sets all the correct outskirt properties in one declaration 1
outskirt right-color Sets the shade of the privilege border 1
outskirt right-style Sets the style of the privilege border 1
fringe right-width Sets the width of the privilege border 1
fringe style Sets the style of the four borders 1
fringe top Sets all the best fringe properties in one declaration 1
outskirt top-color Sets the shade of the best border 1
outskirt upper left-radius Defines the state of the outskirt of the upper left corner 3
fringe upper right-radius Defines the state of the fringe of the upper right corner 3
fringe top-style Sets the style of the best border 1
Sets the conduct of the foundation and fringe of a component at page-break, or, for in-line components, at line-break. 3
box-shadow Attaches at least one drop-shadows to the box 3

Basic Box Properties

Property Description CSS
bottom Specifies the base position of a situated element 2
clear Specifies which sides of a component where other drifting components are not allowed 1
clip Clips a totally situated element 2
display Specifies how a specific HTML component ought to be displayed 1
float Specifies regardless of whether a crate ought to float 1
height Sets the tallness of an element 1
left Specifies the left position of a situated element 2
margin Sets all the edge properties in one declaration 1
edge bottom Sets the base edge of an element 1
edge left Sets the left edge of an element 1
edge right Sets the correct edge of an element 1
edge top Sets the best edge of an element 1
max-height Sets the most extreme tallness of an element 2
max-width Sets the most extreme width of an element 2
min-height Sets the base tallness of an element 2
min-width Sets the base width of an element 2
overflow
Specifies what occurs if content floods a component's box 2
overflow-x Specifies regardless of whether to cut the left/right edges of the substance, on the off chance that it floods the component's substance area 3
overflow-y Specifies regardless of whether to cut the best/base edges of the substance, on the off chance that it floods the component's substance area 3
padding Sets all the cushioning properties in one declaration 1
padding-bottom Sets the base cushioning of an element 1
padding-left Sets the left cushioning of an element 1
padding-right Sets the correct cushioning of an element 1
padding-top Sets the best cushioning of an element 1
position Specifies the kind of situating strategy utilized for a component (static, relative, supreme or fixed) 2
right Specifies the correct position of a situated element 2
top Specifies the best position of a situated element 2
visibility Specifies regardless of whether a component is visible 2
width Sets the width of an element 1
vertical-align Sets the vertical arrangement of an element 1
z-index Sets the stack request of a situated element 2

Flexible Box Layout

Property Description CSS
align-content Specifies the arrangement between the lines inside an adaptable compartment at the point when the things don't utilize all accessible space 3
align-items Specifies the arrangement for things inside an adaptable container 3
align-self Specifies the arrangement for chose things inside an adaptable container 3
flex Specifies the length of the thing, with respect to the rest 3
-basis Specifies the underlying length of an adaptable item 3
flex-direction Specifies the course of the adaptable items 3
flex-flow A shorthand property for the flex-course and the flex-wrap properties 3
flex-grow Specifies how much the thing will develop with respect to the rest 3
flex-shrink Specifies how the thing will recoil in respect to the rest 3
flex-wrap Specifies whether the adaptable things should wrap or not 3
justify-content Specifies the arrangement between the things inside an adaptable holder at the point when the things don't utilize all accessible space 3
order Sets the request of the adaptable thing, in respect to the rest 3

Text Properties

Property Description CSS
hanging-punctuation Specifies whether an accentuation character might be put outside the line box 3
hyphens Sets how to part words to improve the format of paragraphs 3
letter-spacing Increases or diminishes the space between characters in a text 1
line-break Specifies how/if to break lines 3
line-height Sets the line height 1
overflow-wrap Specifies regardless of whether the program may break lines inside words in request to avert flood 3
tab-size Specifies the length of the tab-character 3
content align Specifies the level arrangement of text 1
text-adjust last Describes how the last line of a square or a line directly before a constrained line break is adjusted when content adjust is "justify" 3
text-join upright Specifies the blend of various characters into the space of a single character 3
text-indent Specifies the space of the main line in a content block 1
text-justify Specifies the legitimization technique utilized when content adjust is "justify" 3
text-transform Controls the capitalization of text 1
white-space Specifies how blank area inside a component is handled 1
word-break Specifies line defying guidelines for non-CJK scripts 3
word-spacing Increases or diminishes the space between words in a text 1
word-wrap Allows long, unbreakable words to be broken and wrap to the following line 3

Text Decoration Properties

Property Description CSS
content decoration Specifies the improvement added to text 1
content improvement color Specifies the shade of the content decoration 3
content enhancement line Specifies the sort of line in a content decoration 3
content enhancement style Specifies the style of the line in a content decoration 3
content shadow Adds shadow to content 3
text-underline-position Specifies the situation of the underline which is set utilizing the content enrichment property 3

Font Properties

Property Description CSS
@font-face A decide that enables sites to download and utilize text styles other than the "web-safe" fonts 3
@font-include values Allows creators to utilize a typical name in textual style variation exchange for highlight actuated distinctively in OpenType 3
font Sets all the font properties in one declaration 1
font-family Specifies the font family for text 1
font-feature-settings Allows control over advanced typographic features in OpenType fonts 3
font-kerning Controls the usage of the kerning information (how letters are spaced) 3
font-language-override Controls the usage of language-specific glyphs in a typeface 3
font-size Specifies the text dimension of text 1
text dimension adjust Preserves the clarity of content when textual style fallback occurs 3
textual style stretch Selects a typical, consolidated, or extended face from a textual style family 3
textual style style Specifies the textual style for text 1
font-synthesis Controls which missing typefaces (striking or italic) might be combined by the browser 3
font-variant Specifies regardless of whether a content ought to be shown in a little tops font 1
font-variation alternates Controls the utilization of substitute glyphs related to elective names characterized in @font-include values 3
font-variation caps Controls the use of interchange glyphs for capital letters 3
font-variation east-asian Controls the use of interchange glyphs for East Asian contents (e.g Japanese and Chinese) 3
font-variation ligatures Controls which ligatures and logical structures are utilized in literary substance of the components it applies to 3
font-variation numeric Controls the utilization of exchange glyphs for numbers, portions, and ordinal markers 3
font-variation position Controls the utilization of exchange glyphs of littler size situated as superscript or subscript in regards to the pattern of the font 3
font-weight Specifies the heaviness of a font 1

Writing Modes Properties

Property Description CSS
direction Specifies the content heading/composing direction 2
text-orientation Defines the introduction of the content in a line 3
text-join upright Specifies the blend of different characters into the space of a single character 3
unicode-bidi Used together with the direction property to set or return whether the content ought to be superseded to help various dialects in the equivalent document 2
writing-mode 3

Table Properties

Property Description CSS
border-collapse Specifies regardless of whether table outskirts ought to be collapsed 2
fringe spacing Specifies the separation between the fringes of contiguous cells 2
subtitle side Specifies the position of a table caption 2
void cells Specifies regardless of whether to show outskirts and foundation on void cells in a table 2
table-layout Sets the format calculation to be utilized for a table 2

Lists and Counters Properties

Property Description CSS
counter-increment Increments at least one counters 2
counter-reset Creates or resets at least one counters 2
list-style Sets every one of the properties for a rundown in one declaration 1
list-style-image Specifies a picture as the rundown thing marker 1
list-style-position Specifies if the rundown thing markers ought to show up inside or outside the substance flow 1
list-style-type Specifies the kind of rundown thing marker 1

Animation Properties

gfg fdsdf
Property Description CSS
@keyframes Specifies the liveliness code 3
animation A shorthand property for all the liveliness properties (aside from movement play-state also, movement fill-mode) 3
animation-delay Specifies a deferral for the beginning of an animation3
animation-direction Specifies regardless of whether the liveliness should play backward on exchange cycles 3
animation-duration Specifies how long or milliseconds a liveliness takes to finish one cycle 3
animation-fill-mode Specifies a style for the component when the liveliness isn't playing (when it is done, or when it has a delay) 3
animation-emphasis count Specifies the occasions an activity ought to be played 3
movement name Specifies the name of the @keyframes animation 3
movement play-state Specifies whether the movement is running or paused 3
movement timing-function Specifies the speed bend of an animation 3

Transform Properties

Property Description CSS
backface-visibility Defines regardless of whether a component should be obvious when not confronting the screen 3
perspective Specifies the point of view on how 3D components are viewed 3
point of view origin Specifies the base position of 3D elements 3
transform Applies a 2D or 3D change to an element 3
Allows you to change the situation on changed elements 3
transform-style Specifies how settled components are rendered in 3D space 3

Transitions Properties

Property Description CSS
transition A shorthand property for setting the four change properties 3
transition-property Specifies the name of the CSS property the change impact is for 3
transition-duration Specifies how long or milliseconds a change impact takes to complete 3
transition-timing-function Specifies the speed bend of the change effect 3
transition-delay Specifies when the change impact will start 3

Basic User Interface Properties

Filter Effects Properties

Property Description CSS
box-sizing Tells the program what the measuring properties (width and tallness) ought to include 3
content Used with the :previously and :after pseudo-components, to embed created content 2
cursor Specifies the sort of cursor to be displayed 2
ime-mode Controls the condition of the info strategy proofreader for content fields 3
nav-down Specifies where to explore when utilizing the bolt down route key 3
nav-index Specifies the selecting request for an element 3
nav-left Specifies where to explore when utilizing the bolt left route key 3
Property Description CSS
filter Defines impacts (for example obscuring or shading moving) on a component previously the component is displayed 3

Image Values and Replaced Content

Property Description CSS
image-orientation Specifies a pivot justified or clockwise bearing that a client operator applies to a picture (This property is likely going to be deplored and its usefulness moved to HTML) 3
image-rendering Gives an insight to the program about what parts of a picture are most essential to safeguard when the picture is scaled 3
image-resolution Specifies the inherent goals of all raster pictures utilized in/on the element 3
object-fit Specifies how the substance of a supplanted component ought to be fitted to the box set up by its utilized tallness and width 3
object-position Specifies the arrangement of the supplanted component inside its box 3

Masking Properties

Property Description CSS
mask 3
mask-type 3

Speech Properties

Property Description CSS
mark A shorthand property for setting the imprint previously and mark-after properties 3
mark-after Allows named markers to be joined to the sound stream 3
mark-before Allows named markers to be joined to the sound stream 3
phonemes Specifies a phonetic elocution for the content contained by the relating element 3
rest A shorthand property for setting the rest-previously and rest-after properties 3
rest-after Specifies a rest or prosodic limit to be seen subsequent to talking a component's content 3
rest-before Specifies a rest or prosodic limit to be seen before talking a component's content 3
voice-balance Specifies the harmony among left and right channels 3
voice-duration Specifies to what extent it should take to render the chose component's content 3
voice-pitch Specifies the normal pitch (a recurrence) of the talking voice 3
voice-pitch-range Specifies variety in normal pitch 3
voice-rate Controls the talking rate 3
voice-stress Indicates the quality of accentuation to be applied 3
voice-volume Refers to the abundancy of the waveform yield by the discourse synthesises 3

Marquee Properties

Property Description CSS
marquee-direction Sets the course of the moving content 3
marquee-play-count Sets how frequently the substance move 3
marquee-speed Sets how quick the substance scrolls 3
marquee-style Sets the style of the moving content 3