Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

framesets and margins 1

Status
Not open for further replies.

gsmartin2

Programmer
Oct 25, 2010
3
0
0
US
Hello

Ok, i designed a very simple site using frames. In my test2.html i am using a frameset in place of a body. I just decided i wanted to create margins on both sides of what would be the body, only the margin commands you would usually use with the body does not work in a frameset. Help, how do i squeeze in the the site on either side, creating about a one inch margin. Here is the code.

<code>
<html xmlns="<head>
<link rel="stylesheet" href="test.css" type="text/css" >
<title >DW Equipment</title>
</head>
<frameset rows="25%,*">
<frame src="header.html" target="showframe" />
<frameset cols="15%,85%">
<frame src="nav.html" />
<frame src="home.html" />
</frameset>
</frameset>

</html>
</code>
 
Use a left margin in nav.html and a right margin in home.html.

Your test.css does not apply to the frames.
You need to include specific css in each of the those pages (header, nav, home).



Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
I ended up using the margin in header, and it worked. thanks, you spurred the thought.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top