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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:34:25+00:00 2026-06-14T08:34:25+00:00

Is position:static equivalent to position: relative with none of the top, bottom, right, or

  • 0

Is position:static equivalent to position: relative with none of the top, bottom, right, or left properties specified?

I though of this because an element with postion: absolute be relative to the first element that does NOT have postion: static. It seems arbitrary to make an element with position: relative, which will behave identically to a position: static if no other properties are used. Figured I might be missing something about static vs relative.

Thanks!

  • 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-14T08:34:26+00:00Added an answer on June 14, 2026 at 8:34 am

    The answer is no, both are different

    position: static; means nothing but default position, you cannot use top, right, bottom, left unless and until you use position: relative, absolute or fixed, you need to use margins, moreover, position: relative; comes in real action when the child elements are positioned absolute, so that all elements can float inside the position: relative; div, if you just keep it static, they will go out of the document…

    Take a look at the examples

    Demo1 (Keeping the div static and using top, left has no effect)

    Demo2 (Making it position: relative; does effect top, left)

    Demo3 (Keeping the parent div static, child will flow out if it’s positioned absolute)

    Demo4 (Child div positioned absolute will measure top, right, bottom, left from its parent div positioned relative)

    This 1 is short and very simple but powerful tutorial video to clear out your doubts

    And a short article on CSS positioning

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

Sidebar

Related Questions

Possible Duplicate: position: absolute without setting top/left/bottom/right? Looking at the following code, I have
#mydiv { position:absolute; left:0px; top:0px; width:83px; height:83px; } <div id=mydiv></div> That's my style for
Is it possible to position a DIV relative to another DIV? I imagine this
<html> <body> <div class=fixed-top-bar style=position:fixed></div> <div class=content style=position:static></div> </body> </html> In my browser, both
If I have a flowing layout (position: static / relative), does the browser store
<div class=editor-label style=position:static> <%: Html.LabelFor(Model => Model.Date, Date)%> <span style=padding-left:52px> <%: Html.TextBoxFor(Model => Model.Date)%>
I have this code: - (NSString *) calculate: (uint) position { static NSArray *
See this example . CODE: alert( "slide-panel2 position: " + $('#slide-panel2').css("left") ) CSS: #slide-panel2
How do the various options for css position (static, relative, absolute, fixed) impact the
For example: like target = _self in XHTML and position:static in CSS

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.