Quantcast
Channel: Unwanted spacing between html elements - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Jordan Davis for Unwanted spacing between html elements

Your using a <center> tag if your using HTML5 it's not supported... if your not using HTML5 the <center> tag is a block element, add display: inline-block in the css.

View Article


Answer by Karli Ots for Unwanted spacing between html elements

if you want, you can always CSS your way through it, something like* { margin:0; padding:0; }It should reset All elements, after that you define new paddings and margins, which is much easier ;)

View Article


Answer by Guffa for Unwanted spacing between html elements

You have encountered collapsing margins.When elements have top or bottom margin, and the parent element doesn't have a border or padding, the margins collapes. The effect is that the margin is visible...

View Article

Answer by Kristijan Iliev for Unwanted spacing between html elements

It seems that your paragraph tag has a margin.Apply this css rule:.footer p { margin: 0;}Here is a fiddle

View Article

Unwanted spacing between html elements

It appears as if there is padding between two of my elements - content1 and footer. I do not want this 'padding' but I cannot understand why it is there at all. Here is part of problematic html text on...

View Article

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>