You are trying to float something and absolute poistion it at the same time.

On 10/6/05, artcoder <[EMAIL PROTECTED]> wrote:
>
> Below is the entire content of my HTML file. I want my div#boat to be
> overlaid on top of the text. I thought the below CSS would work. But
> do I need to do in Javascript?
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
> 1" />
> <title>Untitled Document</title>
> </head>
> <body>
> <div style="width: 200px;">
> This is some filler text on my page. With "boat" div underneath.
> What I want is for the boat div to be floating on top of this text.
> </div>
> <div id="boat" style="display: block; float: left; position: absolute;
> height: 100px; width: 200px; top: 200; left: 300; background-
> color:#FFFFCC; border: 1px solid blue;">
> why doesn't this float?
> </div>
> </body>
> </html>
>
>
> ==================
> artcoder (at) http://webmarksonline.com
> ==================
>
>
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org <http://evolt.org> --
> http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to