Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. restrict data by lines...

restrict data by lines...

Scheduled Pinned Locked Moved ASP.NET
htmldatabasedesignhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pranavcool
    wrote on last edited by
    #1

    Hi, I have span tag in HTML. I am retrieving some data from the database and showing it in the span tag. For e.g

    this is code project this is code project this is code project
    this is code project this is code project this is code project
    this is code project this is code project this is code project
    this is code project this is code project this is code project
    this is code project this is code project this is code pro ...

    Now currently i am restricting the data by number of characters. Now i want to restrict the data by number of lines instead of number of characters. I want to restrict the data by 5 lines only. If the data is more it will show an ellipse at the end of the fifth line and it would be a hyperlink which will navigate to another page showing the whole data. Currently The functionality is working fine by number of characters. But the problem is that if the data contains some bold of capital letters it will show the the data in 6 lines instead of 5 lines and in turn it will spoil the design part. Now my concern is to restrict the data by number of lines instead of number of characters. No matter however may be the data it will restrict the data by 5 lines only and i want to do it by using span tag or div tag or by using HTML table only. So how it is possible using the span, div or HTML tag. Please provide some solutions for the same or provide some useful link containing the following or some useful code to achieve this. Regards,

    Pranav Dave

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups