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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:21:12+00:00 2026-05-14T08:21:12+00:00

i want to position 4 divs next to each other, at a certain position

  • 0

i want to position 4 divs next to each other, at a certain position within the parent div.
So the div structure is this (i’ll call the top most div the maindiv):

<div>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
</div>

now i want to set div with text ‘1’ at the left in the maindiv

now i want to set div with text ‘2’ at 50 px from the left side in the maindiv

now i want to set div with text ‘3’ at 150 px from the left side in the maindiv

now i want to set div with text ‘4’ at 200 px from the left side in the maindiv

I think 🙂 i have tried ALL possible css constructs, but it didn’t work, sadly.

Anyone an idea?

  • 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-14T08:21:13+00:00Added an answer on May 14, 2026 at 8:21 am

    Give position: relative to the main div

    position: absolute to the children and position them using left: xyz; top: xyz .

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

Sidebar

Related Questions

I want to have 5 divs horizontally next to each other spanning the width
I have two divs I'd like to position on top of each other using
I want to position divs on top of one another. I have created a
I want to position this HTML snippet <div id=D1> <div id=D1.1>HeaderText</div> <div id=D1.2> From
I want to put two float:right'ing divs ontop of eachother. I've tried position:relative; top:-HEIGHTpx;
I have an element( 2 anchors next to each other) inside the div(spans about
I have two divs inside another div, and I want to position one child
I am trying to place divs next to each other of which the divs
I want to position four div s relative to another. I have a rectangle
I want to position a DIV 200 pixels to left of the center. I

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.