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 6540625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:00:01+00:00 2026-05-25T11:00:01+00:00

I have a question regarding the styling and positioning of a table. I have

  • 0

I have a question regarding the styling and positioning of a table. I have created a 2 columned table with a number of rows and I want it to “fit” into my background image.
Because this is rather vague explanation of the situation I’ve included this fiddle.

In this fiddle you should see the table + the background image and I hope it makes sense that the table items should go in between the lines that are part of the particular background.

I’ve tried styling the td element with attributes like

  td {
  height: 20% ; 
  }

or

 td {
 cellpadding: ... ;
 cellspacing: ... ;
 }

(Don’t know if these are even CSS attributes that I can use here)

but I just can not seem to get the table elements in the right place.
Anyone who could help me out or someone who could offer me some good information to do it on my own?

  • 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-05-25T11:00:02+00:00Added an answer on May 25, 2026 at 11:00 am

    Don’t use tables for layouts. In this case it makes sense to use a list:

    <div class="news"> <!--News-->
        <ul>
            <li><label>Friday 9-September-2011</label><a href="/news/items/090911_item1.html">item 1</a></li>
            <li><label>Friday 9-September-2011</label><a href="/news/items/090911_item2.html">item 2</a></li>
            <li><label>Friday 9-September-2011</label><a href="/news/items/090911_item3.html">item 3</a></li>                        
        </ul>
    
    </div> <!-- / News -->
    

    CSS:

    .news ul {
        float:right;
        background-image: url('http://img64.imageshack.us/img64/3368/newsbg.png');
        width: 417px ;
        height: 186px ;
        background-repeat: no-repeat;
        padding-top:55px;
    }
    
    .news li {    
        height:38px; 
    }
    
    .news label {
        display:inline-block;
        width:230px;
    }
    
    .news a {
        display:inline-block;
        width:160px;
        text-align:right;
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question regarding the SQLAlchemy. How can I add into my mapped class
I have a question regarding class design. I want to have a class that
Hi I have question regarding cin and buffer. I want to make a simple
I have question regarding the use of function parameters. In the past I have
I have question regarding disabling browser caching. I have already found few solutions, and
i have a question regarding the AsyncTask class in android, and why it is
I have a question regarding applying a RTRIM on a ASP:Hyperlink statement. The code
I have a question regarding the proper way to modify a php DateTime object.
I have a question regarding the best practise of handling formated text when using
I have a question regarding a race condition scenario. The question: Consider the following

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.