close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unwanted space between divs

Thread began 6/19/2010 11:59 am by mrs | Last modified 6/19/2010 10:17 pm by neilo | 698 views | 4 replies |

mrs

Unwanted space between divs

Hi, I am having trouble with a layout I have created in CSS Sculptor where some divs that should be touching actually have got a space between them.

I can't figure out what is going wrong. In DW they sit how I intend them to, but when viewed in a browser, spaces appear between them!

I have just thought it might be something to do with line height, but I haven't touched that just as I haven't for previous projects, so I don't know why it's happening to this.

Web address is here:

evo/

Any advice is appreciated.

Thanks

Sign in to reply to this post

mrs

Just to add to what I have said above... on my local copy, I have entered negative settings for margins above and below (-5 top, and -11 bottom) and the spaces have disappeared.

Obviously this has fixed the problem aesthetically, but it is still a bodge job and I would like to know why this has happened in the first place. I just can't see why I should need to bodge and I can't see where the spaces have crept in.

Cor CSS is frustrating at times!

Sign in to reply to this post

Ian

What browser are you using?

It tends not to be CSS that is frustrating, more the differences in interpretation by the browsers (usually IE - don't use it, its rubbish!)

Sign in to reply to this post

mrs

It's the same for all browsers that I have tested on... safari, firefox and ie.

I was hoping it would work in ie so that I could then enter ie specific css, but it's the same across all.

I forgot to make it easy and add a link to the CSS file, so here it is:

screen.css

Thanks.

Sign in to reply to this post

neilo

Hi mrs,

That's an oddity - it only renders properly in IE7!

You could save the existing screen.css as screen_ie7.css and make a conditional statement :

<!--[if lt IE 7]>
<style type="text/css">
<!--
@import url("CSSSculptor/mrsevo2ColumnFixedLeftSidebarHeaderandFooter_NewDesign_css/screen_ie7.css");
-->
</style>
<![endif]-->


For other browsers, in the regular screen.css, it seems to be the p, li and h2 properties that are pushing the divs apart, so you could change the values for those (only for the leftColumn1 and footer divs though) by adding these rules to the end of the screen.css stylesheet:

#outerWrapper #contentWrapper #leftColumn1 p, li {
margin-top: 0px;
margin-bottom: -2px;
}
#outerWrapper #contentWrapper #leftColumn1 h2 {
margin-top: -3px;
}
#outerWrapper #footer p, li {
margin-top: 0px;
margin-bottom: -2px;
}

If no other - more elegant - solution is forthcoming, you could use the above.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...