CSS Flashcards

1
Q

what are embeddedStyle Sheets?

A

enable you to embed a CSS3 document in an HTML5 document’s head section.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CSS position property

A

The position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CSS POSitioning when you specify an elements normal flow or position in a doc you can remove those attributes

A

Specifying an element’s position as absolute removes it from the normal flow of elements on the page and positions it according to distance from the top, left, right or bottom margin of its parent element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

z-index property

A

The z-index property specifies the stack order of an element.

An element with greater stack order is always in front of an element with a lower stack order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A page element with relative positioning gives you the control to absolutely position children elements inside of it.

A

relative positioning,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Inline Elements
An inline element does not start on a new line and it only takes up as much width as necessary.

This is a <span> element inside a paragraph.</span>

A

Block-Level Elements

Inline-level elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Grouping element
Does not apply any formatting to its contents
Creates a container for CSS rules or id attributes to be applied to a section

A

Grouping element does not apply any formatting to its content ?? Creates a container ? NOT UNDERSTOOD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

EXAMPLE OF BLOCK LEVEL ELEMENTS DISPLAYED ON THERE OWN LINE

A

EXAMPLE OF BLOCK LEVEL ELEMENTS DISPLAYED ON THERE OWN LINE
all headings (h1 through h6)
div
A grouping element like span

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

back ground controls

A

Setting the tiling to no-repeat displays one copy of the background image on screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

back ground controls

A

Setting to repeat (the default) tiles the image vertically and horizontally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

back ground controls

A

Setting to repeat-x tiles the image only horizontally

Setting to repeat-y tile the image only vertically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fixed back ground scrolling browser will not move the image

A

background-attachment: fixed Property

Fixes the image in the position specified by background-position.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Image back ground position (default at scroll)

A

The default value, scroll, moves the image as the user scrolls the window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

text-align Property

A

Text-align properties can move posting of text in an element using text-align: center: left; right;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

overflow Property

A

The overflow property specifies what should happen if content overflows an element’s box.

This property specifies whether to clip content or to add scrollbars when an element’s content is too big to fit in a specified area.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When the browser renders an element using the box model, the content is surrounded by padding, a margin and a border.

A

Block-level HTML5 elements have a virtual box drawn around them based on the box model

17
Q

Border

The border is controlled using the properties:

A

Border

The border is controlled using the properties:

18
Q

CSS media type definition

A

Declare what kind of page or media type of page this is: example web, flash, mobile experience, etc

19
Q

screen media types

A

Most common media type for a web page is the screen media type, which is a standard computer screen

20
Q

Apply block styles that apply to a single media type: example for print

@media print

A

To create a block of styles that apply to a single media type such as print, use @media print and enclose the style rules in curly braces

21
Q

Apply block styles that apply to a single media type: example for print

@media print

A

A block of styles that applies to all media types is declared by @media all and enclosed in curly braces

22
Q

Other media types in CSS include: accessibility

A

s
braille
For machines that can read or print web pages in braille

speech
Allow the programmer to give a speech-synthesizing web browser more information about the content of the web page

print

Affects a web page’s appearance when it is printed

23
Q

Media Queries

A

a CSS3 module allowing content rendering to adapt to conditions such as screen resolution

Allow you to format your content to specific output devices.
Include a media type and expressions that check the media features of the output device.

24
Q

Media queries and media features

A

Common media features include:
width—the width of the part of the screen on which the document is rendered, including any scrollbars
height—the height of the part of the screen on which the document is rendered, including any scrollbars
device-width—the width of the screen of the output device
device-height—the height of the screen of the output device
orientation—if the height is greater than the width, orientation is portrait, and if the width is greater than the height, orientation is landscape
aspect-ratio—the ratio of width to height
device-aspect-ratio—the ratio of device-width to device-height

25
Q

User style sheet user control of html5

A

Users can define their own user style sheets to format pages based on their preferences

26
Q

User style sheet user control of html5 absolute font realtive

A

Absolute font size measurements override user style sheets, while relative font sizes will yield to a user-defined style

27
Q

User style sheets accessibility options

A

To add a user style sheet in IE9, select Internet Options…, located in the Tools menu. In the Internet Options dialog (Fig. 4.20) that appears, click Accessibility…, check the Format documents using my style sheet checkbox, and type the location of the user style sheet.

28
Q

use a relative measurement that does not override the user style set in Fig. 4.19.
Instead, the font size displayed is relative to the one specified in the user style sheet

A

Set Protocol for letting user control font size