Content Pages

G

Guest

I have a div named body in my content of my content page and resize to the
full sized of the content control, (using my css). There seems to be about a
quarter of an inch at the top of my content, and the header on my master
page. How do I resize the content control so that I do not have so much
space, or no space between master page headers and footers, The same is
happening on the footer side. I have margin, top and bottom set to 0. Please
help
 
G

Guest

Check the markup and styles in the master page. For example, a master page
that looks like the following would display the content at the very top of
the page without any margin:
<body style="margin:0;">
<form id="form1" runat="server">
<div >
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
 
G

Guest

I just tried Phillips suggestion (thanks for the help), but the content page
did not shift up. I have about an 8 px space, that I would like to
incorporate into my content page. I have a css with the body,
margin-top:0px; and set it as well in the markup.
<%@ Master Language="C#" AutoEventWireup="true"
CodeFile="PRIMaster06.master.cs" Inherits="PRIMaster06" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="PRIStyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="head1">
<img id="PRILogo" src="PRI Logo/PRsmall2.JPG" /> </div>

<div id="MainMenuDiv">

</div>

<form id="form1" runat="server">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>

</form>
<div id="foot">
<p>
Copyright 2004-2005 Prepared Response, Inc.
</p>
</div>
</body>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top