Hello guys, I'm having a problem here..
I'm having a wrapper with a width of 960pixel, in that wrapper I have a div called firstTopSection, with a width of 940px, and a height of 300pixel, and a margin on 300pixel, and background of white.
Inside firstTopSection I have a div called canvasHolder, with a margin of 10 pixel, width of 920pixel, and a height of 280pixel.. Color of yellow..
It should look like this:
But looks like this
My coding is following:
I can't see what the problem is :SHTML Code:<html> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <style type="text/css"> #wrapper { width: 960px; margin: 10px auto; border-radius: 5px; -webkit-border-radius: 5px; background: green; box-shadow: 0 2px 5px black; -webkit-box-shadow: 0 2px 5px black; -moz-box-shadow: 0 2px 5px black; padding-bottom: 10px; } .firstTopSection { width: 940px; height: 300px; margin: 10px; background: white; } .canvasHolder { margin: 10px; width: 920px; height: 280px; background-color: #fae062; } </style> </head> <body> <section class="firstTopSection"> <div class="canvasHolder"> lorem ipsum </div> </section> </body> </html>
Can anybody help?
Thank you!
Best regards,
Lucas





Reply With Quote





Bookmarks