473,698 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webform Table Width

Hi

I would like to create a table that uses the whole width of IE. I have set
the table width to 100% and the right margin to 0 on the document but still
the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.
Nov 18 '05 #1
8 1571
Remember, there are margin properties on the body tag (leftmargin,
rightmargin, topmargin, bottommargin, marginheight, marginwidth). Set them
all to 0, and you should be ok. You can also create a css style body{
margin: 0px;}.

--
Fadi El-Eter, itoctopus - http://www.itoctopus.com

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I would like to create a table that uses the whole width of IE. I have set the table width to 100% and the right margin to 0 on the document but still the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.

Nov 18 '05 #2
Allready tried both but thanks for your reply. It seems strange that it is
only the right margin that is affected. the left top and bottom are fine.
"Fadi El-Eter" <el*****@hotmai l.com> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl...
Remember, there are margin properties on the body tag (leftmargin,
rightmargin, topmargin, bottommargin, marginheight, marginwidth). Set them
all to 0, and you should be ok. You can also create a css style body{
margin: 0px;}.

--
Fadi El-Eter, itoctopus - http://www.itoctopus.com

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I would like to create a table that uses the whole width of IE. I have

set
the table width to 100% and the right margin to 0 on the document but

still
the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.


Nov 18 '05 #3
Its ok, found the problem. what i forgot to mention was that the document
was in a frame. the frame had scrolling set to 'on'. when i turn scrolling
off, the table fits right to the edge of the window as i told it to.

the problem now is that I need scrolling on.

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I would like to create a table that uses the whole width of IE. I have set the table width to 100% and the right margin to 0 on the document but still the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.

Nov 18 '05 #4
Right defaults to 0px IIRC, the others don't

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Cook" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Allready tried both but thanks for your reply. It seems strange that it is only the right margin that is affected. the left top and bottom are fine.
"Fadi El-Eter" <el*****@hotmai l.com> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl...
Remember, there are margin properties on the body tag (leftmargin,
rightmargin, topmargin, bottommargin, marginheight, marginwidth). Set them all to 0, and you should be ok. You can also create a css style body{
margin: 0px;}.

--
Fadi El-Eter, itoctopus - http://www.itoctopus.com

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I would like to create a table that uses the whole width of IE. I
have set
the table width to 100% and the right margin to 0 on the document but

still
the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.



Nov 18 '05 #5
What is IIRC ?

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:uU******** ******@TK2MSFTN GP10.phx.gbl...
Right defaults to 0px IIRC, the others don't

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Cook" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Allready tried both but thanks for your reply. It seems strange that it

is
only the right margin that is affected. the left top and bottom are fine.


"Fadi El-Eter" <el*****@hotmai l.com> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl...
Remember, there are margin properties on the body tag (leftmargin,
rightmargin, topmargin, bottommargin, marginheight, marginwidth). Set

them all to 0, and you should be ok. You can also create a css style body{
margin: 0px;}.

--
Fadi El-Eter, itoctopus - http://www.itoctopus.com

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
> Hi
>
> I would like to create a table that uses the whole width of IE. I have set
> the table width to 100% and the right margin to 0 on the document but still
> the table is displayed about 50 pixels short of the window edge. Can > anybody help me ?
>
> Thanks.
>
>



Nov 18 '05 #6
Why is it that setting scrolling to auto produces a right margin to allow
for the scroll bar even when the scroll bar is not displayed ?

What i have now is 3 frames: top, middle and bottom.
I require my middle frame to scroll vertically (on the odd occasion)
The middle frame pages contain color that matches the top and bottom frame

The problem: the middle frame page contains white space where a scrollbar
would normally be, leaving a long vertical strip
down the right hand side of the page.

As an alternative, is there perhaps some sort of panel control that i could
use that provides scrolling ?

Thanks.
"Dave Cook" <no****@nospam. com> wrote in message
news:#h******** *****@TK2MSFTNG P11.phx.gbl...
Its ok, found the problem. what i forgot to mention was that the document
was in a frame. the frame had scrolling set to 'on'. when i turn scrolling off, the table fits right to the edge of the window as i told it to.

the problem now is that I need scrolling on.

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I would like to create a table that uses the whole width of IE. I have

set
the table width to 100% and the right margin to 0 on the document but

still
the table is displayed about 50 pixels short of the window edge. Can
anybody help me ?

Thanks.


Nov 18 '05 #7
Sorry....
If I Remember Correctly.
www.acronymfinder.com :}

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Cook" <no****@nospam. com> wrote in message
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
What is IIRC ?

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:uU******** ******@TK2MSFTN GP10.phx.gbl...
Right defaults to 0px IIRC, the others don't

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Cook" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Allready tried both but thanks for your reply. It seems strange that it
is
only the right margin that is affected. the left top and bottom are fine.

"Fadi El-Eter" <el*****@hotmai l.com> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl...
> Remember, there are margin properties on the body tag (leftmargin,
> rightmargin, topmargin, bottommargin, marginheight, marginwidth).
Set
them
> all to 0, and you should be ok. You can also create a css style

body{ > margin: 0px;}.
>
> --
> Fadi El-Eter, itoctopus - http://www.itoctopus.com
>
> "Dave Cook" <da********@ben fieldgroup.com> wrote in message
> news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
> > Hi
> >
> > I would like to create a table that uses the whole width of IE. I

have
> set
> > the table width to 100% and the right margin to 0 on the document

but > still
> > the table is displayed about 50 pixels short of the window edge. Can > > anybody help me ?
> >
> > Thanks.
> >
> >
>
>



Nov 18 '05 #8
Dave,

trying adding cellpadding=0 cellspacing=0 to the table.

what is the value of your border attribute of <table>?

cheers!
rajiv. r
rajspace.org

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:uU******** ******@TK2MSFTN GP10.phx.gbl...
Right defaults to 0px IIRC, the others don't

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Dave Cook" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Allready tried both but thanks for your reply. It seems strange that it

is
only the right margin that is affected. the left top and bottom are fine.


"Fadi El-Eter" <el*****@hotmai l.com> wrote in message
news:O9******** ******@TK2MSFTN GP09.phx.gbl...
Remember, there are margin properties on the body tag (leftmargin,
rightmargin, topmargin, bottommargin, marginheight, marginwidth). Set

them all to 0, and you should be ok. You can also create a css style body{
margin: 0px;}.

--
Fadi El-Eter, itoctopus - http://www.itoctopus.com

"Dave Cook" <da********@ben fieldgroup.com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.phx.gbl...
> Hi
>
> I would like to create a table that uses the whole width of IE. I have set
> the table width to 100% and the right margin to 0 on the document but still
> the table is displayed about 50 pixels short of the window edge. Can > anybody help me ?
>
> Thanks.
>
>



Nov 18 '05 #9

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

Similar topics

1
3251
by: dotnet | last post by:
i put the Downloading Control (window user control) using <object> tag in webForm. how to send selected file list in webfForm to win control without <param> ?
1
1418
by: Melson | last post by:
Hi Can anyone give me suggestion. I've 10 tables in MS SQL. Each table has primary key and different fields in each table. I need to create ASPNET webform to add and update each table. What I'm thinking is to create 1 webform for each table. So the project will have 10 webform to add and edit each table. I don't think this is a good design. Does anyone have a better solution. Pls help. Thanks.
2
8395
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
1
1896
by: Amilcar | last post by:
Hi there, I'm trying to change the position on a webform for a control (a Table control), at run time. The code I wrote for doimg this is: .... Table.Style.Add("LEFT", "120"); Table.Style.Add("TOP", "50"); ....
3
1839
by: Paul | last post by:
Hi just wondering if there is an easy way to a box around a bunch of controls like ----------------------------------------------------- | control1 control2 control3 | | | ---------------------------------------------------- thanks, -- Paul G
1
1448
by: Willem | last post by:
Hi, I'm using a datagrid on a webform with 4 visible and 1 invisible columns. When clicking a button I want to make the invisible column visible. I use the code DataGrid1.Columns(4).Visible = True All fine, but the problem is that the columnwidth changes of all the columns. I would be nice if columns 1 ... 3 have the same width. So column
1
1357
by: PLSH | last post by:
Good day, I hope some one can help. I would like to programmatically set the width of my webform datagrid columns. Preferably to a set width or otherwise to autofit the entire datagrid. Please can some one help me Thanks in advance.
0
1096
by: Steve | last post by:
I'm developing an ASP.Net 2 web site using VS 2005 that is using a MasterPage with a Table on it. The table has three columns - each with contentPlaceHolder. After developing the MasterPage, I created a number of Web Forms that reference the MasterPage. On each of the pages, the contentplaceholder for the middle column is a custom content holder. The problem I'm having is that the width of the table column1 on the pages doesn't match...
0
1056
by: Christian Cambier | last post by:
Hi, sorry to post this question about HTML in this group but i didn't find a HTML newsgroup. I just want a html-table to fill the entire space of a web-page as follows <table border="1" style="width: 100%; vertical-align="top"; height: 100%" cellpadding="0" cellspacing="0">
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.