CSS Backgrounds
Set an image as the background of a pageBad background imageHow to repeat a background image only horizontallyHow to position a background imageA fixed background image (this image will not scroll with the rest of the page)All the background properties in one declarationAdvanced background example
Background properties explained
CSS Text
Set the text color of different elementsalign the textRemove the line under linksDecorate the textControl the letters in a textIndent textSpecify the space between charactersSpecify the space between linesSet the text direction of an elementIncrease the white space between wordsDisable text wrapping inside an elementVertical alignment of an image inside text
Text properties explained
CSS Fonts
Set the font of a textSet the size of the fontSet the size of the font in pxSet the size of the font in emSet the size of the font in percent and emSet the style of the fontSet the variant of the fontSet the boldness of the fontAll the font properties in one declaration
Font properties explained
CSS Links
Add different colors to visited/unvisited linksUse of text-decoration on linksSpecify a background color for linksAdd other styles to hyperlinksAdvanced - Create link boxes
Link properties explained
CSS Lists
All the different list item markers in listsSet an image as the list-item markerSet an image as the list-item marker - Crossbrowser solutionAll list properties in one declaration
List properties explained
CSS Tables
Specify a black border for table, th, and td elementsUse of border-collapseSpecify the width and height of a tableSet the horizontal alignment of content (text-align)Set the vertical alignment of content (vertical-align)Specify the padding for th and td elementsSpecify the color of the table borders
Table properties explained
CSS Box Model
Specify an element with a total width of 250pxSpecify an element with a total width of 250px - Crossbrowser solution
Box model explained
CSS Border
Set the width of the four bordersSet the width of the top borderSet the width of the bottom borderSet the width of the left borderSet the width of the right borderSet the style of the four bordersSet the style of the top borderSet the style of the bottom borderSet the style of the left borderSet the style of the right borderSet the color of the four bordersSet the color of the top borderSet the color of the bottom borderSet the color of the left borderSet the color of the right borderAll the border properties in one declarationSet different borders on each sideAll the top border properties in one declarationAll the bottom border properties in one declarationAll the left border properties in one declarationAll the right border properties in one declaration
Border properties explained
CSS Outline
Draw a line around an element (outline)Set the style of an outlineSet the color of an outlineSet the width of an outline
Outline properties explained
CSS Margin
Specify margins for an elementThe margin shorthand propertySet the top margin of a text using a cm valueSet the bottom margin of a text using a percent valueSet the left margin of a text using a cm value
Margin properties explained
CSS Padding
Set the left padding of an elementSet the right padding of an elementSet the top padding of an elementSet the bottom padding of an elementAll the padding properties in one declaration
Padding properties explained
CSS Grouping and Nesting
Group selectorsNested (descendant) selectors
Grouping and nesting explained
CSS Dimension
Set the height of an image using a pixel valueSet the height of an image using percentSet the width of an element using a pixel valueSet the width of an element using percentSet the maximum height of an elementSet the maximum width of an element using a pixel valueSet the maximum width of an element using percentSet the minimum height of an elementSet the minimum width of an element using a pixel valueSet the minimum width of an element using percent
Dimension properties explained
CSS Display
How to hide an element (visibility:hidden)How to not display an element (display:none)How to display an element as an inline elementHow to display an element as a block elementHow to make a table element collapse
Display properties explained
CSS Positioning
Position an element relative to the browser windowPosition an element relative to its normal positionPosition an element with an absolute valueOverlapping elementsSet the shape of an elementHow to create a scroll bar when an element's content is too big to fitHow to set the browser to automatically handle overflowSet the top edge of an image using a pixel valueSet the bottom edge of an image using a pixel valueSet the left edge of an image using a pixel valueSet the right edge of an image using a pixel valueChange the cursor
Positioning properties explained
CSS Floating
A simple use of the float propertyAn image with border and margins that floats to the right in a paragraphAn image with caption that floats to the rightLet the first letter of a paragraph float to the leftCreate an image gallery with the float propertyTurn of float - with the clear propertyCreating a horizontal menuCreating a homepage without tables
Float properties explained
CSS aligning Elements
Center aligning with marginLeft/Right aligning with positionLeft/Right aligning with position - Crossbrowser solutionLeft/Right aligning with floatLeft/Right aligning with float - Crossbrowser solution
align properties explained
CSS Generated Content
Insert the URL in parenthesis after each link with the content propertyNumbering sections and sub-sections with "Section 1", "1.1", "1.2", etc.Specify the quotation marks with the quotes property
CSS Pseudo-classes
Add different colors to a hyperlinkAdd other styles to hyperlinksUse of :focus:first-child - match the first p element:first-child - match the first i element in all p elements:first-child - Match all i elements in all first child p elementsUse of :lang
Pseudo-classes explained
CSS Pseudo-elements
Make the first letter special in a textMake the first line special in a textMake the first letter and first line specialUse :before to insert some content before an elementUse :after to insert some content after an element
Pseudo-elements explained
CSS Navigation Bars
Fully styled vertical navigation barFully styled horizontal navigation bar
Navigation bars explained
CSS Image Gallery
Image gallery
Image gallery explained
CSS Image Opacity
Creating transparent images - mouseover effectCreating a transparent box with text on a background image
Image opacity explained
CSS Image Sprites
An image spriteAn image sprite - a navigation listAn image sprite with hover effect
Image sprites explained
CSS Attribute Selectors
Select elements with a title attributeSelect elements with title=a specific valueSelect elements with title=a specific value (even if the attribute has space-separated values)Select elements with title=a specific value (even if the attribute has hyphen-separated values)
Attribute selectors explained
Your Query was successfully sent!