HTML&&CSS Basic Knowledge Notes

Source: Internet
Author: User

Div has a Class, Style, title, ID and other attributes.

1.margin Empty out Edge

Margin: Up and down (in a clockwise order, symmetrical in the absence of a certain direction)

2.border Border (Three elements: pixel shape color)

BORDER-TOP:1PX solid black Upper Box

border-bottom:1px Solid #6699cc Bottom Box

border-left:1px Solid #6699cc left box

border-right:1px Solid #6699cc Right box

BORDER:1PX Solid #6699cc Four borders

3.background background

Text-decoration:none; " >black background Color

Background-image:url (image/bg.gif) Background image

background-attachment:fixed Fixed Background

Background-repeat:repeat repeating arrangement-page presets

Background-repeat:no-repeat non-repeating arrangement

Background-repeat:repeat-x in x-axis repeating arrangement

Background-repeat:repeat-y repeats in y-axis

background-position:90% 90% background image x and Y axis position

Over-flow:hidden, let the excess parts be hidden.

4. Float and Clear float

Float:left; Left float

Clear:left; Clear the position left floating

HTML&&CSS Basic Knowledge Notes

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.