Home >Web Front-end >HTML Tutorial >Newbie asking for CSS cancellation floating problem, waiting online_html/css_WEB-ITnose

Newbie asking for CSS cancellation floating problem, waiting online_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:42905browse










left side of blog

right side of blog< ;/div>

Blog copyright information







#red,#blue,#green{color:white; height : 200;}
#red{background:#900;width: 200;float: left;}
#blue{background:#009;width: 300;float: left;}
.clear{ clear: both;}
#green{background:#090;width: 500;height: 100;margin: 0 0 0 0px;}


I want the red and blue squares to be in The first row is close to each other, and the green bar is close to the second row and the first row, but there is always an empty row between the two layers of blocks that cannot be removed. Please give me some advice


Reply to the discussion (Solution)

I know, I didn’t reset the label, just add *{margin:0px;padding:0px;} and it’s OK

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn