Hi Carl,
Validate your code snippet at
http://validator.w3.org/check
Here is the output from the validation...
No DOCTYPE found! Checking with default XHTML 1.0 Transitional Document
Type.
No DOCTYPE Declaration could be found or recognized in this document. This
generally means that the document is not declaring its Document Type at the
top. It can also mean that the DOCTYPE declaration contains a spelling
error, or that it is not using the correct syntax.
The document was checked using a default "fallback" Document Type Definition
that closely resembles “XHTML 1.0 Transitional”.
In IE8 press F12 to display the Developer tool and view the rendering mode
of your document. (Quirks).
Visual Studio 2005. - Running a web page from the IDE is different from
viewing a page from the web (protected cache, asp.net user account). The
built-in web server in VS is not the full bag. I would suggest that you
always system test your web applications on a 'real' web server.
Regards.
Further -
http://www.w3.org/QA/Tips/Doctype
http://www.alistapart.com/stories/doctype/
http://www.w3.org/QA/2002/04/Web-Quality
"Carl" <Carl@discussions.microsoft.com> wrote in message
news:23930501-37E4-4CD2-8B26-56E6C77CCD8E@microsoft.com...
> The following html code, when saved as .html and opened in IE8, displays
> the
> button correctly. When debugging in VS2005 and IE8, the button stretches
> all
> the way to the right of the browser. Would like to know how to fix
> please.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>test</title>
> </head>
> <body>
> <input type="submit" value="Find" style="position: absolute; left:
> 100px" />
> </body>
> </html>