PDA

View Full Version : HTML Frames Question


Red Barchetta
07-25-2009, 06:23 PM
Yeah, yeah, I know, I shouldn't use frames. I'm using them simply for a quick mock-up to achieve a cool little scrolling effect, with the lower window's content seemingly being overlapped by the frame above.

Anyway, the problem I'm running into is that there's a gap between above the lower frame's content; this breaks the illusion of the overlapping frame above because the background color shows through the gap.

Hopefully that made sense; basically, is there someway to push the lower frame's content to the very top of the frame?

Red Barchetta
07-25-2009, 06:34 PM
Nevermind! Just re-discovered this little bit of CSS, and it solved my problem!

html, body {
margin: 0;
padding: 0;
}

Send questions for Cecil Adams to: cecil@straightdope.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright 2018 STM Reader, LLC.