CSS ?'s Flashcards
What are different ways to intergrate css into html?
style tags in head of HTML, use inline-styling, seperate stylsheet
What is the meaning of cascading
same style can be applied to multiple elements, multiple styles can be applied to a particular html elements, same stylesheet for multiple pages
Advantages of CSS?
multiple elements can have the same style, selectors and grouping can be used to group styles in complex situations
css frameworks?
bootstrap, responsive, mobile first websites
id v class?
Id is unique, so it can only be used once, same class can be applied to multiple elements
what is RGB Stream?
way to get a color for styling of an element, 0-256
Ways to assign a color?
Hexadecimal (#), RGB, HSL functional notation (never used)
CSS Box Model?
describes rectangular box that is generated for elements in dom tree. Each box has content, optional padding, border, margins.
Box model rules?
dimensions of block element = width, height, padding, borders, margin.
no height specified, high as container + padding
no width specified, wide as parent minus paddiing
padding + border not included in width and height of an element
What is z-index?
helps specify stack order of positioned elements that may overlap one another. default value is 0. higher index stacked above lower index. only applied to elements that do not have position static.
CSS sprites?
css sprites combine multiple images into one single larger image. It is a commonly used technique for icons. Use a sprite generator.
benefits of sprites
Reduce the number of http requests for multiple images
Psuedo elements?
keyword added to a selector that styles a specific part of the element. (:first-line, :first-letter)
what is a float property used for?
places an element on left or right side of its container, allowing text/inline elements to wrap around it.
Different modules in css?
selectors, box model, text effects, animations