SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: CSS Issue float:middle?

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2012
    Posts
    36
    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
    SitePoint Award Recipient Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,098
    Mentioned
    66 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.
    Any posts I write in Arial are on my mobile phone, so please excuse typos etc.
    Any posts I write in Verdana are on a PC, so feel free to berate me mercilessly for any mistakes


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

  4. #4
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,928
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    Check out this CSS Quiz, where that effect is basically faked:

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

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2012
    Posts
    36
    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
  •