Lynda.com - CSS Fundamentals by James Williamson


ElEMENT-SPECIFIC SELECTORS

Modified class or ID selector which limits application to a specific element

h2.subheading {color: blue;}
div#sidebar {font-size: 80%;}

CSS & ID NAMING CONVENTIONS

  • No whitespace or special characters
  • CSS is case-sensitive

DESCENDENT SELECTORS

Highly specific slectors that target elements based on their location within other elements

div p span { color: blue;}

GROUPING SELECTORS

Allows you to group selectors together that share formatting

h1, h2, .quote {font-weight: normal; color: blue;}

CASCADE in CSS means the last rules applied wins.


MODULARIZATION OF CSS

  • CSS3 is not a single specification
  • CSS is now published as a series of modularized specifications
  • Sections like Selectors are now in their own specifications
  • This approach gives the W3C the ability to prioritize specs and react rapidly to new needs


Padding is added to the outside of an element's width.


MARGINS

  • Margins represent the space between elements
  • Margin values are not calculated as part of an element's total width
  • Most elements have a default margin that you must account for

 

The top element's bottom margin and the bottom element's top margin will be collapsed and the larger margin will be applied.



RELATIVE POSITIONING

Elements are still considered part of normal document flow, but you can offset the element from its normal position using top, right, bottom, or left offset values.


ABSOLUTE POSITIONING

Elements are removed from normal document flow, and repositioned based on top, right, left, or bottom offset values. Elements are placed relative to the nearest positioned ancestor.


MEDIA QUERIES

Media queries allow you to combine media types with media property expressions, to further when styles are applied based on color, screen widthh, and other factors.


CSS RESET

A set of styles that nullify a browser's default style sheet, allowing designers to avoid conflicts between their styles and browser default styles.


The web is a constantly shifting landscape of technologies, strategies, consumers, and content. If there is one thing that we can be 100% sure of, it is change.

 

From <http://simpleprimate.com/blog/make>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值