Welcome Guest[18.220.13.15], connected from Columbus, Ohio
۞ CSS Float Tutorial ۞
|
Post: #1
|
|||
|
|||
۞ CSS Float Tutorial ۞
One of the commonly-seen layout, especially in large websites displaying ads, is wrapping the text around an advertising block. This is accomplished using the float property.
The float property has three possible values: 'left', 'right', and 'none'. Let's take a look at the following examples: Example 1: Given the CSS declaration, Code:[Highlight] #leftfloat { the following HTML, Code:[Highlight] <span id="leftfloat"><img src="yp.jpg"></span>This example illustrates how float:left affects the appearance of a block. Notice how the image "floats" to the left. renders, SCREENSHOT: ------------ Example 2: Given the CSS declaration, Code:[Highlight] #rightfloat { the following HTML, Code:[Highlight] <span id="rightfloat"><img src="yp.jpg"></span>This example illustrates how float:left affects the appearance of a block. Notice how the image "floats" to the right. renders, SCREENSHOT: --------------- Notice the presence of the width property increases the spacing between the image and the text. --- Thank You |
|||
Post: #2
|
|||
|
|||
RE: ۞ CSS Float Tutorial ۞
Wrapping text around an image is easy when using the CSS Float attribute. You have a choice to either float the picture to the left or to the right .This Attibute Floating an image to the right.
|
|||
Post: #3
|
|||
|
|||
RE: ۞ CSS Float Tutorial ۞
(10-29-2009 06:31 AM)mikewilkinson Wrote: Wrapping text around an image is easy when using the CSS Float attribute. You have a choice to either float the picture to the left or to the right .This Attibute Floating an image to the right. Yes its true |
|||
0 member(s) viewed this thread in the last 365 days :
|
« Next Oldest | Next Newest »
|
WWWHostingServer.com
|
||||||
|
||||||
|
|
|
|
|
Powered By MyBB, © 2002-2024 MyBB Group. Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes. Hosting provided by WWWHostingServer.com |