Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Center images side by side in Div Re: Center images side by side in Div

#71286
eip56
Member

A possible solution would be to place the images div within another div then do the margin: 0 auto; Not sure exactly understand the outcome you want a link to a test page would be helpful but this is what it might look like:

Code:

The css would like something like this:

Code:
#container #banner {
margin: 0 auto;
}

#container #banner img {
float: left;
/* Then add individual styles for the images */

That would probably get the outcome your looking for.