473,585 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ 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 1035
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
3961
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 is some sample code: ---------------------------------------------------------- <div id='header' style='border:red solid medium'> <p>This is the...
1
3837
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 match up with the detail. I've used the all the formatting buttons such as align, size, etc. but it doesn't seem to work that well. I've also...
0
963
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
3038
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 horizontal alignment of the other two controls. It appears that they are being stretched due to the absence of the others and I'm not sure how to...
2
2742
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 this very path some time ago and can answer! Fact is you can't use the border attribute and also validate as a frameset, but you can work around it...
9
2919
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 like Firefox which don't support them. Not sure if I've explained the above well but my borders display in IE but not in Firefox.
0
2598
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. It does not do this in Safari, but then Safari also does not include the background colours when printing. (When I print, I'm missing the borders...
0
1587
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 browser but when you print onto paper, if the table goes over one page, it only prints borders on the first page. Can anyone help me please? I'd really...
2
30852
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 and what is the all other border type name? "borders: top double, bottom double, left double, right double;" Thank You Nicolas
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8212
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5389
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2343
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 we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.