logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Dreamweaver General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-23-2014, 10:42 AM   #1
hutch
 
Join Date: Mar 2014
Posts: 1
Default Images in div on 2 lines instead of 1

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?
hutch is offline   Reply With Quote
Old 03-27-2014, 06:33 PM   #2
Ricky55
Ricky55's Avatar
 
Join Date: Oct 2005
Location: West Yorkshire, UK
Posts: 1,855
Default

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*/
}
__________________
Qwerty Design

Check out my blog for web design insights.
http://www.qwerty-design.co.uk/
Follow me on Twitter: @QwertyDesignUK
Ricky55 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:53 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com