gaspoweredtoast
New Member
Title is because this is my first post and new to this forum, but I really joined cause I am new to HTML, CSS, and Javascript for making websites. I made a div container and put another one in it... it has float:right; and that's a problem... when it floats right it takes the .Container and make the background non existent and I was just wondering why... of course I can still <br> to expand the white space PAST the image to make it looks good, but I was just wondering if there is another solution...
HTML:
<!DOCTYPE html>
<html>
<head>
<title>YoYoMcAwesome's Comics</title>
<script>
</script>
<style>
.Body
{
margin:auto;
background-color:rgb(200,200,255)
}
.Container
{
margin-left:auto;
margin-right:auto;
position:relative;
top:0px;
width:940px;
background-color:rgb(255,255,255);
}
.Container002
{
float:right;
}
</style>
</head>
<body class="Body">
<div class="Container">
<div class="Container002">
<img src="Bear.png"></div>
</div>
</body>
</html>