473,804 Members | 3,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting width

Hi all,

I have a page with 3 panels. PanelA at the top, PanelB in
the middle and PanelC at the bottom.
Can I size PanelA and PanelC to a width of 10 pixel whereas
the PanelB in the middle takes the rest of the (vertical)
space also if the client browsers window is resized??

Thanks for your help and ideas.

Jenny
Nov 17 '05 #1
2 1290
You might try putting the entire contents of the panels into a Table with
three rows, one cell for each row....

Then, use the table/Cell properties to accomplish what you want

David Wier
http://aspnet101.com
http://aspexpress.com
"Jenny" <j.********@SPA Mx-mail.net> wrote in message
news:09******** *************** *****@phx.gbl.. .
Hi all,

I have a page with 3 panels. PanelA at the top, PanelB in
the middle and PanelC at the bottom.
Can I size PanelA and PanelC to a width of 10 pixel whereas
the PanelB in the middle takes the rest of the (vertical)
space also if the client browsers window is resized??

Thanks for your help and ideas.

Jenny

Nov 17 '05 #2
You can create Panel A and C as user controls that are a maximum of
10px high. Then include them in your aspx page inside a table. Then
give the table detail a height of 100%

<table width="100%" height="100%">
<tr>
<td width="100%" height="100%">
<PanelA:UserCon trol />
...Put code for Panel B here, or create another
custom control.
<PanelC:UserCon trol />
</td>
</tr>
</table>

Hope this helps,

Neil


"Jenny" <j.********@SPA Mx-mail.net> wrote in message news:<09******* *************** ******@phx.gbl> ...
Hi all,

I have a page with 3 panels. PanelA at the top, PanelB in
the middle and PanelC at the bottom.
Can I size PanelA and PanelC to a width of 10 pixel whereas
the PanelB in the middle takes the rest of the (vertical)
space also if the client browsers window is resized??

Thanks for your help and ideas.

Jenny

Nov 17 '05 #3

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

Similar topics

5
8311
by: Laura | last post by:
Hello, Newbie question: Does anyone know how to dynamically set the screen width in an applet? I have an applet that creates a horizontal bar menu on a webpage, and I would like the width to be 100%. Unfortunately, this doesn't work with Explorer. so, in my html page, I wrote a function like this: <SCRIPT LANGUAGE="JavaScript"> int function getScreenWidth()
1
11193
by: relaxedrob | last post by:
Howdy All! I am really stuck with this one - I want to completely create a table within JavaScript and insert it into the document, with onMouseOut and onMouseOver handlers in the table rows. Below is a sample of the code I have created. It all works in Netscape 7.1, but in IE 6 it shows the table but the handlers do not run. I can prove the handlers are even there (see the commented out alert command in the code) so why aren't they...
2
55478
by: Marek Mänd | last post by:
How do i set/specify minimum width (min-width) and minimum height (min-height) to the table cell (td/th)? No, I dont want explicit width setting. No, I dont want spacer GIF's. Can I do it in CSS?
1
2201
by: Colin Ward | last post by:
Hi. I have a popup modal form which gets part of its caption from code. The part of the caption which is determined from code is the name of the event. For example the caption would be "Add Year for ", where event name is the name of the event for which the user wants to add a year. The event names are all different lengths and sometimes when the form pops up the caption is truncated with the ellpsis(...) Is there a way to determine how...
2
2238
by: Paresh Dhakan | last post by:
Hi ! I am facing a wierd problem in setting the width of a form to 20. Suppose I create two forms Form1 and Form2. Form1 is the container, meaning this.IsMdiContainer = true; Form2 is child form meaning,
2
10162
by: Jacques Leclerc | last post by:
What's the trick to dynamically setting the width of a textbox? In the code behind page Page_Load function I'm trying to dynamically set the width of a textbox. TextBox1.Width = "75px" I keep getting an error that the size has to be in WebControls.Units. I tried doing a CType to cast the value as a WebControl Unit and also tried
0
5093
by: Matt | last post by:
This took way to long to figure out - now that I have it working I thought I would share with the group. I've seen tons of posts with very little good answers on this seemingly simple thing that took me 2 hours to figure out! You can set tabs through RichTextBox using the cheesy SelectAll()-> SelectionTabs() method, but that only works after the text has been entered. If the user hits Enter on any line, it goes back and uses the...
6
45200
by: lilOlMe | last post by:
Hi there! I'm having a problem with a <span> element's width. I have a span element within a div block: <div class="picker"> <span id="ctl00_cph_mainContent_TPKR_Tues_LBL_TitleForPicker" class="pickerTitle">Tuesday</span> ... </div>
8
16099
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list which modifies Application setting section but how to add new item to userSettings ? Andrus.
4
8019
by: David C | last post by:
I am emailing a GridView and setting its Width property to 900 before rendering and it works great. However, when the rendering is done, I want to reset the Width back to 95% like it was. When I try to do that it throws an error "Conversion from string "95%" to type 'Integer' is not valid." My code causing the error is below. Is there a work around? Thanks. David gvWeeklyPlanner.Width = "95%"
0
9704
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
9572
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
10319
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
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
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
3
2978
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.