PDA

View Full Version : Images in div on 2 lines instead of 1


hutch
03-23-2014, 11:42 AM
Hello

I am just starting to learn the in's and out's of dreamweaver but currently having a problem with images I have put in a div on one line but then when preview it in the browser they are on 2 anyone got any ideas why?

Ricky55
03-27-2014, 07:33 PM
Yes its because Divs are block level elements. This is HTML / CSS 101.

If you want them to sit side by side you need to either float them on make them display inline.

div {
float: left;
}

div {
display: inline-block; /*Not much point in this*/
}