Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Float an Image to the Right Side
How To Float an Image to the Right Side? - XHTML 1.0 Tutorials - Understanding Inline Images and Image Maps
✍: FYIcenter.com
If you want to float an image to the right side of the paragraph instead of inline within a text line, you have to use the CSS property "float" to do this. The "float" property takes two values:
Here is a tutorial example with an image floated to the right side:
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Floating Image</title>
</head>
<body>
<h4>Inline Images</h4>
<p style="background-color: #eeeeee; padding: 8px;">
<img src="/moonrise.jpg"" alt="Moonrise"
width="69" height="91" style="float: right"/>
"Moonrise" is a very simple to use, yet very accurate
program. If you put it in your Startup folder, it will
greet you everyday with the day's sunrise, sunset,
moonrise, moonset, and twilight times.</p>
</body>
</html>
If you save the above document as floating_image.html, and view it with
Internet Explorer, you will see an image floated to the right side
of the paragraph as shown below:

2007-05-12, 5299👍, 0💬
Popular Posts:
What is NullPointerException and how to handle it? When an object is not initialized, the default va...
interview.FYIcenter.com offers a collections of interview questions and answers for software and Web...
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
What does XmlValidatingReader class do? XmlTextReader class does not validate the contents of an XML...