html - Why won't my divs line up? -
here html
<!doctype html> <html> <head> <title> oaki softworks </title> <link href='style.css' rel='stylesheet' type='text/css'> <link rel="icon" href="favicon.png"> </head> <body> <div id="navigation"> <div style="height:20px;width=15%;float:right;"> <a href="https://www.facebook.com/oakisoftworks/?fref=ts"><img src="facebook_icon.png" class="social_media_icon"></a> <img src="instagram_icon.png" class="social_media_icon"> <img src="twitter_icon.png" class="social_media_icon"> <img src="youtube_icon.png" class="social_media_icon"> </div> <div class="navigation_tile">contact us</div> <div class="navigation_tile">careers</div> <div class="navigation_tile">products</div> <div class="navigation_tile">about us</div> </div> <div id="content"> <div id="blurb"> <img src="logo%20(inverted,%20transparent).png" style="width:90%;height:auto;align-self:center;"> <h2>video games art.</h2> <p>even before conception of our company, have embraced video games newest, emerging art form. video games engage audience no other medium: allowing them digest material @ own pace, identify within avatar see fit, , interact world around them. oaki software aims underline these elements of art further our own game design.</p> </div> <div id="main_pic"> <img src="art.jpg"> </div> </div> <div id="footer"> <p> oaki softworks™ <br>fort collins, co 80521 <br>benkulka@oakisoftworks.com </p> </div> </body> </html>
here css
body { background-color: #021034; padding: 0px; margin: 0px; } #navigation { position: fixed; background-color: black; height: 40px; width: 100%; color: white; color: #adb7bd; font-family: 'lucida sans', arial, sans-serif; font-size: 16px; line-height: 26px; } div.navigation_tile { height: 30px; width: 15%; align-content: center; text-align: center; float: right; margin: 5px; } div.navigation_tile:hover { background-color: #092466; } div.navigation_tile:active { background-color: white; color: black; } #content { margin-top: 30px; display: inline-block; text-align: justify; } #blurb{ padding: 40px 0 0 25px; width: 28%; height: 250px; } #main_pic { float: right; width: 66%; height: 250px; border: 10px #092466 solid; overflow: hidden; } h1{ color: #a5b7e3; font-family: 'lato', sans-serif; font-size: 54px; font-weight: 300; line-height: 58px; margin: 0 0 20px; } h2 { color: #6681c4; font-family: 'lato', sans-serif; font-size: 34px; margin: 0 0 10px; } p{ text-indent: 20px; color: white; font-size: 12px; font-weight: 100; font-family: 'lucida sans', arial, serif; line-height: 20px; } img.social_media_icon{ height: 15px; width: 15px; padding: 5px; } #footer { height: auto; width: 100%; background-color: black; text-align: center; padding: 5px; }
i'm trying #blurb div line #main_pic div within parent #content div, i'm having trouble doing so. can point me in right direction?
#blurb { [...] float: left; } #content { [..] overflow: hidden; }
also consider removing height: 250px; #blurb ... hard required reason.
Comments
Post a Comment