Neo Neo - 2 months ago 8
CSS Question

Prevent select from going out of the div:

The

select
tag is going out of the background
<div>
. I don't want to give background color to
body
of html page. Any solution with HTML,CSS and jquery is welcome.

Here is the embedded code in Plunker: http://embed.plnkr.co/dJTbTgedcOLyxmX07Dzj/

Answer

Add a clear div below the </article> as show below

<article>
.....
</article>
<div style="clear:both;"></div>