Shirish Shirish - 1 year ago 59
CSS Question

display image and text using division tag rowspan in html

I want to achieve the below format which i could easily do it using TD tags.

But if i have to make use of only div tags(rowspan) how is that possible.
Below is the format.
enter image description here

Answer Source

Not sure if this is what you're looking for?

.row {
   display: block;
   border-top: 1px solid #efefef;
.row > img.img {
  width: 100px;
  display: inline;
  float: left;
  margin: 10px 10px 5px 0;
.row > a.title {
  margin-top: 10px;
  font-family: tahoma;
  font-size: 18px;
  color: #338899;
  text-decoration: none;
  display: inline-block;
.row > span.description {
  color: #555555;
  display: inline-block;
<div class="row">
  <img src="" class="img" />
  <a href="#something" class="title">Taylor swift</a>
  <span class="description">This is a singer</span>