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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:00:09+00:00 2026-05-22T20:00:09+00:00

I have a CSS layout as in this picture. I’d like to achieve the

  • 0

I have a CSS layout as in this picture.

I’d like to achieve the following behaviour

img should be always below left sidebar (as in the picture). Problem is that left sidebar contains a list of collapse/expand links and when you expand it the img overlaps with left sidebar and text is unreadable.

thank you

  • 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-22T20:00:10+00:00Added an answer on May 22, 2026 at 8:00 pm

    HTML

    <div id="container">
        <div id="header">ert</div>
        <div id="left-sidebar">sdfsdfsdft
            <div id="img">IMG</div></div>
        <div id="right-sidebar">ert</div>
        <div id="content">aaert</div>
    </div>
    

    CSS:

    #container {
        width:100%;
        height:100%;
    }
    #header {
        background: url("img.png") red;
        background-repeat: no-repeat;
        background-position: right top; 
        height: 125px;
        margin:-10px -10px 0px -10px;
    }
    
    #left-sidebar {
        left: 0; 
        height:2000px;
        width:200px;
        background-color: yellow;
        position: fixed;
    }
    
    #right-sidebar {
        right:0;
        position: fixed;
        width:200px;
        height:2000px;
        background:green;
    }
    #img {
        border:1px solid;
        position: relative;
        top:5px;
        left:0px;
        margin-left:10px;
        width:175px;
        height:175px;
    }
    
    #content {
        margin-left:-10px;
        position: absolute;
        margin:auto;
        top:130px;
        left:208px;
        right:208px;
        border:1px solid;
        Height:100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following css layout (see pic below) and would like to know
I have a quite complicated HTML/CSS layout which I would like to convert to
Pulling my hair out with this simple CSS layout. I have a 2-column fixed
have this layout css: <?xml version=1.0 encoding=utf-8?> <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/ScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content android:scrollbars=vertical> <LinearLayout
I'm a newbie in CSS layout. I need to display content like this: +-------------------------------------+
Inside a liquid css layout i have this code: <div class=column> <div class=absolute_small_column><p>Absolut small
i have this simple layout css which provide 3 rows layout css code <style
I have some markup like so: <div class=account-picture> <img src=http://i.imgur.com/Mcr3l.png> </div> The div needs
Whats the best way to get this layout in CSS? imagine that I have
I have this simple css layout at the heart of my problem: The leftside

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.