SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member iftieaq's Avatar
    Join Date
    Nov 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question CSS Help ! Urgent!

    Anyone can easily insert image and text on the same line using CSS Float. But I want to display Code ( Example - Facebook like box ) and text on the same line. Is it possible? How can I do this?

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by iftieaq View Post
    Anyone can easily insert image and text on the same line using CSS Float. But I want to display Code ( Example - Facebook like box ) and text on the same line. Is it possible? How can I do this?
    You do it in just the same way. For example, you put your code in a line like
    <div class="code"> ...[code goes here]...</div>
    and then in the CSS, you put
    .code {float:left;}

    There may be other, better ways of achieving the same effect, but it's difficult to say what would be best from what you've told us so far.

  3. #3
    SitePoint Member iftieaq's Avatar
    Join Date
    Nov 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot. It's working


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
  •