This is my HTML code
<div id="div1">
<div></div><div></div><div></div><br/>
<div></div><div></div><div></div>
</div>
My CSS:
#div1 {
width: 150px;
height: 100px;
white-space: nowrap;
border: blue 1px solid;
padding: 5px;
}
#div1 div {
width: 30px;
height: 30px;
border: blue 1px solid;
display: inline-block;
*display: inline;
zoom: 1;
margin: 0px;
outline: none;
}
If I insert the <!DOCTYPE html>
before the <html>
tag, the page will look like this:
But if I remove the <!DOCTYPE html>
tag, the 'whitespace' between the two lines will be remove
But I'd like to use <!DOCTYPE html>
tag, it's recommend, but I can't find any CSS rule that can remove that whitespace, I have used margin:0;outline:none; etc... but it not work , anyone help me. Thanks!( I'm not good at English ...)