Section 1

Preview this deck

Font-size: value

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (22)

Section 1

(22 cards)

Font-size: value

Front

Affects the size of text

Back

font-family:value;

Front

Affects the text font style

Back

Style Sheet

Front

To add CSS style rules to an HTML page, you need to create a style sheet document.

Back

Rules

Front

The rules describe how the elements identified by the selector should change. Each rule consists of a property name and a value, separated by a colon (:) For example, the rule-set below will make all the h1 headers on the page have blue text that is underlined.

Back

Margin: valuepx

Front

The margin property determines how much space will be around the image. Most of the time, you will define in the margin in pixels.

Back

Body {property:value;}

Front

The <body> element is a special element that wraps all of the visible content on a web page. Because everything that you see is inside this tag, any rule-set that you create for the body element will apply to every element on page, unless the element itself has a rule that contradicts it.This is useful for establishing a baseline style for everything on your page.

Back

Property: valuepx

Front

Pixel, which is abbreviated px, is how elements are measured in CSS. It's the size of a single point of light on the screen.

Back

Border-style: value

Front

The `border-style` property determines what kind of border (solid, dotted, etc.) the element has.

Back

Float: value

Front

The float property makes an element "float", meaning that the elements that come after it all flow around it. If the float value is left, the element will float to the left, and the elements after it will show up on its right. If the float value is right, the element will float to the right, and the elements after it will show up on its left.

Back

SELECTOR

Front

The selectors can be any part of the web page you want to style. One way you can identify parts of the web page is using the names of the element type. Selecting an element type will make all elements of that type have the given styling. The selector name for HTML element types is the name of the tag with the brackets removed. In the below example the selector is h1 and it will style all the h1 elements with the rules inside the curly braces ({ }).

Back

Height: valuepx

Front

The height property determines how tall the element will be. Most of the time, you will define the height in pixels, which makes the element take up an exact amount of space on the screen. Defining the height will also change the width so that the image does not stretch, unless you have also defined the width.

Back

Border-radius: valuepx

Front

The `border-radius` property determines the radius of the curves at the corners of the element. A bigger radius makes a bigger, softer curve, and a smaller radius makes a smaller, sharper curve. A radius of zero makes a regular corner.

Back

Text align:value

Front

Affects alignment of text

Back

Width: valuepx

Front

The width property determines how wide the element will be. Most of the time, you will define the width in pixels, which makes the element take up an exact amount of space on the screen. Defining the width will also change the height so that the image does not stretch, unless you have also defined the height.

Back

CSS Rule Sets

Front

CSS rule-sets consist of two main parts: Selectors and Rules

Back

Color:Value

Front

Affects the color of text

Back

Border-width: valuepx

Front

Changes the border width of an element, like an image or table.

Back

Background-color: value

Front

It changes the background of the page.

Back

CSS (Cascading Style Sheets)

Front

A language that adds style to a web page.

Back

CSS Link

Front

The link goes inside the head tag

Back

Border-color: value

Front

Changes the color of your borders

Back

Text Decoration: Value

Front

Affects the text in additional styles

Back