Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2006
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    divs and spacing

    I am trying to control the amount of space inside my divs. I have a header on some of my divs and the text below it is being pushed down too far. How can I can decrease the space between my text and the header. I already have it set to no padding. Do I need to use relative positioning? Any help would be much appreciated.

  • #2
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    It would help if there was some code to look at. Try removing or reducing the margins of the related elements; there are typically default margins added by browsers to the six header elements, the paragraph element, et al. If you still have more space than desired, try adjusting the line‐height of the involved text.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #3
    New Coder
    Join Date
    Nov 2006
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you, I just set the proper margins to 0px which corrected the problem.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •