New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
ChipSplit.com Affiliate Programs
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default Tables with vertical centered text

    I'm trying to make a table with the pokerrooms name in a cell to the left and a big "download" button to the right. I would like to make the text and possibly also the image vertically centered, so it looks like this picture.



    Until now I have been sidestepping the problem, but it is starting to become a massive annoyance, and I just can't figure out how to do it.
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    USA
    Posts
    1,269
    Feedback Score
    1 (100%)

    Default

    You might have to tweak the font sizes of the text but this is a classic example of how to do what you're asking for. Keep in mind that different browsers, different operating systems, and different screen layouts/resolutions all affect the appearance of tables and Web pages. Today a single page may be viewed through dozens of combinations of browser/OS/resolution.

    < center >< table width="100%" border="1" cellpadding="2" cellspacing="2" >
    < tr >< td width="50%" valign="middle" align="center" >
    some text
    < /td >< td width="50%" valign="middle" align="center" >
    [SOME IMAGE]
    < /td >< /tr >
    < tr >< td width="50%" valign="middle" align="center" >
    some text
    < /td >< td width="50%" valign="middle" align="center" >
    [SOME IMAGE]
    < /td >< /tr >
    < tr >< td width="50%" valign="middle" align="center" >
    some text
    < /td >< td width="50%" valign="middle" align="center" >
    [SOME IMAGE]
    < /td >< /tr >
    < /table >< /center >

    HM. I guess the "code" VBCode doesn't work on this board.
    Free advice and opinions are provided without any warranties or guarantees. I cannot do anything about the facts.

  3. #3
    Member
    My Status
     

    Add as a friend
    Join Date
    Dec 2008
    Location
    .
    Posts
    42
    Feedback Score
    2 (100%)

    Default

    Or you can enclose "Pokerstars", "Party Poker" in <p> tags and adding margin-top:10px; since the Download image size remains static.

    This is a better way since I reckon xhtml strict doesn't allow align elements

  4. #4
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default

    Thanks a lot to both of you. Having an example that I knew were right really helped.

    I ended up doing this in XHTML:

    <table>
    <tbody>
    <tr>
    <td style="vertical-align:middle;>some text</td>
    <td><img src="http://www.imagesource.com/image.png" alt="Download" style="vertical-align:middle;"/></td>
    </tr>
    </tbody>
    </table>

    I pray that nothing bad happens when I do browser testing with it tomorrow.
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Need Graphics & Coding for 2 Tables
    By TheDonk in forum Graphics
    Replies: 0
    Last Post: 05-07-2010, 09:16 PM
  2. tables and review sections
    By shane in forum Wordpress - Web Design - Coding - Technical
    Replies: 4
    Last Post: 01-24-2010, 06:53 PM
  3. Ladies Tournaments / Tables
    By Planet Mark in forum General Poker Affiliate Forum
    Replies: 3
    Last Post: 07-07-2009, 03:41 AM
  4. Are bonus codes as popular in the casino vertical as they are in poker?
    By TheShortStack in forum Casino Affiliate Forum
    Replies: 5
    Last Post: 04-07-2009, 01:30 PM
  5. ePoker tables
    By tiburon in forum PAL Coffee Shop
    Replies: 2
    Last Post: 11-14-2008, 10:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant