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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:19:26+00:00 2026-06-12T17:19:26+00:00

I tried using the line-height property to increase the space between two text boxes

  • 0

I tried using the “line-height” property to increase the space between two text boxes but it applies only for text.

SO, is there any other CSS property that can be used to increase the vertical spacing between two divisions (“div”s)??

  • 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-12T17:19:28+00:00Added an answer on June 12, 2026 at 5:19 pm

    You can use margin to define the space between the divisions:

    CSS:

    .myDiv { margin: 5px 0; }
    

    HTML

    <div class="myDiv">first</div>
    <div class="myDiv">second</div>
    

    This will give them a 5px top and bottom margin. The distance between the divisions will be the largest value for margin for any of them, which is 5px in this case.

    You can specify margin-top and margin-bottom separately if you want more control. For example zero top margin and 5px bottom margin:

    .myDiv { margin: 0 0 5px 0; }
    

    which is the same as:

    .myDiv {
      margin-top: 0;
      margin-right: 0;
      margin-bottom: 5px;
      margin-left: 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to increase the line separator height between li tags. I have tried
I tried using juggernaut cocoa: https://github.com/fpotter/juggernaut-cocoa Added this line to my code: JuggernautClient *client
I tried to create jar file using command line that I inserted into java
Finally i tried to draw a line using OpenGL ES framework in XCode 4.2
How do I put a file onto an sdcard using command line? I tried
In Delphi 2009, how can I build a project using command line. I tried
I tried using arrays but I don't need every single element, and so it
I tried using date/time, time, but it doesn't help. Exception Details: System.Web.HttpException: DataBinding: 'DatePickerControl.DatePicker'
I tried using the following code for a HTML page, but it doesn't work.
Is there a proper way to display text at the descent height of a

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.