2014-02-25 30 views
0

HTML:事业部对准不想上班

<ul class="posts"> 
    <li> 
     <a href=""> 
     <img src="https://cdn2.iconfinder.com/data/icons/interface-part-3/32/square-stack-small-48.png" alt=""> 
     </a> 
     <div class="entry"> 
     <a href="">Nam ultricies dolor eu velit varius scelerisque.</a> 
     <span class="date">January 1st, 2013</span> 
     </div> 
     <div class="floatlimit"></div> 
    </li>  
</ul> 

CSS:

.blog-container li,ol,ul { 
    list-style: none; 
    padding: 0; 
    margin-left: 0; 
} 
. 
.blog-container .ui-tabs .ui-tabs-panel { 
     position: relative; 
     display: block; 
     border: none; 
    } 

    .posts li { 
    margin: 0; 
    padding: 0; 
     margin-bottom: 6px; 
     padding-bottom: 8px; 
     border-bottom: 2px solid rgba(0,0,0,0);  
     display:block; 
    } 

.posts li:last-child { 
     margin: 0; 
    } 

    .posts img {  
     margin: 0px 0px 0 0; 
     width: 50px; 
     height: 50px; 
     display: inline-block; 
    } 


    .entry .date { 
     display: block; 
     color: #808080; 
    } 

,但它没有显示在左边的IMG,和右边的标题文字。这是在一个容器这里是什么样子:

enter image description here

什么想法?谢谢你的帮助!

http://jsfiddle.net/9fcN5/

回答

2

只是一个小变化

.posts img {  
    margin: 0px 0px 0 0; 
    width: 50px; 
    height: 50px; 
    display: inline-block; 
    float:left; 
} 

Working Fiddle

+0

哈哈打我给它8) – BuildingJarl

+0

哈哈哈由一卷几swwconds :) – Jatin

+0

作品现在,谢谢。但现在它显示我的分隔符都搞砸了。 http://screencloud.net/img/screenshots/89f8450a978bee7805e5ac1ba1b07aed.png http://jsfiddle.net/9fcN5/3/ – TrippedStackers

1

这是你想要的?

.posts img {  
      margin: 0px 0px 0 0; 
      width: 50px; 
      height: 50px; 
      float: left; 
     }