setting

Web Designing Plateform: CSS REFERENCE

CSS REFERENCE



CSS Reference Page
We are constantly updating this page. If you would like to see additional CSS reference items, please Contact Us with your request.
  • Green - Safe to use
  • Yellow - Usually safe, but check out compatibility issues.
Click the link on the left side of the chart to see more information and an example of that property.
Attribute
Values
Description
Use?
background
color
size
percentage
pos-key-term
url
repeat
repeat-x
repeat-y
no-repeat
fixed
scroll
Allows you to set all values of the background in one declaration. We recommend that you instead use the specific background-attributes.

background-attachment
fixed
scroll
Dictate whether your background will scroll or not when the visitor scrolls the web page up and down.

background-color
color
none
Allows you to set the color of the background.

background-image
url
Use an image as a background. Remember to choose an image that does not interfere with a visitor's ability to read your text.

background-position
size
percentage
pos-key-term
Define the position of your background image. You must define a background-image to use background-position.

background-repeat
repeat
repeat-x
repeat-y
no-repeat
Dictate if and in which direction your background image will repeat. Vertically is the x-axis and horizontally is the y-axis.

border
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
four-sides
width-key-term
There are endless types of border styles at your disposal. We recommend that you experiement with many color/border-style combinations to get an idea of all the different looks you can create.

border-bottom
size
color
width-key-term
Set the bottom border of the element. If you would like to place a border on only one side of an HTML element, or maybe have a unique look for each side of the border, then use border-(direction).

border-bottom-color
color
Set the color of the element's bottom border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border.

border-bottom-style
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
Set the bottom border style of the element. Note: You must define a border width if you want the border to display. Using border-style by itself will not draw a border.

border-bottom-width
size
width-key-term
Set the width of the element's bottom border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

border-color
color
Set the color of the element's border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border.

border-left
size
color
width-key-term
Set the left border of the element. If you would like to place a border on only one side of an HTML element, or maybe have a unique look for each side of the border, then use border-(direction).

border-left-color
color
Set the color of the element's left border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border.

border-left-style
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
Set the left border style of the element. Note: You must define a border width if you want the border to display. Using border-style by itself will not draw a border.

border-left-width
size
width-key-term
Set the width of the element's left border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

border-right
size
color
width-key-term
Set the right border of the element. If you would like to place a border on only one side of an HTML element, or maybe have a unique look for each side of the border, then use border-(direction).

border-right-color
color
Set the color of the element's right border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border.

border-right-style
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
Set the right border style of the element. Note: You must define a border width if you want the border to display. Using border-style by itself will not draw a border.

border-right-width
size
width-key-term
Set the width of the element's right border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

border-style
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
four-sides
width-key-term
Set the border style of the element. Note: You must define a border width if you want the border to display. Using border-style by itself will not draw a border.

border-top
size
color
width-key-term
Set the top border of the element. If you would like to place a border on only one side of an HTML element, or maybe have a unique look for each side of the border, then use border-(direction).

border-top-color
color
Set the color of the element's top border. Note: You must define a width and style if you want the border to display. Using border-color by itself will not draw a border.

border-top-style
solid
double
groove
dotted
dashed
inset
outset
ridge
hidden
Set the top border style of the element. Note: You must define a border width if you want the border to display. Using border-style by itself will not draw a border.

border-top-width
size
width-key-term
Set the width of the element's top border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

border-width
size
width-key-term
Set the width of the element's border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

clear
left
right
both
Specify which side may not have a floating element. If an element is already floating to the chosen side, then the current item will be displayed on the following line. Use "both" to clear both left and right.

color
color
Define the color of your font.

display
block
inline
Control whether or not multiple elements can appear on one line. A paragraph tag only allows for one paragraph per line, by default. With CSS you can make new lines occur after each element (block) or prevent new lines (inline).

float
left
right
Float an element to the left or right. The content will wrap around an element that is floated.

font-family
font-name
Font family's can be divided into two groups: serif and san serif. A san serif font does not include the small lines at the end of characters, while a serif font does include these small lines. When choosing which kind you prefer, remember that studies have shown that sans serif fonts are much easier to read on a computer monitor as opposed to a serif font.

font-size
percentage
size
fsize-key-term
Set the size of your font in a variety of ways. We recommend that you use percentages for general content and reserve static values for special cases.

font-style
italic
oblique
normal
Make your font italic, if it is supported by that font. This has a similar effect as the italic HTML tag.

font-variant
small-caps
Convert the font to small capitals. Note: not all fonts support this kind of style.

font-weight
weight-key-term
weight-value
Control the thickness of your font. When using numerical values for font-weight, we suggest multiples of 100 (e.g. 200, 300, etc) because any less and you probably will not see any difference. The values range from 100(thin)-900(thick).

height
size
auto
Set the height of an element.

letter-spacing
size
Specify the exact value of the spacing between your letters. Letter-spacing works best when pixels are used to define the spacing.

line-height
size
percentage
Sets the height of the lines of text in an element.

list-style
circle
square
disc
upper-alpha
lower-alpha
upper-roman
lower-roman
decimal
inside
outside
url
none
Define all attributes of a list element in one decleration. A useful technique is to define a style-type in addition to a list-image. If an image is not able to be loaded, then the style-type will be used as a backup.

list-style-image
url
Insert an image in place of the normal list styled bullets. A good choice for a bullet image would one that is smaller than the height of your text and is a relatively simple/plain graphic.

list-style-position
inside
outside
Alter the indentation of your bullets or numbering systems. You may only use keyterms when specifying the indentation. Note: "outside" is actually the default setting for list indentation.

list-style-type
circle
square
disc
upper-alpha
lower-alpha
upper-roman
lower-roman
decimal
Select the style for your list items. Numbering styles should be used with order lists, while shapes are best saved for unordered lists.

margin
size
percentage
auto
Define the margin of an element with this general attribute. A margin defines the space around an element's border. We have added borders to the example so that you may see the changes in the margin more readily.

margin-bottom
size
percentage
auto
It is possible to define individual margins by adding a direction suffix to the margin general attribute. Margin-bottom will set the bottom margin for this element.

margin-left
size
percentage
auto
It is possible to define individual margins by adding a direction suffix to the margin general attribute. Margin-left will set the left margin for this element.

margin-right
size
percentage
auto
It is possible to define individual margins by adding a direction suffix to the margin general attribute. Margin-right will set the right margin for this element.

margin-top
size
percentage
auto
It is possible to define individual margins by adding a direction suffix to the margin general attribute. Margin-top will set the top margin for this element.

padding
size
percentage
four-sides
Define the padding of an element with this general attribute. A padding is the space between an element's border and the content within it. We have added borders to the example so that you may see the effects of padding more readily.

padding-bottom
size
percentage
It is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-bottom will set the bottom padding for this element.

padding-left
size
percentage
It is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-left will set the left padding for this element.

padding-right
size
percentage
It is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-right will set the right padding for this element.

padding-top
size
percentage
It is possible to define these individual paddings simply by adding a direction suffix to the padding attribute. Padding-top will set the top padding for this element.

position
absolute
relative
percentage
size
Manipulate the exact position of your HTML elements. The Top and Left attributes define where the object will be placed.
  • Move Left - Use a negative value for left.
  • Move Right - Use a positive value for left.
  • Move Up - Use a negative value for top.
  • Move Down - Use a positive value for top.

text-align
right
center
left
justify
Manipulate the alignment of your text.

text-decoration
line-through
overline
underline
none
Manipulate the text's decoration. Note: to specify no text decoration, be sure that you use "none". Anchor underlines can be removed with that method.

text-indent
size
percentage
Indent the first line of an element. This is most useful for indentation on paragraphs.

text-transform
capitalize
lowercase
uppercase
Modify the capitalization of your text with text-transform. Note: When someone copies and pastes text from your web site with CSS altered capitalization, they will paste the original, unaltered text that appears in your HTML code.

vertical-align
vertical-values
Sets the vertical alignment of your element, most often text. Vertical-align aligns the content that appears in an imaginary line. Examples of these lines are along a line of text or within a <td> of a table.

white-space
nowrap
Prevent your text from wrapping with nowrap. A new line will not be started unless you explicitly tell the browser to with <br/>. Note: we have defined the overflow and width CSS attributes, so that you may see nowrap in action.

width
size
percentage
auto
Set the width of an element.

word-spacing
size
Specify the exact value of the spacing between your words. Word-spacing works best when pixels are used as the spacing value.

z-index
whole-number
Set the z-index of an HTML element. The HTML element with the largest z-index will appear on top of those with a smaller z-index. z-index is useful for when using positioning and for resolving positioning conflicts.


No comments:

Copyright © Web Designing Plateform Urang-kurai