CSS example (3): Use the background to generate all columns

Source: Internet
Author: User

The use of all backgrounds to create columns on the Web page is very clever and kind, like the previous desktop program. Using three images, all the columns of the entire web page are generated.

Titletag.png

HTML code

  1. <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <HTML xmlns = "http://www.w3.org/1999/xhtml">
  3. <Title> entertainment channel-Sohu </title>
  4. <Style type = "text/CSS">
  5. A {color: #333; text-Decoration: none; font-size: 12px}
  6. A: hover {color: # dc0000; text-Decoration: underline ;}
  7. . Column,. column_btm {width: 265px ;}
  8. . Column H2 {Background: url(titletag.png) 0-60px; color: # FFF; Height: 24px; line-Height: 24px; font-size: 12px; font-weight: weigth; margin: 0px; padding: 0 0 0 12px ;}
  9. . Column {
  10. Background: url(bgx.gif) Repeat-x 0-85px; Height: 25px; line-Height: 25px; Vertical-align: middle; display: block; margin: 0 1em;
  11. }
  12. . Bgno {Background: none ;}
  13. . Column_btm {Background: url(titletag.png) 0-259px; Height: 5px; font-size: 1px; clear: Both ;}
  14. . Column {Background: url(cutbg.gif)-2585px 0 ;}
  15. </Style>
  16. </Head>
  17. <Body>
  18. <Div class = "column">
  19. <H2> <span> Sohu video </span> </H2>
  20. <A href = "http://blog.csdn.net/wallimn" Title = "Welcome to my blog" target = "_ blank"> Zhejiang discovers that the Grand Palace of the bottom of the lake is arranged by dipper </a>
  21. <A href = "http://blog.csdn.net/wallimn" Title = "Welcome to my blog" target = "_ blank"> disturbing speech students who claim to be acquitted on bail </a>
  22. <A class = "bgno" href = "http://blog.csdn.net/wallimn" target = "_ blank"> Liu Qian's strange magic shadow looks for playing cards as a ghost. </a>
  23. <Div class = "column_btm"> </div>
  24. </Body>
  25. </Html>
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.