html - Top Margin Not Moving on Both Divs -



html - Top Margin Not Moving on Both Divs -

ok, have 2 divs, 'about-wrap' , 'tc-wrap'. can alter top-margin of about-wrap not tc-wrap. have found old question said needed float divs, about-wrap works without it, , tc-wrap doesn't work it. here html:

<div id="about-wrap"> <div class="about"> <p></br><h1><bold>about us</bold></h1></p> <p class="about-us"><h5>next gen founded in late 2014 ng fearr (then known ng feariess). began xbox 360 clan, trying grow in xbox one. multi-cod players, , play modern warfare 3 , 2, advanced warfare , black ops 2. although next gen began 1 founding member, has rapidly grown , has on 25 clan members. </br></br> in next gen, our primary focus sniping/feeding. have rc , looking snipers. if join, please submit clips , contact us. info seek outs, please contact our leader @ nextgengaming@tryout.com .</h5></p> </div> </div> <div id="tc-wrap"> <div class="tc"> <p>test</p> </div> </div>

and css:

#about-wrap { width: 58.5%; background-color: #fff; width: 800px; height: 600px; margin-left: 3%; margin-top: 6%; } .about h1 { font-family: "bitter"; color: #000b22; margin-left: 3%; } .about h5 { font-family: "roboto"; color: #3d4942; margin-left: 3%; } .tc { width: 21%; background-color: #000; height: 60px; margin-right: 3%; float: right; }

please tell me what's wrong.. thanks.

i figured out. changed

#about-wrap { width: 58.5%; background-color: #fff; width: 800px; height: 600px; margin-left: 3%; margin-top: 6%; } .about h1 { font-family: "bitter"; color: #000b22; margin-left: 3%; } .about h5 { font-family: "roboto"; color: #3d4942; margin-left: 3%; } .tc { width: 21%; background-color: #000; height: 60px; margin-right: 3%; float: right; }

to this

#about-wrap { width: 58.5%; float: left; background-color: #fff; height: 400px; margin-top: 6%; margin-left: 3%; } .about h1 { font-family: "bitter"; color: #000b22; margin-left: 2%; } .about h5 { font-family: "roboto"; color: #3d4942; margin-left: 2%; } #tc-wrap { float: right; width: 31%; background-color: #fff; height: 400px; margin-top: 6%; margin-right: 3%; }

i kept html same. here result.

html css

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -