HTML code:
<Divclass= "Content_con"> <P><imgsrc= "Images/land_main05.png"alt=""></P> <Divclass= "Con"> <spanclass= "Item">Project name</span> <spanclass= "Item_con">Project description Project Description Project Description Project Description Project Description Project Description Project Description Description Project Description Project Description Project Description Project Description Project description Project Description </span> <spanclass= "Item_stats">Status: Success</span> <spanclass= "Item_stats cur">Process:<ahref="#">1 article</a></span> </Div> <Divclass= "Con_right"> <spanclass= "Gongxian">Contribution</span> <P>Payment of 5 Yuan<span>2015.9.9</span></P> <P>Payment of 3 Yuan<span>2015.4.6</span></P> </Div> </Div>
CSS style:
. content_con{margin:0px 20px; padding:10px 0; border-bottom:1px solid #e7e7e7; Float:left;}. content_con>p{Display:inline-block; Float:left;}. content_con>p>img{Vertical-align:text-top;}. con{Display:inline-block; Vertical-align:text-top; Float:left; margin:0 20px;}. con>span{Display:block; width:390px;}. con>.item{font-size:16px; font-family: "Blackbody"; font-weight:700; margin-bottom:20px;}. con>.item_con{font-size:14px; font-family: "Blackbody"; margin-bottom:20px;}. con>.item_stats{font-size:12px; font-family: "Blackbody";}. cur>a{Cursor:pointer; Color: #388ebb; Text-decoration:none;}. con_right{Float:left; width:198px; height:150px; Background-color: #f7f7f7;}. Con_right. gongxian{Text-align:center; Display:inline-block; width:198px; line-height:40px; font-size:16px; font-family: "Blackbody"; Font-weight:bold;}. con_right>p{padding:10px 0px; margin:0 20px; Border-bottom:1px solid #e7e7e7; font-size:14px; font-family: "Blackbody";}. con_right>p>span{Float:right;}
A second
Html:
<Divclass= "Footer"> <Divclass= "Footer_con"> <imgsrc= "Images/land_footer01.png"alt=""> <Div> <P>Hotline: 400-000-6060 official: ABCDEFG Weibo: ABCDEFG</P> <P>Links: China senior industry Big Data Network | China senior industry Big Data Network | China senior industry Big Data Network | China senior industry Big Data Network | China senior industry Big Data Network</P> <P>All rights reserved: Tianjin for you to achieve the dream of network company Tianjin ICP Record No. No. 00000000</P> </Div> </Div></Div>
Css:
. footer{ border-top:10px solid #ccc; border-bottom:1px solid #e7e7e7; height:135px;}. Footer. footer_con{ width:1200px; margin:0 auto; }. footer_con>img{ Vertical-align:middle; margin:30px 0;}. footer_con>div{ Display:inline-block; Vertical-align:middle; Overflow:auto; font-size:14px; font-family: "Blackbody"; Color: #e7e7e7; margin-left:40px;}
Understand:
How to align pictures with text