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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -