Cyclone
Cyclone

Reputation: 15279

CSS image background position

This is my problem:

http://jsfiddle.net/pbgLc/

I need the background image (with url) to be placed at the top left position of the image, and want the text to be moved next to the background image.

As you've probably noticed I'm using two backgrounds, so its probably not possible to use just one div, right?

Have you guys any solutions for that?

Upvotes: 0

Views: 251

Answers (2)

Giannis
Giannis

Reputation: 813

I don't know if this is exactly what you are looking for, but you can have 2 background elements at the same time, as long as they don't conflict each other. http://jsfiddle.net/pbgLc/5/

Upvotes: 1

BlueCacti
BlueCacti

Reputation: 10844

Maybe this can help a little? CSS background-position Property
If you want the image and the text next to each other, why don't you put them litterly next to each other? 2 divs inside 1 div

Or am I misunderstanding you?

Upvotes: 0

Related Questions