Click to See Complete Forum and Search --> : Simple but annoying problem


saraistarr
12-19-2004, 06:58 AM
Click Here (http://freewebs.com/ssimplicity)

I can't seem to get that image in the pop-up to go right in the corner. I just used an IMG SRC tag.

Oh, and if you can't veiw source because it's a pop up, here's literally the whole page in HTML:


<body bgcolor="#8EBFF7">
<title>Sarah's Page</title>
<img src="title.jpg">

I'm just starting out, as you can see. :rolleyes:

Fang
12-19-2004, 07:07 AM
because it's not a valid document and the document margin/padding has not been set.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Sarah's Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
body, html {
margin:0;padding:0;
background:#8EBFF7;
color:#000;
}
-->
</style>
</head>
<body>
<img src="title.jpg" height="172" width="736" alt="Sarah's Page" />
</body>
</html>

Charles
12-19-2004, 07:35 AM
Originally posted by Fang
because it's not a valid document and the document margin/padding has not been set.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Sarah's Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
body, html {
margin:0;padding:0;
background:#8EBFF7;
color:#000;
}
-->
</style>
</head>
<body>
<img src="title.jpg" height="172" width="736" alt="Sarah's Page" />
</body>
</html>

Except that there should be no trailling slash in the IMG tag. Those trailling slashes are from XHTML and have no place in HTML. I've seen them confuse SGML parsers - and HTML is a type of SGML.

saraistarr
12-19-2004, 11:05 AM
Thank you so much! :D