Pages

Thursday, July 30, 2009

Place text and divs beside each other using css

I suddenly needed to have some text beside a div, but i just couldn't remember how.

But i figured it out and here is my solution, and yes it's not the most complex thing in the world ;)

html:

Some text <div class="divBesideText"></div>

CSS:

.divBesideText
{
    display: inline;
}