CSS Classification
The CSS classification properties allow you to control how to display an element, set where an
element will appear in another
element, position an element absolutely or relative to its normal position, and how to control the visibility of an element.
Examples
How to display an
element as an inline element.
This example demonstrates how to display an element as an inline element.
How to
display an element as a block element
This example demonstrates how to display an element as a block element.
A simple use of the float property
Let an image float to the right in a paragraph.
An image with border and margins that floats to the right in a paragraph
Let an image float to the right in a paragraph. Add border and margins to the image.
An image with a caption that floats to the right
Let an image with a caption float to the right.
Let the first letter of a paragraph float to the left
Let the first letter of a paragraph float to the left and style the letter.
Creating a horizontal menu
Use float with a list of hyperlinks to create a horizontal menu.
Creating a homepage without tables
Use float to create a homepage with a header, footer, left content and main content.
Position:relative
This example demonstrates how to position an element relative to its normal position.
Position:absolute
This example demonstrates how to position an element using an absolute value.
How to make an element invisible
This example demonstrates how to make an element invisible. Do you want the element to show or not?
How
to make a table element collapse
This example demonstrates how to make a table element collapse.
Change the cursor
This example demonstrates how to change the cursor.
Clear the
sides of an element
This example demonstrates how clear the sides of other floating elements.
All CSS Classification Properties
The number in the "CSS" column indicates in which CSS version the property is defined (CSS1 or CSS2).
| Property |
Description |
Values |
CSS |
| clear |
Sets the sides of an element where other floating elements are not allowed |
left
right
both
none |
1 |
| cursor |
Specifies the type of cursor to be displayed |
url
auto
crosshair
default
pointer
move
e-resize
ne-resize
nw-resize
n-resize
se-resize
sw-resize
s-resize
w-resize
text
wait
help |
2 |
| display |
Sets how/if an element is displayed |
none
inline
block
list-item
run-in
compact
marker
table
inline-table
table-row-group
table-header-group
table-footer-group
table-row
table-column-group
table-column
table-cell
table-caption |
1 |
| float |
Sets where an image or a text will appear in another element |
left
right
none |
1 |
| position |
Places an element in a static, relative, absolute or fixed position |
static
relative
absolute
fixed |
2 |
| visibility |
Sets if an element should be visible or invisible |
visible
hidden
collapse |
2 |
729,913 sites built with Wix. Make your own
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|