• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
程媛媛Lexy
博客园    首页    新随笔    联系   管理    订阅  订阅

【CSS】Intermediate8:Page Layout

1.Layout with CSS is easy. You just take a chunk of your page and shove it wherever you choose

 

2.position property

 

3.static value

renders a box in the normal order of things

 

4.relative

much like static but the box can be offset from its original position

top/right/bottom/left properties

 

5.absolute

pulls a box out of normal flow of HTML  & delivers it to a world all of its own

t/r/b/l

 

6.fixed

like absolute but reference to the browser window as opposed to the web page

Fixed boxes should stay exactly where they are on the screen even when the page is scrolled

How stupidly easy!

 

7.float

Shift the box to the right or left of a line,with surrounding content flowing around it

l/r value

8.clear

do not want the next box to wrap around the floating objects

l/r/both value

Footer!Hoorah!

 

posted @ 2014-04-12 10:12  程媛媛Lexy  阅读(185)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3