Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:16:00+00:00 2026-06-18T09:16:00+00:00

I’m a self taught coder and usually I can figure out problems for myself

  • 0

I’m a self taught coder and usually I can figure out problems for myself but this ones a stubborn one. I’m redesigning a website for my friend and I’ve successfully coded the mobile version of his site, but the desktop version is proving to be difficult.

The site is a database for a home bar, tracking; Drinkers, Shots, Units and Tabs. The index page is a leaderboard with Drinkers & Last Drink bought. My problem is positioning the Drinkers Ranks on the leaderboard to work across multiple web browsers.

It’s meant to look like this: (screenshot)

http://giblets-grave.co.uk/previews/1400x900_GG-desktop_design_final.jpg

The alternating background is something I’m willing to scrap if it makes echoing results easier.

I’ve tried using tables, divs, ul/li’s.. sample of what I used:

<table cellpadding="0" cellspacing="0">
<col width="85px" />
<col width="65px" />
<col width="65px" />
   <tr>
      <th colspan="3" align="left">Chris Clarkson</th>
   </tr>
   <tr>
      <td>
         <div class="crop round-five body-shadow" >
            <img src="uploads/1.jpg" class="" />
         </div>
      </td>
      <td>
         <ul><h2>382.73</h2><li>units</li></ul><br />
      </td>
      <td>
         <ul><h2>613</h2><li>shots</li></ul><br />
      </td>
   </tr>
</table>

but its just coming out as a big mess, can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:16:01+00:00Added an answer on June 18, 2026 at 9:16 am

    Definitely should be using table to do this in my opinion.

    As for displaying the alternating colors, you would want to apply a background color to the tr’s using nth-child() pseudo-class.

    JSFIDDLE: http://jsfiddle.net/XYh7f/

    HTML:

    <div class="container">
    <div class="leaderboard">
    <table id="main">
        <tr>
            <td>Leaderboard</td>
        </tr>
        <tr>
            <td>
                <table class="client">
                    <tr> 
                        <th colspan="3">Chris Clarkson</th>
                    </tr>
                    <tr>
                        <td>IMG</td>
                        <td>267.26 units</td>
                        <td>457 shots</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="client">
                    <tr> 
                        <th colspan="3">Chris Clarkson</th>
                    </tr>
                    <tr>
                        <td>IMG</td>
                        <td>267.26 units</td>
                        <td>457 shots</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    <div class="drinks">
        <table id="main-data">
            <tr>
                <td class="data-title"><h2>Last Drinks Served</h2></td>
            </tr>
            <tr>
                <table class="data">
                    <tr>
                        <td class="data-time">Time</td>
                        <td class="data-shots">Shots</td>
                        <td class="data-drink">Drink</td>
                        <td class="data-drinker">Drinker</td>
                        <td class="data-date">Date</td>
                    </tr>
                    <tr>
                        <td class="data-time">Time</td>
                        <td class="data-shots">Shots</td>
                        <td class="data-drink">Drink</td>
                        <td class="data-drinker">Drinker</td>
                        <td class="data-date">Date</td>
                    </tr>
                    <tr>
                        <td class="data-time">Time</td>
                        <td class="data-shots">Shots</td>
                        <td class="data-drink">Drink</td>
                        <td class="data-drinker">Drinker</td>
                        <td class="data-date">Date</td>
                    </tr>
                </table>
            </tr>
        </table>
    </div>
    </div><!-- END CONTAINER -->
    

    CSS:

    /* CONTAINER STYLES */
    .container {
        width: 960px;
    }
    
    .leaderboard {
        float: left;
    }
    
    .drinks { 
        float: left;
    }
    
    /* LEADER BOARD STYLES */
    table {
        color: #eee;
        width: 200px;
        background: none;
    }
    
    tr { background: none; }
    td { background: none; }
    
    #main {
        text-align: center;
    }
    
    #main tr:nth-child(odd) {
        background: #444;
    }
    
    #main tr:nth-child(even) {
        background: #555;
    }
    
    #main tr td .client tr {
        background: none;
    }
    
    /* LAST DRINKS SERVED STYLES */
    
    #main-data {
        width: 740px;
    }
    
    #main-data tr:nth-child(odd) {
        background: #444;
    }
    
    .data {
        width: 740px;
    }
    
    .data tr:nth-child(odd) {
        background: #222;
    }
    
    .data td {
        border-right: 1px solid #000;
    }
    
    .data tr:nth-child(even) {
        background: #333;
    }
    
    .data-title {
        padding: 0 0 0 60px;
    }
    
    .data-time {
        text-align: right;
        width: 120px;
    }
    
    .data-shots {
        text-align: right;
        width: 60px;
    }
    
    .data-drink {
        text-align: center;
        width: 240px;
    }
    
    .data-drinker {
        text-align: left;
        width: 200px;
    }
    
    .data-date {
        width: 140px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.