View Full Version : Blank area over iFrame

06-05-2012, 10:34 AM
Hello everyone

I'm new to web coding and experiencing some trouble with the iFrame on my first webpage. I'm using Dreamweaver CS4 and want to remove the space between the menu at top and the iFrame box.

Hope anyone can help me out. I'm sorry if I posted this in the wrong category.


Thanks in advance.

06-05-2012, 01:05 PM
Hope anyone can help me out.
May be, but we need to see the complete HTML+CSS of that page Or a link to that page.

Scott R
06-05-2012, 03:48 PM
I believe it is the <p> </p> tag. Many times while i write code and get unknown spaces like this are because of something I have in the page that I do not need such as a paragraph tag or an extra div tag or other various tags. try removing the <p></p> tags and see if that fixes your problem.

06-05-2012, 05:20 PM
Yea the empty paragraph tag has a class of "margin". So remove that like Scott R said and you should see the difference. Also I would look in your CSS and find the class named "margin" and remove it since you would normally set your margin per class or id not make it its own class.

Also you should make a class for that first div you have in grey and put your inline styles in to that. Did Dreamweaver add those inline styles like that? I use CS4 as well and have never had it do that before. Although it wouldnt surprise me as that program tends to have some strange quirks. Such as making id's instead of classes in the stylesheet if you use the "from template" setting.

06-05-2012, 06:05 PM
Thanks guys! You where right, the paragraphs where messing things up.