Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


CSS Float

css float

  • Please log in to reply
 

#1 DesGuru

DesGuru

    Senior Member

  • Designer
  • 220 posts

Posted 02 November 2012 - 04:34 PM

You can the CSS Float to push an element to the left or right, with other elements rapping around it. You can use Float for elements or layouts. Elements can only float horizontally. A floated element can move as far to the left or right as possible, and the elements after the floating element will just flow around it. However, the elements before it will not be affected.
Ex. of using Float
img
{
float:right;
}
you can turn off Float using Clear
Ex. of adding a text line using the clear property:
.textline
{
clear:both;
}
The clear property here specifies the sides of an element that other floating elements are not allowed.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users