# HTML Frames Question

**URL:** https://boards.straightdope.com/t/html-frames-question/504263
**Category:** Factual Questions
**Created:** [July 25, 2009, 11:23pm UTC](https://boards.straightdope.com/t/html-frames-question/504263 "2009-07-25T23:23:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)
#### Post date: [July 25, 2009, 11:23pm UTC](https://boards.straightdope.com/t/html-frames-question/504263/1 "2009-07-25T23:23:16Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Red\_Barchetta](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Red\_Barchetta](https://boards.straightdope.com/u/Red_Barchetta)
#### Post date: [July 25, 2009, 11:34pm UTC](https://boards.straightdope.com/t/html-frames-question/504263/2 "2009-07-25T23:34:42Z")

</div>

Nevermind! Just re-discovered this little bit of CSS, and it solved my problem!

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