Hi.
I have two images with a caption underneath it. (like this example shows: CSS: figures & captions)
So, I want two or more images (with caption) to follow each other on the same line. The question really boils down to this:
How do I center two div tags that are on the same line?
I could do this in my CSS-file:
Then the two elements would go on the same line, but would not be centered.
I'm kinda looking for something equivalent to this:
I've heared someone speak of the "display: inline;", but I tried to use it, but it didn't work out very well..
Any help is really much appreciated :)
I have two images with a caption underneath it. (like this example shows: CSS: figures & captions)
So, I want two or more images (with caption) to follow each other on the same line. The question really boils down to this:
How do I center two div tags that are on the same line?
I could do this in my CSS-file:
Code:
div.element {
float: right;
}
I'm kinda looking for something equivalent to this:
Code:
div.element {
float: center;
}
Any help is really much appreciated :)
Comment