CSS for three-column picture, such as wide-spaced layout

Source: Internet
Author: User

Each picture block left floats, width 30%, left margin 2.5%:
100%= (2.5%+30%) + (2.5%+30%) + (2.5%+30%) +2.5%

   
 
  
 
 Three-column picture and other wide layout             

The simple and practical percentage layout is also suitable for mobile WAP page layouts:

min-width:320px; max-width:420px; width:100%; Overflow-x: Hidden; margin:0 Auto;

The minimum width is 320px, the maximum width is 420px, the width is automatically adjusted between 320px and 420px, and looks fine.
Only use the width attribute percentage value in the label, such as Width= "40%", without setting the Height property, so that the picture can be scaled by its original scale.
The blocks inside the container can also be arranged in percentages, such as 60% on the left and 40% on the right.

  • Related Article

    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.