html - css - Make two <section> tags side by side -
my current code this:
<section><iframe id="frame1" width="675" height="380" src="http://www.youtube.com/embed/hmafhsxwhdy" frameborder="0" allowfullscreen></iframe></section> <section><textarea rows="24" cols="25" id="desc" width="200" height="478">text here</textarea></section>
my assignment requires me use section tag on both iframe , textarea, need them line side side. when take section tags away, line perfectly, need keep section tags. how line 2 columns still keep tags?
use css styles css selectors , @ float.
quick , dirty fix:
<section style="float:left; width:675px;"><iframe id="frame1" width="675" height="380" src="http://www.youtube.com/embed/hmafhsxwhdy" frameborder="0" allowfullscreen></iframe></section> <section style="float:left; width:200px;"><textarea rows="24" cols="25" id="desc" width="200" height="478">text here</textarea></section>
Comments
Post a Comment