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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:36:32+00:00 2026-05-30T22:36:32+00:00

Okay guys I have a question about positioning tables within DIV’s using CSS. I

  • 0

Okay guys I have a question about positioning tables within DIV’s using CSS.

I have code as follows:

css:

#content{
    float:right;
    padding-top:10px;
    width:450px;
    line-height: 18px;
    font-size:13px;
    text-align:left;
}

#content .reviewTable{
    width:20px;
}
#news{
    line-height: 18px;
    width:150px;
}


#news h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#news p {
    margin: 0;
    padding-bottom: 20px;
    padding-right:10px;
    font-size:13px;
}

HTML:

<div id="content">
    <div class="reviewTable">
    <table>
    <td></td>
    </table>
</div>
</div>

My table sits far away from my news DIV there is some padding around the news DIV however I have removed that and it didn’t make any difference to the positioning of the table. I have been looking at other Stack Overflow posts but can’t seem to find what I am looking for. I have tried absolute and relative positioning in my CSS and also width and none of these work not the table where they have worked on other elements such as plain text.

I have also tried the table as <table class="reviewTable"></table>

My question is does the code need to be in a certain format in order to allow the positioning of tables in a DIV which already has CSS formatting applied to it?

Just looking for a hint in the right direction guys if you could help me out or anyone else has a similar problem as this it would be great.

Thanks

  • 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-30T22:36:33+00:00Added an answer on May 30, 2026 at 10:36 pm

    The reason your table is flowing outside is that you are floating it right. Then you have the width set to be too small for the review area so it makes it go outside. Change the width of the #content to 600px and you’ll see what I mean.

    For the way you have it setup you need to set the #content to 610px. Set the #page-container to overflow:hidden to prevent anything showing if its outside your container. And take off the width on .reviewTable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay guys, I have read through all the other posts and question on jQuery
Okay, I have a question guys. I want to remote upload (copy an image
Sorry guys, it's another CSS height 100% (sortof) question... I have a layout like
Okay, I'm reading about Linux kernel development and there are some code snippets using
Okay, some Guys will know what i mean and edit my Question but they
Okay to keep it short: I have some different websites with tables containing information
Okay, since none of you guys like my question, let me rephrase it. User
Okay guys, maybe you can help me out with this one. I'm about ready
Hello guys i have a problem streaming PDF files with php, i'm using this
Okay guys I have a database I have been working on for days now.

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.