- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
What’s background-position: center; not working? Explanation needed, please.
Looks fine to me: http://jsfiddle.net/Paulie_D/Gu59C/
Now :( ??
http://jsfiddle.net/h123er2/Gu59C/1/
I’m not sure what it is you are asking.
Here’s an example with a larger div.
Are you expecting something else.
wanted the box to be centered inside that div without using margin
the background is centered, but you’ve restricted the width and height of the #image div…
The image IS centered in the div, that’s what background-position:center does.
What is CAN’T do is center the div inside another div…for that you need margins.
It might also be easier to help you if you used complete sentences rather than the quick short replies.
How do you thank a user on this forum, is there any button for that?
Unfortunately not.
I’m sure whoever deserves them is grateful.