1、The text-decoration property is used to set or remove decorations from text.The text-decoration property is mostly used to remove underlines from links for design purposes:a text-decoration:none;h1 text-decoration:overline;h2 text-decoration:line-through;h3 text-decoration:underline;h4 text-decorati
2、on:blink;Styling lists (useful)table, th, tdborder: 1px solid black;Notice that the table in the example above has double borders. This is because both the table and the th/td elements have separate borders.To display a single border for the table, use the border-collapse property.To control the spa
3、ce between the border and content in a table, use the padding property on td and th elements:tdpadding:15px;Table ColorThe example below specifies the color of the borders, and the text and background color of th elements:Example table, td, thborder:1px solid green;thbackground-color:green;color:whi
4、te;CSS border stylePaddingThe padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element.lidisplay:inline;Fixed PositioningAn element with fixed position is positioned relative to the browser window.It will not move eve
5、n if the window is scrolled:p.pos_fixedposition:fixed;top:30px;right:5px;With absolute positioning, an element can be placed anywhere on a page. The heading below is placed 100px from the left of the page and 150px from the top of the page.Overlapping ElementsWhen elements are positioned outside the
6、 normal flow, they can overlap other elements.The z-index property specifies the stack order of an element (which element should be placed in front of, or behind, the others).An element can have a positive or negative stack order:imgposition:absolute;left:0px;top:0px;z-index:-1;CSS Float (important)