View Full Version : div problem

08-28-2009, 12:12 AM

I'm trying to insert a div in my page. When I insert it, it jumps down about 10 px below the insertion point. Anyone have any idea why this would happen?


08-28-2009, 01:12 AM
Does it jump in the browser or just in Dreamweaver. And is there somewhere we can see the page?

08-28-2009, 01:55 PM
Thanks, but I fixed it. I'm still learning to set properties for boxes. Do you know what the "clear" setting is for div-boxes? The properties are "width, height, padding, float, clear and margin." What's the "clear?"

Thanks DWCourse!

08-28-2009, 02:05 PM
Sure,when you set a a float (left or right), all the content after the floated object wraps around the object. However at some point you might want to jump down the page past the floated object. Clear (left, right or both) drops the object with the clear below the floated object and makes if full width (unless set otherwise).