Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Problem with alignment within the table

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #173419
    antematulic
    Participant

    Hello,

    I have a problem with alignment of the buttons within the cell.

    Just can’t get button columns on the right to be one pixel away from each other.

    You can see the example here on the right:
    http://binaryoptionstrading-review.com/

    Hope someone can help me with this.

    Thanks in advance!

    Ante

    #173423
    Paulie_D
    Member

    Is that example the actual site you are working on because it’s not clear.

    If NOT, we’d need to see what you have so far,ideally in a Codepen.io example.

    #173425
    antematulic
    Participant

    Hi Paulie,

    Yes, I’m working on it and it’s the site on the link.

    I want to get blue button column 1px vertically away from the green button column.

    Let me know if you need any more information to help me.

    Thanks!

    #173427
    Paulie_D
    Member

    I’m a little confused by the HTML structure..

    You seem to have divs in divs inside a span (spans aren’t supposed to hold block level elements) and finally a link inside all of that.

    All it really needs is for that particular cell to have a bg color and have the link inside it…I’m not sure what all the rest of the stuff is doing.

    #173432
    jurotek
    Participant
    table th, table td {
        padding: 1px;
        text-align: left;
        vertical-align:middle;
    }
    

    and add this

    td a{display:block;}
    
    #173433
    antematulic
    Participant

    Thanks jurotek. Now it works perfectly!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.