To assemble the Web page div Layout-web Standard website design experience _css/html

Source: Internet
Author: User
There is such an idea, do not know is feasible

Example:
The left column in the layout, its properties are: {left, width, background color, font, etc.}
If each attribute is made into a standard piece, then assembled to use
class= "float width height background font padding ..." To complete page layout styles with reference to multiple class standard parts
Define the standard parts as needed first as follows:

Float Standard
. L{float:left}
. R{float:right}
. Cl{clear:left}
...

Width standard
. w200{width:200px}
. w300{width:300px}
...

Background Standard Parts
. red{background:red}
. Black{background: #000}
. White{background: #fff}
...
Reference as needed
class= "L w200 Red" [Left, width 200, background red]
class= "R w200 White" [Right, width 200, black background]

I now write my own code, a maximum of 2 classes to define a layout style, it feels very convenient

  • 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.