Jump to content

Need to get rid of the magical white space


wiseboss

Recommended Posts

 

Try...

*{margin:0;padding:0;}

 

Forgot to mention that I've all ready tried all those "methods"

margin 0 and padding 0 don't work either

Link to comment
Share on other sites

inline-block has habit of adding space for elements that are stacked

<img src="pic1.jpg" alt="">

<img src="pic2.jpg" alt="">

it treats the newline/linebreak that make the elements stack as a space, which same size as font used for that element.

fixes include not stacking

<img src="pic1.jpg" alt=""><img src="pic2.jpg" alt="">

setting font-size:0; or floating the elements.

 

Edit: one more thing id reference MUST be unique within the page.

Edited by dsonesuk
Link to comment
Share on other sites

inline-block has habit of adding space for elements that are stacked

<img src="pic1.jpg" alt="">

<img src="pic2.jpg" alt="">

it treats the newline/linebreak that make the elements stack as a space, which same size as font used for that element.

fixes include not stacking

<img src="pic1.jpg" alt=""><img src="pic2.jpg" alt="">

setting font-size:0; or floating the elements.

 

Edit: one more thing id reference MUST be unique within the page.

Thanks!!! worked out fine.

used the 0 font size on the parent div

Edited by wiseboss
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...