I have a div containing some images:
<div>
<img src="1.png"> </img>
<img src="1.png"> </img>
</div>
Currently, the layout in browsers looks like this:
-----------------
|XX |
-----------------
However, I would like the images to be centered within the div, like this:
-----------------
| XX |
-----------------
How can I achieve this?
PS: I realize this question may seem trivial, but as a novice in CSS/HTML, I am struggling to find a solution.