Dec 14th, 2004, 06:33 AM
#1
Thread Starter
Frenzied Member
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?
Dec 14th, 2004, 07:20 AM
#2
Thread Starter
Frenzied Member
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
Attached Images
Dec 14th, 2004, 07:55 AM
#3
Thread Starter
Frenzied Member
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???
Attached Images
Dec 14th, 2004, 08:35 AM
#4
Re: Framesets
The margin could come from the embedded page.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Dec 14th, 2004, 08:58 AM
#5
Thread Starter
Frenzied Member
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>
Dec 14th, 2004, 09:20 AM
#6
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Dec 15th, 2004, 05:13 AM
#7
Thread Starter
Frenzied Member
Re: Framesets
OK, so I have to set Marginwidth=0 and marginheight=0 on the page? How and where do I do that?
Dec 15th, 2004, 05:17 AM
#8
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;
}
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Dec 15th, 2004, 05:20 AM
#9
Thread Starter
Frenzied Member
Re: Framesets
Great, I'll try that, thanks
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width