Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2004, 12:31 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stretching Tables

Previously when I created tables in Dreamweaver UltraDev I could make a box to have the table stretch to fit the size of the page. That way viewers with different screen resolutions would have the table span the page.

How would I do something similar in Visual Studio.NET?

(Move on request of O.P. - PLanoie)
 
Old May 11th, 2004, 01:31 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Is this a web application? If so, why don't you just set the tables width to 100%?

J
 
Old May 12th, 2004, 03:17 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Easiest way to approach this, I would say, is to go directly into the html code and in the <table> tag, add an attribute of width:

<table width="100%">

of course, there will probably be many other attributes, and width may already be present. If it is, then just change whatever value is there to "100%"

To do this without going into the html, however, simply select the table, go to the properties window (either through the properties window on the right hand side of the IDE or right click the table and select 'properties') and set the width property to be 100%

 
Old May 12th, 2004, 01:44 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
quote:Originally posted by jaucourt
 Easiest way to approach this, I would say, is to go directly into the html code and in the <table> tag, add an attribute of width:

<table width="100%">

of course, there will probably be many other attributes, and width may already be present. If it is, then just change whatever value is there to "100%"

To do this without going into the html, however, simply select the table, go to the properties window (either through the properties window on the right hand side of the IDE or right click the table and select 'properties') and set the width property to be 100%

Isn't this what I stated in my previous post? :)

J





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stretching Div [email protected] CSS Cascading Style Sheets 2 August 5th, 2008 02:32 PM
stretching the background image?? nerssi CSS Cascading Style Sheets 3 February 3rd, 2007 04:55 PM
Table Cell Auto Stretching When Height Is Defined rsearing CSS Cascading Style Sheets 5 November 26th, 2006 10:26 AM
Contentpage stretching table cells rsearing ASP.NET 2.0 Basics 3 November 14th, 2006 10:39 PM
creating tables within tables in access??? carswelljr Access 3 August 23rd, 2006 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.