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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:28:21+00:00 2026-05-20T07:28:21+00:00

I have many absolute position div , how can i change it align to

  • 0

I have many absolute position div , how can i change it align to center when orientation change to center?

lets say

<div style="position:absolute; top:0px;left:0px">
  <div style="position:absolute; top:0px;left:11px">asd</div>
  <div style="position:absolute; top:0px;left:15px">asd</div>
</div>

I tried margin: 0 auto and it conflicted with the absolute also.

the reason to have the positioning as absolute because there will be animation of the div and many div will stack on a place

  • 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-20T07:28:22+00:00Added an answer on May 20, 2026 at 7:28 am

    You need to get rid of the positioning and setup the widths and margins for each orientiation to make this work..

    This is based on the

     /* Portrait */
    @media screen and (max-width: 320px)
    

    and

    /* Landscape */
    @media screen and (min-width: 321px)
    {
    

    CSS methods.

    I have set up an example for you here.

    To see it live either copy the url from this jsbin page and view it in the iPhone emulator or view it in a real mobile browser.

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

Sidebar

Related Questions

I have an html file which contains many elements: <div> <div id=imgElt11289447233738dIi15v style=BORDER-RIGHT: 0px;
I've got 3 divs lined up; the center div has many position:absolute images (which
Good Day, I used position:absolute for many div's in my website. I have used
I have this form which can insert/update values into database table. <div id=settingsdiv style=width:350px;
I have a relative positioned div with many absolute positioned img in it: <div
I have a many-to-many relationship between employee and position. Can someone show me how
I've seen many questions like this but none of them seem to have position:absolute
I have a bunch of elements like the following: <div class=droppableP id=s-NSW style=width:78px; height:63px;
I have a hidden div with class hidden_thing that is positioned in the center
first some code: I have many elements like that: <section class=item> <div class=caption> </div>

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.