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

  • Home
  • SEARCH
  • 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 9061523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:30:23+00:00 2026-06-16T15:30:23+00:00

I have 4 centered tables (header, navigation, content, footer): <table id=header width=760 align=center>…</table> <table

  • 0

I have 4 centered tables (header, navigation, content, footer):

<table id="header" width="760" align="center">...</table>
<table id="navigation" width="760" align="center">...</table>

<table width="760" height="28" border="0" align="center" id="content">
    ...
</table>

<table id="footer" width="760" align="center">...</table>

I have removed some code from above example (borders, cellpadding etc.)
This makes tables to be in the center of the screen and with width=760.
In this case left and right margins of the screen contains some white spaces.
I need to put 4 images in those white spaces (two images on the left side of the table; images are to be positioned vertically; and two images on the right side – also positioned one on top of the other image).

So, probably I need to create two divs (Left div and Right div).
And I need those Divs to be aligned to the left side of all tables and to the right side of all tables.

LEFT DIV|ALL TABLES| RIGHT DIV

Images have max allowed width, but they do not have any predefined height.

I do not know how to do this…
I usually do backend, so I do not need CSS much. But not in this project… Usually I do not use Tables but Divs for layout and then I would use position=”relative” for Left and Right Divs, but it seems that it would not work with tables.

Can you give me some clues, please?

  • 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-16T15:30:24+00:00Added an answer on June 16, 2026 at 3:30 pm

    you got to wrapp your tables in a div. take a look at this jsfiddle. you can adjust the css for you own likings but that is how you do what you want.

    EDIT
    added clearfix instead of overflow: hidden;, and added two images on each side.
    EDIT2 here is how to make layout centred. jsfiddle

    <div id="wrapper clearfix">
      <div class="side-div">
        <img src="http://dummyimage.com/60x60/000/fff.png" alt="left" />
        <img src="http://dummyimage.com/60x60/000/fff.png" alt="left" />
      </div>
    
      <div class="main-content">
        tables
      </div>
    
      <div class="side-div">
        <img src="http://dummyimage.com/60x60/000/fff.png" alt="right" />
        <img src="http://dummyimage.com/60x60/000/fff.png" alt="right" />
      </div>
    </div>​
    
    
    
    .side-div {
        float: left;
        width: 60px;
        min-height: 100px;
        background-color: #ccc;
        padding: 0 10px;
    }
    
    .main-content {
        float: left;
        min-height: 100px;
        background-color: #ccddff;
        padding: 0 10px;
    }
    
    /*clearfix instead of overflow: hidden;*/
    
    .clearfix:after {
        clear: both;
        content: ".";
        display: block;
        height: 0;
        visibility: hidden;
    }
    
    .clearfix {
        display: inline-block;
    }
    
    .clearfix {
        display: block;
    }
    

    ​

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

Sidebar

Related Questions

I have the following code: CSS #main { width:100%; height:120px; border:solid 1px #efefef; }
I need to center align images (variable width and height) inside block level elements
I have the following rows in a css file body {text-align: center;} table {margin:
I want to have one table header be centered over two table columns side
I have an oveflowing table and I cannot center the heading following the width
The <center>Text</center> tag to have text centered horizontally is depreciated, so I tried <p
I have made this centered navigation bar, and I wanted to add a :active
I have a website with a centered fixed width div (the div is centered
i have a HTML page with a centered div of 780px width and 8400px
I have a table where the content of one column is often narrower than

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.