I am having some problems concerning HTML/CSS border boxes.
I have been trying to get the two border boxes to align on the same line, but I can't figure out how to do it.
Here is my code.
<html>
<head>
<title>Manage Your Team</title>
<style type="text/css">
body {
background-image:url('background.png');
color:#FFFFFF;
font-family:Arial;
padding-top:30px;
}
#box {
border:2px solid #FFFFFF;
background:transparent;
height:200px;
width:300px;
padding:10px;
}
</style>
</head>
<body>
<div align="center">
<div id="box">Box 1</div>
<div id="box">Box 2</div>
</div>
</body>
</html>
Below is a picture of the HTML file, and as you can see, the boxes are aligning underneath each other.

What I want is for the two boxes to be aligned in the center of the page, next to each other.
Any help on how to align these two boxes next to each other would be appreciated.
Thanks.

New Topic/Question
Reply



MultiQuote





|