Welcome Guest[18.191.28.200], 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 |
|||
0 member(s) viewed this thread in the last 365 days :
|
« Next Oldest | Next Newest »
|
WWWHostingServer.com
|
||||||
|
||||||
|
Messages In This Thread |
۞ CSS Float Tutorial ۞ - ghazal - 10-14-2009 05:55 AM
RE: ۞ CSS Float Tutorial ۞ - mikewilkinson - 10-29-2009, 06:31 AM
RE: ۞ CSS Float Tutorial ۞ - ghazal - 10-31-2009, 02:02 AM
|
|
|
|
|
Powered By MyBB, © 2002-2024 MyBB Group. Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes. Hosting provided by WWWHostingServer.com |