css Flashcards

1
Q

css

A
  1. Cascading style sheets
  2. Css is used to apply the style in the web page which is made up of html elements
  3. It describes the look of the web page
  4. Css provides various style properties such as background colour padding margin border colour and many more to style a web page
  5. Each property in css have name and value pair and each property is separated by “;”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

css syntax

A

Selector{Property1: value1; Property2: value2; ……….;}

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

Css style Sheets

A
  1. Inline style sheet
    - Apply css in a single element
    - It can apply styl uniquely to each element
    - Style attribute is used
    2.Internal style sheet
    - Crisis properties are declared in <head> section of html doc
    - <style> tag is used</style>
  2. external style sheet
    - Separate css file which contains style code using the class name id tag name etc
    - We link together by using <link></link> tag
    - External file which contains css is saved with extension .css
    - Css file is linked to the actual file using link tag in header section

<link rel=”stylesheet” type=”text/css” href=”file.css>

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

selectors

A
  1. Used to select the content you want to style
  2. Select as of the part of css rule set
  3. css selector select html elements according to its id class type attribute etc
  4. Css elements selector(Select html ele by name)
  5. Css id selector-#(Select the Id attri of html ele and select sp. ele. It is always unique within page )
  6. Class selector- . (Selects with a specific cls attri)
    - Class selector can also be applied to a single ele
    –p.centre{—-}
  7. Universal selector -*(Select all elements on pgs)
  8. Group selector(Used to select all ele with the same style definitions)
    - This selector is used to minimise the
    - commas commas are used to separate each selector in grouping
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Background property

A
  1. background colour
  2. background image–
    - URL()
    - margin left:100px;
  3. background repeat
    - Repeat the background image horizontally and vertically
    - Repeat X– Horizontal
    - No repeatRepeat y– Vertical
    - Repeat: No repeat
  4. background attachment(specify the background images fixtures crowd with the rest of the page in the browser window)
    - Background-Attachment: Fixed;
  5. background position(User to define initial position of the background image)
    - By default it is defined as top left of the Web pg

background: white url(‘good-morning.jpg’);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;

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

Css border property

A

Shorthand property used to set the borders on an element

  1. Border style (Specify type of the border you want to insert)
    - Dotted
    - none
    - dashed
    - solid
    - double
    - groove
    - ridge
    - inset
    - outset
  2. border colour- By three methods we can set the colour of the border:
    -Name of the colour
    - RGB(Value of the colour)
    - Hex(hecx value of the colour)
  3. Border width-px or In three predefined values thin medium thick
  4. border radius
  5. Border collapse– Border-collapse :separate;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CSS font

A

1.Font colour(color: red)
2. Fontfamily (Two types
generic family: seriff, San Serif, monospace
Font family: arial, New times Roman etc)
3. font size (Can be given as small medium large extra large and also in pixels)
4. font style (The type you want to display like italic normal etc)
5. font variant (how to set font variant of an element it may be normal and small caps)
6. font weight(Specifies weight of the font and how bold font isit may be normal bold bolder lighter or number(100-900))

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

Padding And margin

A

Padding is the space between the element content and element border
Four parts:
1. Padding left
2. padding right
3. padding top
4. padding bottom
padding: 40PX 50PX 50PX 30PX

Margin is the space around the elements
Four parts:
1. Top
2. bottom
3. left
4. right
margin: 100pX 50PX 50PX 100PX

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

Text transform properties

A
  1. capitalise
  2. uppercase
  3. lowercase
  4. none
  5. initial
  6. inherit

text-transform: capitalize;

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

Justify content

A

Alien items of flexible box container when items do not use all available space on main access it defines how the browser distributes space around and between the content items
1. centre
2. flex start
3. flex end
4. space around
5. Space evenly
6. space between

Text-align: Justify

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

Text indent

A

Firstline in the block of text
Specifies the amount of horizontal space that puts before lines of text

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

Decoration line

A
  1. Css property that decorates the content of the text
  2. It adds lines under above and through the text

Overline
Underline
line through

Text - decoration: line through;

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

css Box model

A

Css box model contains
1. content
2. padding
3. border
4. margin

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

Letters spacing
word spacing
line height

A
  1. Letter spacing 5PX;
  2. Line spacing: 1PX;
  3. Word spacing: 5PX;
  4. Text Indent 2PX;
  5. text Align: Justify
  6. Text decoration line: overline
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Span and div tag

A

Span: inline container used to mark a part of text or part of document

Div:Defines division or a section in a html document
Container for html elevens which are styled with css of manipulated with javascript

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

Shadow

A

text - Shadow: 14PX14Px black 24PX 24PX red

17
Q
A