Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Simple HTML question

  • 13-07-2009 1:36am
    #1
    Registered Users, Registered Users 2 Posts: 3,772 ✭✭✭


    I'm not in any way proficient in HTML. I have very little knowledge of it.

    Basically, I want to centre some text.

    They happen to be football results.

    Basically...

    Team A v Team B
    Team C v Team D

    I would like to have the lines of text centred to the scoreline. For example... below is the undesirable result I am getting.
    Manchester United 1-1 Chelsea
    Wigan 1-1 West Bromwich Albion
    Liverpool 1-1 West Ham United
    What I would like to achieve is that all the score lines line up in the centre, like this...
    Manchester United 1-1 Chelsea
                Wigan 1-1 West Bromwich Albion
            Liverpool 1-1 West Ham United
    


    Any suggestions? I just make a table but it isn't suited to what I'm doing.


Comments

  • Moderators, Technology & Internet Moderators Posts: 11,017 Mod ✭✭✭✭yoyo


    I'm not in any way proficient in HTML. I have very little knowledge of it.

    Basically, I want to centre some text.

    They happen to be football results.

    Basically...

    Team A v Team B
    Team C v Team D

    I would like to have the lines of text centred to the scoreline. For example... below is the undesirable result I am getting.
    Manchester United 1-1 Chelsea
    Wigan 1-1 West Bromwich Albion
    Liverpool 1-1 West Ham United
    What I would like to achieve is that all the score lines line up in the centre, like this...
    Manchester United 1-1 Chelsea
                Wigan 1-1 West Bromwich Albion
            Liverpool 1-1 West Ham United
    


    Any suggestions? I just make a table but it isn't suited to what I'm doing.
    <table align="center" border="0">
    <tr><td align="right">Manchester United</td> <td>1-1</td> <td>Chelsea</td></tr>
    <tr>
          <td align="right">      Wigan</td> <td> 1-1</td> <td>West Bromwich Albion</td></tr>
    <tr>
          <td align="right">  Liverpool</td> <td>1-1</td> <td>West Ham United</td></tr>
    </table>
    

    Using tables it possibly the best way

    Nick


  • Registered Users, Registered Users 2 Posts: 3,772 ✭✭✭civis_liberalis


    Thanks Nick.

    You see, the problem I had with using a tables was that it inexplicably moves itself down the page. I would much prefer that you wouldn't have to scroll down.

    Whenever I enter any plain text or images, basically anything else at all... I don't have this problem. It sits exactly where I want it to, just below the heading.

    I have no idea why this occurs...?


  • Registered Users, Registered Users 2 Posts: 3,772 ✭✭✭civis_liberalis


    I figured out why the blog page I am writing the html for pushes the table down the page.

    If you delete all the empty spaces within the code and have it in one big mess of a line of code, it sits where you want it to be... Go figure!


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Could be that the blog software does an "nl2br".


  • Registered Users, Registered Users 2 Posts: 3,772 ✭✭✭civis_liberalis


    The workaround I have for it now, while a bit clumsy, does the job better. Thanks for the suggestions.


  • Advertisement
Advertisement