Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
I am just interested in positioning blocks of material within other material, and was doing the most basic test. Even this test doesn't work the same in IE6 and Firefox 1.5
In IE6 the floated material does what I expect; it floats right. (If I understand that correctly). In firefox it doesn't.
This is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
border: solid #ffffff 10px;
Hello There. I am just testing this little page. How do you suppose it will work.
<a href="example.com">link #1</a><br>
<a href="example.com">link #2</a><br>
<a href="example.com">link #3</a><br>
I am sure that you will find it interesting.
</div> Or, maybe you'll just get a migraine.
Remove it and both will float to the right hand side.
The reason why Firefox is not positioning the box to the right is because it has been absolutely positioned. This means it will ignore float declarations and set a default
positions (by default, they are the same X,Y coordinates as if the element were still in the natural document flow.) This is correct behaviour.
Hope that helped clear things up :)
P.S. Welcome to Webmaster World! Hope you've read the two sticky posts at the top of the CSS forum, they can help you out.