css question
css question
- Started
- Last post
- 7 Responses
- peepingTom
Is there a way to align an image to a field verticaly using css?
thanks
- Dancer0
field?
text is that?
- peepingTom0
in a div...
if you have a div that is variable in height, is there any way to align an image to the middle of it?
- peepingTom0
bump!
- gabriel20
can the image be the background of the div? If so, that makes it quite easy:
background-image: url(yourimage.jpg);
background-position: center center;
- peepingTom0
unfortunatly no, it has to be clickable
- version30
the div would be clickable, only showing the bg of the div
- peepingTom0
ok
I'll try that method
thank you!