How do horizontally align text next to an image with CSS


Tags: html,css

Problem :

enter image description here

How do I vertically align text next to an image with CSS like attached screnshot.

Ex : I had attached screnshot with this post .



Solution :

Float the image left and put overflow:hidden on the text to prevent it from going under the image.


    CSS Howto..

    How to make div background color transparent in CSS

    How can I apply jQuery .css style to descendant div [closed]

    How to create tooltip with one element in CSS

    How to break this Javascript into seperate CSS classes?

    CSS how to fill height of container?

    How to get an outline border on a colgroup?

    How to add animation to a bar graph with jQuery?

    how to position several div tags over each other

    How to select this td element?

    How to spread a div to cover available space in a parent container?

    How to center an attribute is position is absolute?

    How to make a button light up on hover with twitter bootstrap

    How do I get my Bootstrap webpage to have a full width

    How to leave out the last column when calculating the width

    How to slowly move header while user scrolls the page?

    How do you implement CSS without to have clear:both on float left and float right

    How do I make a line break between divs inside a box?

    How to create a Dribbble-esque image hover effect?

    How to make font sharp in CSS?

    How do I change image on hover of that the img is in - in jQuery?

    How to remove pipe separator of the first list item on the line?

    How to target div within a modal box with CSS

    How to show a div thats hidden by css on button click

    How can a

    How to properly use CSS borders to visualize a value chain?

    How to not use absolute positioning CSS

    How to make CSS drop down menu appear/change on click

    How to change color of element when hovering over another element?

    How to force elements to stay in the same row

    How to transform Ruby hash to CSS rule?