0

I am learning twitter bootstrap 3, I am creating articles website. Basically I store everything in mysql database.

My post have below structure

<div class="row">
<div class="col-md-12">
    <!-- Article Title -->
    <section><?php echo $row['article_title']; ?></section>
    <!-- Article Post -->
    <section><?php echo $row['article_details']; ?></section>
</div>
</div>

So here I have article post with lots of text. What I am trying to achieve is to display another div in article post vertically aligned in middle of the post.

So e.g I have article post with 50 lines then I need to display div after 25 line.

Just checking is it possible with bootstrap?

Thank you

Mukul Kant
  • 7,074
  • 5
  • 38
  • 53
  • You could do a `for` loop using JavaScript that dynamically adds up all the rows, divides it by 2 (half) and then inject a `
    ` `.after()` the row.
    – Alexander Dixon Aug 03 '15 at 02:32
  • Check this out, it might help you.. http://stackoverflow.com/questions/3922739/limit-text-length-to-n-lines-using-css – xtru1990 Aug 03 '15 at 03:53

0 Answers0