zoukankan      html  css  js  c++  java
  • CSS DISPLAY AND POSITIONING

    CSS DISPLAY AND POSITIONING
    Review: Layout
    Great job! In this lesson, you learned how to control the positioning of elements on a web page.

    Let's review what you've learned so far:

    The position property allows you to specify the position of an element in three different ways.
    When set to relative, an element's position is relative to its default position on the page.
    When set to absolute, an element's position can be pinned to any part of the web page, but the element will still move out of view when the page is scrolled.
    When set to fixed, an element's position can be pinned to any part of the web page. The element will remain in view no matter what.
    The z-index of an element specifies how far back or how far forward an element appears on the page.
    The float property can move elements as far left or as far right as possible on a web page.
    You can clear an element's left or right side (or both) using the clear property.
    When combined with an understanding of the box model, positioning can create visually appealing web pages. So far, we've focused on adding content in the form of text to a web page. In the next unit, you'll learn how to add and manipulate images to a web page.

  • 相关阅读:
    C语言数据类型取值范围
    C语言的概述--学习c的第二天
    开始学习c语言
    Comet 反Ajax: jQuery与PHP实现Ajax长轮询
    jquery的toFixed方法的正确使用
    JavaScript 正则表达式
    JavaScript中原型链存在的问题解析
    vue编程式导航
    vue 动态组件,传递参数
    JavaScript如何封装插件
  • 原文地址:https://www.cnblogs.com/young-ma/p/7768160.html
Copyright © 2011-2022 走看看