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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:39:20+00:00 2026-05-25T10:39:20+00:00

I have a <div> for content and I am using <p> and <h4> with

  • 0

I have a <div> for content and I am using <p> and <h4> with nothing defined for either of them in my stylesheet. There is a big gap between the two. I’d like them to be flush on top of one another without the big gap. How do I do that ? CSS?

    <div id="content">

    <h4>Asdf</h4><br />
    <p>asdfjkl</p>

    </div>

THANKS!

  • 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-25T10:39:21+00:00Added an answer on May 25, 2026 at 10:39 am

    Yes, CSS would be the way to do it. If you want to do it just in one place you can put it inline like so:

    <h4 style='padding-bottom:0px; margin-bottom:0px;'>Asdf</h4>
    <p style='padding-top:0px; margin-top:0px;'>asdfjkl</p>
    

    You can do the same with the h4 to eliminate padding or margin. If you want to put it into a separate CSS file:

    h4 {
     margin-bottom:0px;
     padding-bottom:0px;
    }
    
    p {
     margin-top:0px;
     padding-top:0px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two div containers with content in them and two buttons outside the
I have dynamic content in a div called txtresults like this: <div id=txtresults></div> This
If I have the following DOM elements <div class=item>content1</div> <div class=item>content2</div> how, using jQuery
I have a div with some inner content that I need to have an
I have a Div that is 400px in height with the ID content, I
I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
I have a page similar to: <div id=content> <div id=boxes> <div id=box:content:1:text /> <div
I have a wrapper div that contains arbitrary content (I don't know its length).
The Idea I have a main PHP page that loads content in DIV's from
I have a regular div, like so: <div id=registry_ViewPanel> <div id=registry_Header>Register</div> <div id=registry_Content> //Registry

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.