-
positioning of div's
Usually we position division based upon the left and top coordinates of the object.
I was wondering if it is possible to position a division based upon it's center point.
If I have a div which contains pictures and i do not know in advance the size of the image (no scaling, please) how can i make the center fixed and let the object grow outwards...
Hope this description is clear enough to understand....
plz help, thnx
-
you should just be able to set the div to align:center, or text-align: center
Or you could put the whole div in a table and have it align to the center