February 15th, 2014, 04:36 AM
CSS padding and margin on different browsers
I'm building a website locally and is working on a form. The problem is when viewed on different browsers, the spacing doesn't look the same. I was wondering how each browser treats this spaces. I hope someone can enlighten me on this.
February 16th, 2014, 04:32 PM
If you don't tell the CSS what margin and padding to use on an element, the browser agent determines what to use on an element-by-element basis, and there's no gaurentee they will have the same defaults.
Have you explicitly set the margin and padding on these elements? If not, try that
February 17th, 2014, 09:58 PM
Try looking up CSS Reset Stylesheets too. It removes all the browser defaults so you're working across a level playing field. The wordpress one is a good place to start and you can customize it to your liking.
February 18th, 2014, 02:53 AM
I did set the specific margins and paddings.
Originally Posted by LindaJeanne
This might be the answer i'm looking for. I'll go try it out.