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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:30:14+00:00 2026-05-14T22:30:14+00:00

I have a sequence of couples of elements. (.div1, .div2) I’m using position:relative attribute

  • 0

I have a sequence of couples of elements. (.div1, .div2) I’m using position:relative attribute on .div2 to move it a bit on top and right with respect to div1.

However .div1 elements have different content and heights, so the relative positioning of .div2 is not consistent (they sometimes are too high, sometimes too low).

.div2 {
    position:relative;
    left:200px;
    top:-300;   
}

thanks

Updated:
The HTML code is very simple

<div class="div1"> blabla </div>
<div class="div2"> blabla </div>
  • 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-14T22:30:15+00:00Added an answer on May 14, 2026 at 10:30 pm

    If “.div2” is inside “.div1”, you could use position:relative on .div1, and the position:absolute on .div2, to force it to get it’s position relative to .div1.

    A bit counterintuitive, but it works.

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

Sidebar

Related Questions

I have a really weird problem with Xcode 3.2.5 In a normal code sequence
Is there any way (official according to UML 2.0) to have sequence diagrams or
I have any sequence (or sentence) and i want to extract the last 2
I have a sequence of values that I get from somewhere else, in a
I have a sequence of characters xxxxxx (with x^k and k > 0) My
I have a sequence with a structure like this: (def date-sequence [[20101121 10] [20101120
I have a sequence of IplImage objects coming from a webcam, apply some processing,
I am new to Oracle 10g. I have couple of tables as shown below:
for the code below: def printList(L): if L: print L[0] printList(L[1:]) I can have
There are a couple of sources for random in LoadRunner scenarios: rand () function

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.