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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:46:01+00:00 2026-06-16T13:46:01+00:00

I am trying to adjust vertical space between two span elements inside a div.

  • 0

I am trying to adjust vertical space between two span elements inside a div. I am trying to achieve half of what I am getting from <br/>.

line-height , vertical-align or margin-top.
None of it worked for me. Here is the jsfiddle

  • 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-16T13:46:02+00:00Added an answer on June 16, 2026 at 1:46 pm

    <span> elements are inline. You can’t put block-level elements like <p> inside of inline elements.

    Use <div>s instead of <span>s and your CSS will work just fine:

    <div class="signupEmailBox">
        <div class="tag"><p>test data goes here</p></div>
        <div class="smallTextEmail">
                        <p>blah blah blah</p>
                        <p>some text goes here...</p>
                        <p>here some more text data</p>
                        <p>some more text</p>
        </div>
    </div>
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to adjust the width of tabs from Window -> Preferences ->
I am trying to adjust the size of a background static UIImageView (from Nib
I am trying to adjust text size so it can fill a certain space
Two things I'm trying to adjust in my usage of JQuery autocomplete in PHP.
I'm trying to adjust the orientation of my camera using two quaternions, based on
I have a UILabel inside a UITableViewCell and I was trying to adjust the
I am trying to make a div that contains other floating divs to adjust
I have a DIV that im trying to adjust the top margin on upon
I'm trying to adjust a jquery script to my needs and encountered the following
I am trying to adjust the cell height for one of the cells on

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.