PDA

Click to See Complete Forum and Search --> : Framesets


hpl
Dec 14th, 2004, 05:33 AM
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:


<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?

hpl
Dec 14th, 2004, 06:20 AM
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

hpl
Dec 14th, 2004, 06:55 AM
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???

CornedBee
Dec 14th, 2004, 07:35 AM
The margin could come from the embedded page.

hpl
Dec 14th, 2004, 07:58 AM
I have checked that, you mean on the page including the frameset?
This is my frame 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>

CornedBee
Dec 14th, 2004, 08:20 AM
No, I mean the page embedded in the frameset. Browsers all have either a margin or a padding on the body element by default.

hpl
Dec 15th, 2004, 04:13 AM
OK, so I have to set Marginwidth=0 and marginheight=0 on the page? How and where do I do that?

CornedBee
Dec 15th, 2004, 04:17 AM
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;
}

hpl
Dec 15th, 2004, 04:20 AM
Great, I'll try that, thanks :thumb: