473,395 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Content Pages

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
Jan 15 '06 #1
3 1155
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>

--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"jfinnell" wrote:
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

Jan 15 '06 #2
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>

"jfinnell" wrote:
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

Jan 16 '06 #3
Try adding it in manually in the body TAG and see if it works
Patrick'

"jfinnell" <jf******@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
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>

"jfinnell" wrote:
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

Jan 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jonathan.beckett | last post by:
Hi All, For the past few months I have been working on an open source Apache/PHP/MySQL content management system - and have recently made it available for download. It's still very much a...
0
by: jonathan.beckett | last post by:
Hi All, I have just made version 0.4.8 of the PluggedOut CMS Content Management System available for download - it's free, and covered by the GPL. It's still very much a work in progress...
7
by: Water Cooler v2 | last post by:
I know what it is, and yet the knowledge of what a CMS is, is so vague that I find myself asking this question every now and then. I've googled and read the resources too. However, the knowledge is...
3
by: Chris Lincoln | last post by:
I am currently working on a company site and have run into a problem with the search aspect of the site. I am running .net 2.0 and iis 5.1. The issue is as follows: Indexing Service is properly...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
0
by: alexsink | last post by:
I am trying to get apache content negotiation to redirect only zh-CN(mainland China, where Simplified Chinese translations are available) language types to Chinese web pages, and have all other...
1
by: Martin Mücke | last post by:
I got a website consisting of about 150 php pages. The site uses a frameless table based design. Header and menu are always the same and therefore should be extracted. At the moment I got a...
7
by: Electric Co. | last post by:
Hello, note: This is for a Faculty web site that is undergoing a migration to an open source solution so my motives are legit. I need to build a relay from IIS handling URL_A to a PHP server...
7
by: TheLongshot | last post by:
I just recently converted a few pages of my application to using master pages. Problem is, in all of my content pages, the contents are centered. I can't figure out why. The markup in the...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.