-
Framesets
I am about to change some existing code based on framesets :( .
I have a problem, how do I align the code EXACTLY to the right or left using this frameset:
Code:
<frameset rows="300px,*" border=0 valign=top style="position:fixed; top:0px;">
<frame name="top" src="operator.asp" frameborder=1 scrolling=no>
<frameset cols="50%,*">
<frame name="venstre" src="intro.htm" frameborder=1 style="position:fixed; right:0px;">
<frame name="right" src="blank.htm" frameborder=1 style="position:fixed; left:0px;">
</frameset>
</frameset>
If I make some code in the file Intro.htm and align it to the right, then there is a margin of appr. 10 px. HOW DO I GET RID OF THAT?
-
1 Attachment(s)
Re: Framesets
Here is a screenshot, which shows the frames and the borders. I wish to have the table left placed at the right of the left frame
-
1 Attachment(s)
Re: Framesets
Now I've sloved the problem with the upper margin and the left margin setting marginwidth=0 and marginheight=0 in the frameset, but...
it seems like there is a margin to the right???
-
Re: Framesets
The margin could come from the embedded page.
-
Re: Framesets
I have checked that, you mean on the page including the frameset?
This is my frame code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Logstor WebStaTech v2.0 © - Calculation tool for preinsulated pipe systems</title>
<link href="default.css" rel="stylesheet" type="text/css">
</head>
<frameset rows="300px,*" border=0 valign=top>
<frame name="top" src="operator.asp" frameborder=1 scrolling=no marginwidth=0 marginheight=0>
<frameset cols="50%,*">
<frame name="venstre" src="intro.htm" frameborder=1 marginwidth=0 marginheight=0>
<frame name="right" src="blank.htm" frameborder=1 marginwidth=0 marginheight=0>
</frameset>
</frameset>
<body>
</body>
</html>
-
Re: Framesets
No, I mean the page embedded in the frameset. Browsers all have either a margin or a padding on the body element by default.
-
Re: Framesets
OK, so I have to set Marginwidth=0 and marginheight=0 on the page? How and where do I do that?
-
Re: Framesets
You don't. You do it in a style sheet that you link from whatever page you include in your frameset.
body {
margin: 0;
padding: 0;
}
-
Re: Framesets
Great, I'll try that, thanks :thumb: