Your Ad Here
  
Home > Computer & Electronic > Building A Website Tips > CSS: Cascading Style Sheets

CSS: Cascading Style Sheets


Background Properties

HTML style sheets provide you the capability to decorate the background of an element by using color and images. Note that using the properties described in the following sections doesn't define the background for the Web page as a whole. These properties set the background of an element on the Web page. For example, if you define a background for the
    tag, as in the following example, then the background only appears within each occurrence of that tag on the Web page.

 

Mon Jun 13 2005
Views: 73


Box Properties

W3C's style sheet recommendation provides you the capability to define the borders, margins, and padding for elements on the Web page. You can wrap a border around a heading, for example, or change the margins of the

tag so that any occurrences of this tag are indented into the page. Here's an overview of the properties that you can use to change the boxes associated with an element:

 

Mon Jun 13 2005
Views: 70


Classification Properties

You use the list properties to specify how lists display in the browser window. You can change the position of the marker (list-style-position) and the style or image used for the marker (list-style-type and list-style-image). The sections that follow describe each property in more detail. Enjoy.

 

Mon Jun 13 2005
Views: 60


Font Properties

You can group the font properties using font. You specify the weight, style, size, and family, as in the following example: font: bold normal 12pt times, serif font-family font-family is a prioritized list of typefaces for the element. You can specify a single typeface or a list of alternatives, separated by commas, as in the following example:

 

Mon Jun 13 2005
Views: 58


Importance of CSS in web development

CSS style sheets have made it easier to handle web pages during web development. CSS or Cascading Style Sheets as the name suggests is a style sheet that allows you to easily link to other documents in your website. It allows you to retain control over the various elements in different web pages of your website.

 

Sun Apr 27 2008
Views: 8


Styling your links with CSS

With the use of Cascading Style Sheets (CSS), in conjunction with HTML, you can easily achieve a variety of effects for your links. Lets start with basic link styling. In the portion of your document place the following:

 

Sun Oct 02 2005
Views: 61


Text Properties

Text properties give you complete control over how the browser displays an element's text. You can change its color, size, font, spacing, and so on. The sections that follow describe each text property you can set.

 

Mon Jun 13 2005
Views: 61