CSS

From Decyclopedia
Jump to navigation Jump to search

CSS (short for Cascading Style Sheets, Creating Stupid Stuff, or Central Security Service) is a programming language that users can use to make pages awful. Users familiar with CSS can do a lot of things (including making things look like other things).

Heading[edit | edit source]

This is a heading. It is used to separate sections of a page.

Paragraph that looks like a heading

This paragraph looks like a heading. But how? Well, you just type this code: <p style="border-bottom: 1px solid #AAAAAA; font-family: serif; font-size: 22px">Paragraph that looks like a heading</p>

The border-bottom style creates a border below the paragraph and sets it to a color similar to the heading's border. The font-family style sets the paragraph's font to the default serif font (which looks like the font used by the heading). font-size sets the font size to 22 pixels (a similar size to the heading).

Subheading[edit | edit source]

Subheadings are used to separate headings of a page.

Paragraph that looks like a subheading

The following code makes paragraphs look like subheadings: <p style="font-weight: bold; font-size: 17px">Paragraph that looks like a subheading</p> The font-weight property sets the font weight to bold (the font weight of the subheadings). The font-size style should be changed depending on the size of the subheading (17 pixels is the size of the Level 3 subheading).