0
   

Xhtml Floating problem.

 
 
Reply Tue 23 Dec, 2008 11:41 pm
How to float an element, such as image, into the xhtml code? Please provide with examples.
  • Topic Stats
  • Top Replies
  • Link/Embed
Type: Question • Score: 0 • Views: 286 • Replies: 1

 
  1  
Reply Tue 23 Dec, 2008 11:47 pm
Code:<html>
<head>
<style type="text/css">
img
{
float:right
}
</style>
</head>

<body>
<p>In the paragraph below, we have added an image with style <b>float:right</b>. The result is that the image will float to the right in the paragraph.</p>
<p>
<img src="logocss.gif" width="95" height="84" />
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>
</body>

</html>
0 Replies
 
 

Related Topics

xhtml & css.. easy?, or hard? - Discussion by falkon
 
  1. able2know
  2. » Xhtml Floating problem.
Copyright © 2009 Horizontal Verticals :: Page generated in 0.39 seconds on 11/08/2009 at 04:24:01 Top End