css - Floating DIV Containers -


am creating news container , within news content heading, images(if any), summary , read more link.

the news content placed in div fixed width dont want fixed height however.

the issue want containers float on left, works since height not same getting white space between 3rd , 4th one.

how can fix this?

you no need specify height.the height automatically adjusted based on content size.

<div id="news-content"></div> 

css

#news-content { width:100%; float:left; } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -