Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: div margin

  1. #1
    Senior Member
    Join Date
    Aug 2011
    Posts
    213
    Member #
    29153
    Liked
    3 times

    div margin

    I've created a div over another div. The top div has a margin-bottom: 0px; The bottom div has a margin-top: 0px;

    Why is there about 15 px between them?
    Last edited by Glenn; Jul 07th, 2018 at 09:21 PM.

  2.  

  3. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    213
    Member #
    29153
    Liked
    3 times
    aspecialspot.com

    between the image and nav

  4. #3
    Member
    Join Date
    Jul 2017
    Location
    south africa
    Posts
    44
    Member #
    57012
    Liked
    5 times
    open in up in a browser tab left click , inspect element and move the mouse around on the divs it gives a pretty nice visual representation of whats goig on once you find it click it then lok in your console all the rules applied to that div, when you find the margin being applied in the top left corner of that little section will be something like ...css.mycssfile that would be the source from where this rule is coming from. Click that , find the rule then leave the browser and go edit it on whatever ide you are using


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:00 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com