Re: Position image x,y in html
- From: "Nik Coughlin" <nrkn.com@xxxxxxxxx>
- Date: Fri, 6 Nov 2009 12:00:25 +1300
"Nik Coughlin" <nrkn.com@xxxxxxxxx> wrote in message news:hcvl58$446$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Ben C" <spamspam@xxxxxxxxx> wrote in message news:slrnhf6ge2.326.spamspam@xxxxxxxxxxxxxxxxxxxxOn 2009-11-04, Nik Coughlin <nrkn.com@xxxxxxxxx> wrote:
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Position imageA</title>
<style type="text/css">
.imageA {
position: absolute;
left: 500px;
top: 200px;
}
</style>
</head>
<body>
<img src="imageA.gif" class="imageA" alt="meaningful alt text">
</body>
</html>
Yes, although this is invalid-- not supposed to have an IMG just inside
BODY like that. Put a DIV around it.
Nope, perfectly valid, look at the doctype. But your advice is good for the OP who is probably not authoring as HTML 5 :)
In fact, this is valid HTML5 (provided that the server is sending character encoding or the file has a Unicode BOM):
<!DOCTYPE HTML>
<title>Position imageA</title>
<style type="text/css">
.imageA {
position: absolute;
left: 500px;
top: 200px;
}
</style>
<img src="bigger.png" class="imageA" alt="meantingful alt text">
.
- References:
- Position image x,y in html
- From: Geir
- Re: Position image x,y in html
- From: Nik Coughlin
- Re: Position image x,y in html
- From: Ben C
- Re: Position image x,y in html
- From: Nik Coughlin
- Position image x,y in html
- Prev by Date: Re: Position image x,y in html
- Next by Date: Re: Position image x,y in html
- Previous by thread: Re: Position image x,y in html
- Next by thread: Re: Position image x,y in html
- Index(es):
Relevant Pages
|