Jump to content

can't get divs to float left


otuatail

Recommended Posts

Hi I am trying to get 2 divs to float left next to each other inside a containing div.

 

.container
{
    border:solid;
	position:absolute;
	top:15px;
	left:20px;
    width:940px;
    height:650px;
    /* border-color:red;
    border-style:solid */
}

.content
{
    border:solid;
	float:left;
	padding:10px;
    width:300px;
	height:135px;
	color: #aa8800;
    /* border-color:red;
    border-style:solid */
}

.content2
{
	border:solid;
	padding:10px;
    width:470px;
    height:135px;
	color: #aa8800;

}
code]

[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Christian Views Home</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META http-equiv="imagetoolbar" CONTENT="no">
<link rel="stylesheet" href="stylesheets/ChristianViews2.css" type="text/css">
</head>

<body>
<form action="submit.php" method="post">
<div class="container">

<div class="content">content<div>
<div class="content2">content 2</div>

</div>

</form>
</body>

</html>

 

Seems simple but this is crazy.

 

TIA

 

Desmond.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.