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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:11:17+00:00 2026-06-18T00:11:17+00:00

I am making a website, it has just few lines and I just made

  • 0

I am making a website, it has just few lines and I just made its structure to see how it will look, and till now I thought I understand what means “Relative” position in CSS.
Here is my HTML and CSS code. If you take a look at CSS you will see in #about div

position: relative;
top: 13%;

In #portfolio

position: relative;
top: 0;

but its not on top of #wrap div. If I change its position to absolute it will be on top. So my question is: #portfolio div is relative to what? I thought It should be relative to wrap I think and it should change its top position relatively to wrap.
(Sorry about formatting of this post if you will be so nice to format it better it will be just great, i tried but it was horrible)

Link to HTML and CSS

  • 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-18T00:11:18+00:00Added an answer on June 18, 2026 at 12:11 am

    position: relative; causes the item to be positioned relative to where it would be if you did not specify that option. The item still takes up the same ‘space’ as it would have, but may be moved. This does not have anything to do with positioning it within its parent.

    For instance:

    position: relative;
    top: 5px;
    

    Will cause the item to be moved 5 pixels down from where it would otherwise be.

    position: relative;
    top: -5px;
    

    Would cause it to move 5 pixels up from where it would otherwise be.

    Also note that it’s possible to cause the object to overlap others or be moved outside of its parent by using this, depending on how much you offset it.

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

Sidebar

Related Questions

I am making a simple website that has a main text window with just
I am making a Greasemonkey script for a website that has many flash files.
I'm making a website using JSP and servlets and I have to now break
The website I'm building has a few elements that are the same on every
I'm making a HTML5 mobile website using jquery mobile. It has five pages in
My website has a very granular permissions system for every client, making it fairly
Im making a mobile optimised website that has fullscreen dialog windows that open when
I've been making my first ASP.NET Visual Studio website and I have just started
I'm making a website that has a menu on all the pages that needs
I'm making a website that will have to render correctly on FF/IE6/IE7/Opera/Safari. IE6 came

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.