logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-25-2012, 09:36 PM   #1
gigiloumill
gigiloumill's Avatar
 
Join Date: Apr 2009
Location: Miami, FL
Posts: 493
Default Div will not line up.

Guys, I have been trying to line up a div and can't seem to get it. I'm working on a website for a client and I have set up a div at the bottom, right before the footer called "skyline". In that div I included a div for a banner called "sky-banner" and set up the css rule to position it. My problem is that div will not obey it's rule and it gets stuck flushed with "skyline". While viewing in DW, it looks perfect but not on a browser. Can someone please tell me what I'm not seeing. Thanks. Here's the link: http://starionmedia.com/spanglish/ Thanks
__________________
Keeping your business connected.
www.starionmedia.com
gigiloumill is offline   Reply With Quote
Old 02-26-2012, 09:04 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

This is called "margin collapse"

Adding a 1px border or 1px of padding to the top of #skyline will prevent the collapse. I believe you can also fix it by adding display:inline-block to the #skyline rule.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse 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 01:13 PM.


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