Examples of css article content formatting

Source: Internet
Author: User
Tags php tutorial
The code is as follows: Copy code

<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.111cn.net/1999/xhtml">
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312"/>
<Title> css tutorial document content typographical example </title>
<Style>
. Artbody h2 {font-size: 14px; height: 10px; margin: 0px auto; padding: 10px 0px; text-align: center ;}
. Artbody. info {height: 30px; text-align: center; color: #666 ;}
. Artbody. artcontent {text-indent: 20px; font-size: 14px; line-height: 24px; padding: 10px ;}

</Style>
</Head>

<Body>
<Table width = "98%" border = "0" class = "artbody">
<Tr>
<Td>

</Tr>
<Tr>
<Td>
<Div class = "info">
<Small> Time: </small> {dede: field. pubdate function = "mydate ('Y-m-d h: I ', @ me)"/} <small> Source: </small> {dede: field. source/} <small> Author: </small> {dede: field. writer/} <small> Click: </small> <script src = "{dede: field name = 'php tutorial url'/}/count. php? View = yes & aid = {dede: field name = 'id'/} & mid = {dede: field name = 'mid '/} "type = 'text/webpage effect' language =" javascript "> </script> Times </div>
<Div class = "artcontent">
               
              
{Dede: field. body/} (responsible editor: {dede: adminname /})
</Div>
</Td>
</Tr>
</Table>
</Body>
</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.