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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:30:35+00:00 2026-05-27T01:30:35+00:00

In the code below I added input button to the leftPane div. Here I

  • 0

In the code below I added input button to the leftPane div.
Here I have two div’s/ Left 80% and right 20%.
Now I want to position this button to be vertically in the middle and on the right side in the leftPane.
But it when I set ‘right:0;’ it goes to the right side of the browser, and not of the right side of the leftPane.
Why?

<body style="overflow:hidden;">

        <div  style="background: #ff0000; position: fixed; top:0; left:0; width:100%; height:100%;">
            <div id="leftPage" style="width:80%; height:100%;background:#00ff00; float:left;text-align:center;">
                <img src="http://fc07.deviantart.net/fs45/f/2009/106/c/1/HD_Nature_Wallpapers_by_CurtiXs.jpg" alt="test" style="max-width:90%; max-height:90%;"/>
                <input type="submit" value="Next" style="width:40px;height:70px;position:absolute;top:50%;right:0;"/>
            </div>
            <div id="rightPane" style="width:20%; height:100%;background:#0000ff; float:left;">
                <div id="commentBox" style="background:#dddddd; width:90%; height: 50px;">
                    <input type="text" placeholder="Enter here..." />
                </div>
            </div>
        </div>
</body>
  • 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-27T01:30:36+00:00Added an answer on May 27, 2026 at 1:30 am

    You need to have the parent <div style="position: relative;"> otherwise your absolute positioning is defaulting to your <body>

    To clarify, set #leftPage to relative positioning.

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

Sidebar

Related Questions

The javascript code is attached below. Two push pins are added to a Bing
I have the below code. I am able to access the input and radio
I added the solution to the code below. The code at the bottom is
e.g. The code below throws a ClassCastException when the second Object is added to
Int he below code a textarea is added 6 times and initially the textarea
Code below is working well as long as I have class ClassSameAssembly in same
In my below given code, the second DIV section is not executing. The PHP
I have a website where i want to implement search functionality.So i added the
In the code below I am trying to calculate the distance between two cities.
I have the following code, see below: $(document).ready(function(){ var prefixNumber = $('.numeric').val(); if(prefixNumber.match(????){ prefixNumber.addClass('.field-error');

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.