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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:33:04+00:00 2026-06-01T11:33:04+00:00

I used to have tables before to display the content and people here advised

  • 0

I used to have tables before to display the content and people here advised me to remove tables and use CSS floating for better styling.

I am new to everything. My Problem is I have content and side bar. I want it to be displayed like

content           | Sidebar

But Now with the current styling I have It is displaying like

content
|
Sidebar

Can you please correct me.

       <style type="text/css">

   .csscontent
    {

          margin-right: 500px;



    }

   .csssidebar
    {
        float: right;
        width: 500px;
        background: darkgreen;
       /*  height:500px; */



    }


</style>

If I add

  <div class="Content">
  all the content
 <div class="sidebar">
 <Image>
 </div>

If I add sidebar inside the content the image is getting displayed below the content leaving right-margin of 500px.

If I add sidebar outside of the content the image is getting displayed below the content.

  <div class="Content">
  all the content
  </div>

   <div class="sidebar">
   <Image>
  </div>

I want both content and side bar to be displayed side by side

  • 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-01T11:33:05+00:00Added an answer on June 1, 2026 at 11:33 am

    In the HTML file you first need to set the floating elements, followed by the none floating ones. Because the floating element is going to block the entire “level” of the website and the floating elements are placed below.

    So your html should look like this:

       <div class="sidebar">
       <Image>
      </div>
      <div class="Content">
      all the content
      </div>
    

    Other then that it looks good.

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

Sidebar

Related Questions

I have a large database that were used to archive tables before implementing structural
I have two tables which are used to store details of different types of
I have three tables being used for this problem: songs, blacklist, and whitelist. The
I will have multiple tables used by different projects on the same mySql server.
I have used a join query for retrieving value from two tables one is
I have used SQLIte3 to create databases and then added tables to it. Then
I have not really used JavaScript before but I am trying to validate form
I have never used triggers before in SQL server and I have looked around
Okay, so I have never used reports in MS Access before so I am
I am taking some code that I have used for a nested listview before

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.