Horizontal alignment of text

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4     <MetaCharSet= "UTF-8">5     <title></title>6     <Linkrel= "stylesheet"href= "Reset.css"/>7     <style>8 . Hotsearch DD{9 float: Left;Ten Line-height:24px; One Margin-right:30px; A Overflow:Hidden; - text-align:Center; - width:4em; /*This value is to see the longest can display several words, such as x, or x em*/ the         } - . Hotsearch DD a{ - Display:Block; -         } + . W2{ - letter-spacing:2em; /*if y-word justification is required, then (x-y)/(y-1), this is (4-2)/(2-1) =2em*/ + Margin-right:-2em; /*Ibid .*/ A         } at . W3{ - letter-spacing:0.5em; /*if y-word justification is required, then (x-y)/(y-1), this is (4-3)/(3-1) =0.5em*/ - Margin-right:-0.5em; /*Ibid .*/ -         } -     </style> - </Head> in <Body> -     <DLclass= "Hotsearch"style= "width:300px;"> to         <DT>Popular Search</DT> +         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W3">Tv</a></DD> -         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W4">Sexy Pretty</a></DD> the         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W3">High heels</a></DD> *         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W2">Cell phone</a></DD> $         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W2">Snap To</a></DD>Panax Notoginseng         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W3">Jeans</a></DD> -         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W4">Xiaojiabiyu</a></DD> the         <DD><ahref="#"Target= "_blank"ref= "NAV"class= "W2">Home</a></DD> +     </DL> A </Body> the </HTML>

Horizontal alignment of text

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.