Current time: 12-30-2024, 12:59 PM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[18.220.13.15], connected from Columbus, Ohio United States
Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
۞ CSS Float Tutorial ۞
10-14-2009, 05:55 AM
Post: #1
Lightbulb ۞ 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,

#leftfloat {
  float:left;
}

the following HTML,

<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,

#rightfloat {
  float:right;
  width:50px;
}

the following HTML,

<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

ghazal's signature *** Deleted by the administration ***
Visit this user's website Find all posts by this user
Quote this message in a reply
10-29-2009, 06:31 AM
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.

mikewilkinson's signature magnesium
Visit this user's website Find all posts by this user
Quote this message in a reply
10-31-2009, 02:02 AM
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 Smile

ghazal's signature *** Deleted by the administration ***
Visit this user's website Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com