LaLaLa Posted November 23, 2006 Share Posted November 23, 2006 I have another question about Frames:Is there a way to change the "padding" for the frames (like the cellpadding="*" attribute for tables)?I need to get the stuff in the frame to rest right against the edges, so you can't even tell the frame is there...Right now, here's the code I have: <html><head><title>Welcome to my Webpage!</title></head><frameset rows="100,*" frameborder="0" framespacing="0"><frame noresize="noresize" scrolling="no" src="frame a.htm"><frameset cols="200,*" frameborder="0" framespacing="0"><frame noresize="noresize" scrolling="no" src="frame b.htm"><frame noresize="noresize" scrolling="yes" src="frame c.htm"></frameset></frameset></html> As you can see (if you pull up in I.E.), the stuff inside the tables isn't right up against the egge. How can I fix this?LaLaLa EDIT: Sorry, I meant to name the topic "Frames", not "Tables"... Link to comment Share on other sites More sharing options...
real_illusions Posted November 23, 2006 Share Posted November 23, 2006 in the page thats going to appear in that frame, trymargin: 0px;orpadding: 0px;on the body.in the cssalthough i try to avoid frames at all costs, so, therefore i have no idea if this works. Link to comment Share on other sites More sharing options...
aalbetski Posted November 23, 2006 Share Posted November 23, 2006 real_illusions is correct. The padding and margins that are preventing the pages from butting up are from the pages that are loaded into the frames. Not the frames themselves. You've done all you can to control them. Now add this to those pages<style>body,table{margin:0pxpadding:0px}</style>you may need to tweak this for other elements, but thats the path Link to comment Share on other sites More sharing options...
LaLaLa Posted November 24, 2006 Author Share Posted November 24, 2006 real_illusions is correct. The padding and margins that are preventing the pages from butting up are from the pages that are loaded into the frames. Not the frames themselves. You've done all you can to control them. Now add this to those pages<style>body,table{margin:0pxpadding:0px}</style>you may need to tweak this for other elements, but thats the pathThanks! That worked just perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now