SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    118
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    CSS Issue float:middle?

    Hi everybody,

    I would like to float my image in the middle of the text.
    Is there any way to do that through CSS tricks?

  2. #2
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,830
    Mentioned
    111 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Vincentas View Post
    I would like to float my image in the middle of the text.
    Is there any way to do that through CSS tricks?
    Not easily – you can float left or right only. I believe that float:middle has been proposed for a future module, but it isn't there yet.

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    118
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ok, it is clear.
    Thanks

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,601
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    Check out this CSS Quiz, where that effect is basically faked:

    http://www.sitepoint.com/forums/show...nter-revisited

  5. #5
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    118
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks ralph.m it is helpful.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •