473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

aligning and snaping page to borders

It seems a quite difficult problem. What is the best way
to make page and all the controls fit nicely in the browser window?
I have a 3x3 table and controls in it and want it to automaticaly
resize itself on the whole html page so you can't see the gaps
between browser borders and the page.
When I set width and height to 100% I get weird oversized page.
I couldn't find helpful articles on that matter.
Anyone could help here? I use VS2005 asp.net2.0
Thanks

U.f.i.T.

Jul 21 '06 #1
1 1028
To get rid of the "gap" between your content and the browser window, in
the body tag you need to set the margin to 0:

<body style="MARGIN: 0px;">

As far as the width and height of your table, that is a little more
difficult. Setting the width to 100% should work, but I don't think
the height property works consistently in percentages on a table
between browsers.

Good luck!
Eric wrote:
It seems a quite difficult problem. What is the best way
to make page and all the controls fit nicely in the browser window?
I have a 3x3 table and controls in it and want it to automaticaly
resize itself on the whole html page so you can't see the gaps
between browser borders and the page.
When I set width and height to 100% I get weird oversized page.
I couldn't find helpful articles on that matter.
Anyone could help here? I use VS2005 asp.net2.0
Thanks

U.f.i.T.
Jul 22 '06 #2

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

Similar topics

5
by: Tony | last post by:
I seem to be missing something in my understanding. If I leave off absolute positioning, shouldn't nested DIV/SPAN be displayed inside the parent, and ones outside that display separately? Here...
1
by: tesc | last post by:
I'm sure this is pretty simple but I'm having a hard time with it. I have a report that has multiple columns and have to change some of the titles in the page header. As a result, the titles don't...
0
by: MrMike | last post by:
If I have a datagrid that, when printed, takes up more than 1 page the datagrid's borders will only print on the first page. How can I have the borders print on each page? Thanks.
1
by: Eric | last post by:
I have a user control (with three controls inside it) that appears multiple times in the containing page. Sometimes I want to hide the rightmost control in the UC but if I do that it screws up the...
2
satchmo67
by: satchmo67 | last post by:
Howdy, I want to reply to a really old post on this subject. The original poster was battling with the problem of trying to validate a frameset page and use the border attribute. I have been down...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers...
0
by: David Stone | last post by:
I have a page containing a table which displays as expected but which, when printed from either Firefox or Camino, loses some of the vertical borders between cells in both the table head and body. ...
0
by: LStewart | last post by:
Hi Guys, I am having some trouble with some tables. What I want to do is make it so that the table prints out on paper with the table borders. The borders are there on the web page in the...
2
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.