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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:28:13+00:00 2026-05-30T14:28:13+00:00

jsFiddle I am trying to get these 4 divs to sit on the same

  • 0

jsFiddle

I am trying to get these 4 divs to sit on the same vertical line. Why does the presence of buttons change the position of the first div?

HTML

<div class="box">
        <button>Y</button> <button>N</button>
</div>
<div class="box">
</div>
<div class="box">
</div>
<div class="box">
</div>​

CSS

.box {
    width:200px;
    height:200px;
    padding:10px;
    display:inline-block;
    border:1px solid black;
    text-align:center;
}​

RESULT

enter image description here

  • 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-30T14:28:14+00:00Added an answer on May 30, 2026 at 2:28 pm

    Add vertical-align:bottom to the style of your divs.

    The cause of your problem is the presence of any content, as it defines the baseline for the div.

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

Sidebar

Related Questions

http://jsfiddle.net/UhNHW/ I'm trying to get a color block to slide in behind existing content
I have been trying to get this jsfiddle to work. So far without luck.
In the JSFiddle, I am trying to generate divs dynamically using javascript. Those divs
Here is the code: http://jsfiddle.net/GKBfL/ I am trying to get collection.prototype.add to return a
I'm trying to get an ellipsis to work like so: http://jsfiddle.net/583mK/1/ Interestingly, it works
http://jsfiddle.net/XjsWZ/ I'm trying to get the white box itself to have rounded corners in
i'm trying to create following layout: http://jsfiddle.net/BTuMH/1/ but without setting the width, like: http://jsfiddle.net/yuGyg/
Here is jsfiddle ! I am trying to make user page where he can
Trying to reinvent a wheel with a archive list, got this so far jsfiddle
This example shows what I am trying to do: http://jsfiddle.net/Dqjvy/ I would like it

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.