Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Simple HTML Question

  • 16-07-2008 04:51AM
    #1
    Closed Accounts Posts: 1


    Hi.

    In a table data I have four lines of text each line separated by a <br>
    The text are different font sizes. The issue I am having is that the lines have space between them above and below. How do I get the lines of text closer together using simple html?

    text line 1
    |
    (this space)
    |
    text line 2

    Regards


Comments

  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    I don't follow, when you br, it should just go onto the next line. Is it leaving two lines space?


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Post your HTML and we'll have a much better idea of what's wrong.


  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    Assuming your text is in a <p> tag ?

    you could define a reduced line height for that <p> tag in your css

    p { line-height: 0.6em;}

    for example ... only you'll know what you want to do with it.


  • Registered Users, Registered Users 2 Posts: 15,079 ✭✭✭✭Malice


    You might also get some joy if you set the cellpadding and cellspacing values in your opening <table> tag e.g. to set them both to zero:
    <table border="0" cellpadding="0" cellspacing="0">
    


  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    malice_ wrote: »
    You might also get some joy if you set the cellpadding and cellspacing values in your opening <table> tag e.g. to set them both to zero:
    <table border="0" cellpadding="0" cellspacing="0">
    

    Damn I originally completely missed the table data .. oops :D (ignore previous post)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 15,079 ✭✭✭✭Malice


    Well the text could be wrapped in <p> tags inside tables cells. We won't know until the OP gets back to us.

    Welcome to Boards by the way jalsahappy! :cool:


Advertisement