html - CSS - Styling table -
i need make this:
i not 100% sure how make decide table can usefull, terrible scatter did, try looks like:
<table> <tr> <td rowspan="2" class="img-position"><a href="#"><img src="images/foto.png"></a></td> <td class="topic-name"><a href="#">název topicu nebo článku </a></td> <td class="date">28.8.2014 / 19:30</td> </tr> </table>
my css:
#sub-content .left{ width: 326px; height: 145px; display: inline-block; float:left; } #sub-content img{ width: 122px; height: 121px; display: inline-block; margin-top: 0px; margin-left: 5px; } #sub-content .topic-name{ width: 150px; height: 14px; line-height 14px; margin-bottom: 130px; margin-left: 10px; display: inline-block; vertical-align: top; text-decoration: underline; font-weight: 14px; } #sub-content table{ width:326px; height:145px; } #sub-content tr{ margin: 10px 0px 0px 0px; padding: 0px; height: 36px; } #sub-content .date{ } #sub-content .img-position{ margin: 0px; padding: 0px; width: 122px; height: 121px; display: inline-block; }
and cant move position style atleast 1 of part , copy 3 times. hope find here can me fix it.
live preview can found on: http://funedit.com/andurit/try1/
thanks reading post
first of recommend read : why not use tables layout in html? how should not create layout.
i prepared basic jsfiddle example given stuff make catch on things faster. check out. example layout
i changed given layout divs , spans , more or less this:
<div class='article-container'> <div class='article'> <div class="img-position"> <a href="#"><img src="http://funedit.com/andurit/try1/images/foto.png"/></a> </div> <span class="topic-name"><a href="#">název topicu nebo článku </a></span> <span class="date">28.8.2014 / 19:30</span> </div> . . . </div>
Comments
Post a Comment