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

The Archive Base Latest Questions

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

I need some stuff that´s inside a specific div element, to float in a

  • 0

I need some stuff that´s inside a specific div element, to float in a specific place.
Naturally, I get different positions according to screen resolutions and browsers.
I need this block of content to appear on the top right corner, but not at the very very top, but about 3 centimeters from the top.

How can I get the position fixed?

I´ve tried this:

#sidebars {
    margin: -37% 1% 0 0;
    width: 35%;
}

And it works in one page with a specific browser only (I´m using latest firefox version to test this).

So, I´ve tried a fixed position, only to get a result that does not respect the margins. So, I´ve added some float to the right, with no consequence:

#sidebars {
    float: right;
    margin: -37% 1% 0 0;
    position: fixed;
    width: 35%;
}

Any ideas? Thank you very much in advance for your insight!!

Rosamunda

  • 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-01T04:04:03+00:00Added an answer on June 1, 2026 at 4:04 am

    Sounds like you do want a fixed position, but I’m pretty sure you don’t need the margins. To be clear, position: fixed; will position an element with the window (whereas absolute is to the document). I’m betting you’re looking for something like this:

    #sidebars {
        position: fixed;
        width: 35%;
        right:0px;
        top:0px; /* or whatever spacing you said you need from the top of the window */
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the situation where i need to do some math related stuff in
I have a problem with some numpy stuff. I need a numpy array to
Need some help to solve this. I have a gridview and inside the gridview
Need some help assigning a mouseover event to display some icons that start out
I need to make sure i understand some basic stuff first: how do i
I have a div which has some stuff in it, and the user has
For my website, i'm using a flash app to allow some stuff that php
I need to know where the Sprite.graphics start to do some stuff. When I
I have an UIView where I was drawing some stuff inside -drawRect:. Now I
I need to postprocess some HTML that has bad structure -- e.g. <html> <body>...</body>

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.