Get a free trial // Grow your CSS skills // Land your dream job

Don’t move the box

  • # November 22, 2012 at 4:54 pm

    I’m trying to build a responsive website and have a problem I hope you guys can help me with.

    On the page there’s an image next to some text. As I make the browser window smaller the image moves to the next line, before it scales.

    Is there any way I can make the image stay next to the text? at least until the screen width is too small for both text and image+

    This is the page:

    Best regards

    # November 22, 2012 at 6:27 pm

    Check your inside_box class width. If you set it to be exactly the width of the text. It should let you resize the window a bit more before the image moves down to next line.

    # November 26, 2012 at 6:05 pm

    Thanks Zonger. I’ve fixed the width, but it still moves to the next line very too early

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed