HTML implements a header with a slash

Source: Internet
Author: User

Table is often used in HTML and JSP, but how do you implement a slash in the Header table in table? A lot of information from the Internet, can be implemented in several ways, now provides a simple way to operate, and do not consider the problem of resolution,

Here's how:

The method is not purely to draw a slash in the table, but to achieve the contrast between the two colors, the realization of a diagonal sense:

<!DOCTYPE HTML><HTMLLang= "en"> <Head>  <MetaCharSet= "UTF-8">  <Metaname= "Generator"content= "editplus®">  <Metaname= "Author"content="">  <Metaname= "Keywords"content="">  <Metaname= "Description"content="">  <title>Document</title>  <style>    /*Diagonal Money Rectangle width of 50, height of 100, respectively, corresponding to Border-top and Border-left two properties to set*/. D1{Border-top:100px Threedlightshadow Solid;Border-left:120px Windowframe Solid;width:0;Height:0;position:relative;Color:#FFF}span{Display:Block;width:40px}. S1{position:Absolute;Top:-70px; Left:-44px;Color:Black;}. S2{position:Absolute;Bottom:8px; Right:55px}</style> </Head> <Body>  <Divclass= "D1">    <spanclass= "S1">Professional</span>    <spanclass= "S2">Project</span></Div> </Body></HTML>
Reference: http://share.iteye.com/blog/1670054

HTML implements a header with a slash

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.