<div id="snap_center_column">
<br>
<h1>VLC Player</h1>
<br><br>
<img class="displayed" src="vlc1_small.png" alt="Configure" height=274 width = 325 />
<img class="displayed" src="vlc2_small.png" alt="Configure" height=264 width = 325 />
</div><!-- ends snap_center_column -->
IMG.displayed {
display: inline;
margin-left: auto;
margin-right: auto;
}
Centering 2 images horizontally
Page 1 of 12 Replies - 499 Views - Last Post: 24 April 2012 - 09:10 AM
#1
Centering 2 images horizontally
Posted 23 April 2012 - 10:10 AM
I am trying to center 2 images side by side inside the center column of a page. I can center a single one just fine but the margin-right; auto and margin-left; auto don't seem to work with 2 images.
Replies To: Centering 2 images horizontally
#3
Re: Centering 2 images horizontally
Posted 24 April 2012 - 09:10 AM
This did the trick
IMG.displayed {
clear: all;
display: inline;
margin-left: auto;
margin-right: auto;
}
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|