Questions about the Css+div layout 2017-03-19

Source: Internet
Author: User

The first time a static web page is laid out, there are many details that need to be explored, such as the following questions:

1, layout problems: Often a div is squeezed out? Do half a div layout?

Before you lay out, make sure you have a good frame, clear how much aspect each place is, and strive to be accurate to every pixel (whether it contains a border pixel); however, the sketches on paper are fine and precise, and need to be practiced.

2, positioning problems: Clearly all positioning, why also appear div layout confusion phenomenon?

Why is it possible to fix a negative number by setting the value of Margin-left/right, but the display of the effect in other browsers is still wrong?

3, the position of the picture in the Div, why according to the value set by the theory, is not to be due position?

is the picture positioned incorrectly or is the reference div mistaken?

4, the internal margin and the issue of the outside bureau?

Can distinguish between the definition, why the actual use of the results are always not due to it? What's the problem?

5, the alignment of the text in the Div, line spacing?

Alignment no problem, how to adjust the line spacing? With Line-height? How to adjust the spacing between word and word?

6. Is there a sequence list application in div?

The sequence table in the div can be used to do horizontal and vertical menu bar, you can set the border, but how to reduce the point in front of it? When inserting a picture to make an ordinal, how is the picture aligned with the text and why is it confusing?

The date after the text in addition to use a separate div to do, why I use the <span> tag to make a blank line automatically, why?

7, why do the static Web page in this browser can be normal display, change the other browser can not?

Is it a code error or a browser compatibility issue?

(not to be continued ...) )

Hope that through the practice of their own steps to find the answer, rather than remember the experience of others, not to practice. Other people's knowledge can be used for reference, but it is not their own.

I hardly stay up before, but now I begin to steal some time form the peaceful night.

Questions about the Css+div layout 2017-03-19

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.