Place div beneath another div

C

CaptCaveman1

I have the following layout:

<div>
<div style="float: right"><img src.... /></div>
<div>Page Title</div>
</div>
<div>
More text
</div>

I want the bottom div to appear below the first div. However, it is
showing directly below the Page title text.

How can I get the bottom div to appear below the bottom part of the
first div?
 
D

dorayme

<[email protected]
m>,
CaptCaveman1 said:
I have the following layout:

<div>
<div style="float: right"><img src.... /></div>
<div>Page Title</div>
</div>
<div>
More text
</div>

I want the bottom div to appear below the first div. However, it is
showing directly below the Page title text.

How can I get the bottom div to appear below the bottom part of the
first div?

You have 4 divs, the container div with two child divs, that's
three. And you have another one. What exactly is not appearing
where you want it to appear?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<title>4 divs</title>
</head>
<body>
<div>1st div
<div style="float: right;"><img src="pics/crimson.png"
width="100" height="10" alt="">2nd div</div>
<div>3rd div</div>
</div>
<div>4th div</div>
</body>
</html>
 
R

richard

I have the following layout:

<div>
<div style="float: right"><img src.... /></div>
<div>Page Title</div>
</div>
<div>
More text
</div>

I want the bottom div to appear below the first div. However, it is
showing directly below the Page title text.

How can I get the bottom div to appear below the bottom part of the
first div?

<div>

<div style="float:left">Page title</div>
<div style="float:right"><img src=""></div>

</div>
<div style="clear:both;">
more text
</div>

You could also pay a visit to www.oswd.org and see thousands of free
examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top