Link to home
Start Free TrialLog in
Avatar of jascanon
jascanonFlag for United States of America

asked on

Working with the header and footer rows in a frame layout, cannot get rid of the margins above the content.

There are margins at the top of my row 1 header and row 3 footer that I want to set to zero or 1, but I cannot reduce or eliminate them. Is the problem in frameset or frame? Or do I change my css stylesheet for the margin? I can scroll on the rows, but prefer not to.
<!DOCTYPE HTML PUBLIC *-//W3C//DTD HTML 4.01 Frameset//EN" 
	"http://www.w3.org/TR/html4/frameset.dtd">
 
<html>
 
<head>
	<title>Frame Layout</title>
	<!--no body elements allowed-->
	<!--frame tags are nestled inside of framesets-->
	<!--other than head and frameset, there is no other content in the document-->
</head>
<!--the master frameset, specifying 3 rows -->
<frameset rows="13%,78%,*"  ><!--Three variables = 3 rows, showing the vertical percentage heights of each row. 
							Frameset defines the layout of the entire page-->
 
<!--row 1, 1 column--><!--properties of first frame-->							
	<frame name="top" src="header6.html" margin="1px" padding="1px"/>	
 
<!-- The nested frameset: the second row will be split into 2 columns. Each column must have its own frame name.-->
<frameset cols="22%, *" margin="0px">
		<frame name="navbar" src="navbar6.html"/>
		<!--The header, navbar, and footer do not change, while the cell named "content" receives the linked document-->
		<frame name="content" src="maincontent6.html" />
</frameset><!--close second row-->
 
<!--border row--><!-- <frame name="bottom" src="favorites.html" /> -->
	<frame name="footer" src="footer6.html" />	
 
 
</frameset>
 
</html>

Open in new window

Css-Styling-sheet
Avatar of Devario Johnson
Devario Johnson
Flag of United States of America image


<!DOCTYPE HTML PUBLIC *-//W3C//DTD HTML 4.01 Frameset//EN" 
	"http://www.w3.org/TR/html4/frameset.dtd">
 
<html>
 
<head>
	<title>Frame Layout</title>
	<!--no body elements allowed-->
	<!--frame tags are nestled inside of framesets-->
	<!--other than head and frameset, there is no other content in the document-->
</head>
<!--the master frameset, specifying 3 rows -->
<frameset rows="13%,78%,*" frameborder="0" ><!--Three variables = 3 rows, showing the vertical percentage heights of each row. 
							Frameset defines the layout of the entire page-->
 
<!--row 1, 1 column--><!--properties of first frame-->							
	<frame name="top" src="header6.html" margin="1px" padding="1px" frameborder="0"/>	
 
<!-- The nested frameset: the second row will be split into 2 columns. Each column must have its own frame name.-->
<frameset cols="22%, *" margin="0px" frameborder="0">
		<frame name="navbar" src="navbar6.html"/>
		<!--The header, navbar, and footer do not change, while the cell named "content" receives the linked document-->
		<frame name="content" src="maincontent6.html" />
</frameset><!--close second row-->
 
<!--border row--><!-- <frame name="bottom" src="favorites.html" /> -->
	<frame name="footer" src="footer6.html" frameborder="0"/>	
 
 
</frameset>
 
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of scrathcyboy
scrathcyboy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jascanon

ASKER

A bit of overkill, but it solved my problem. The frameborder="0" worked fine in the header, will examine the other rows later.
Thanks
Jim