I have a div with : relative . Inside this div, I placed the images with the position: absolute , because I will have slide shows with fadeIn and Fade out, and the images should be absolute.
I would like to align the images with absolute positioning in the center of their parent div. It can be done? The reason for the css part, I have already identified all the images that will be
left:0px;
My coding is as follows:
<html> <head> <style type="text/css"> div img{ border:1px solid blue; position:absolute; left:0px; top:0px; } </style> </head> <body> <div style="border:2px solid red;position:relative;width:500px;height:300px;"> <img src="01.JPG" width="403" height="300"/> <img src="02.JPG" width="403" height="300"/> <img src="03.jpg" width="170" height="290"/> </div> </body> </html>
Thanks in advance!
source share