473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Panel in Table with overflow problem with firefox

Simple compatibility question, I have this:
<table height="100%" width="50%" border="1">
<tr height="50%">
<td>
<asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"
CssClass="scroll">
<asp:Label id="Label1" runat="server">Label</asp:Label></asp:Panel>
</td>
</tr>
<tr height="50%">
<td>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></td>
</tr>
</table>

which goes with css:
..scroll {
overflow:scroll;
}

on button1 click's action, it'll create something huge on the label so that
it causes overflow inside the panel bounded by the table's 50% on the row.
Simple enough, in IE, the table will retain the 50% row, but in Firefox, the
table gets warped, and the scroll bars doesn't get used.
Need something to make it stick to the table's constraints no matter what.

thx
Nov 19 '05 #1
2 8330
Jason,

How about adding the width 50% to the .scroll class in the .css file and
then hooking up the .scroll to the label itself instead of the panel?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jason Chu" <Ja******@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Simple compatibility question, I have this:
<table height="100%" width="50%" border="1">
<tr height="50%">
<td>
<asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"
CssClass="scroll">
<asp:Label id="Label1" runat="server">Label</asp:Label></asp:Panel>
</td>
</tr>
<tr height="50%">
<td>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></td>
</tr>
</table>

which goes with css:
.scroll {
overflow:scroll;
}

on button1 click's action, it'll create something huge on the label so
that
it causes overflow inside the panel bounded by the table's 50% on the row.
Simple enough, in IE, the table will retain the 50% row, but in Firefox,
the
table gets warped, and the scroll bars doesn't get used.
Need something to make it stick to the table's constraints no matter what.

thx

Nov 19 '05 #2
Thanks for replying.

But that wouldn't work in my case...the sample I've posted was...a sample...
What really is going on, is I have a table which defines the page layout for
everything, and in one of these cells, I have a datagrid which acts as a list
(no paging). So if there's only one list item, it will have one record..and
the rest of the cell will be blank, but if it populates larger than that
cell..the scroll bars will come in.

With your solution, my datagrid will expand itself in case where there isn't
much records...and if the number of records makes it larger than the cell,
the scrollbars doesn't appear on the datagrid.

that is why I put the panel in that cell, and with the datagrid in that panel.

"S. Justin Gengo" wrote:
Jason,

How about adding the width 50% to the .scroll class in the .css file and
then hooking up the .scroll to the label itself instead of the panel?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jason Chu" <Ja******@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Simple compatibility question, I have this:
<table height="100%" width="50%" border="1">
<tr height="50%">
<td>
<asp:Panel id="Panel1" runat="server" Height="100%" Width="100%"
CssClass="scroll">
<asp:Label id="Label1" runat="server">Label</asp:Label></asp:Panel>
</td>
</tr>
<tr height="50%">
<td>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></td>
</tr>
</table>

which goes with css:
.scroll {
overflow:scroll;
}

on button1 click's action, it'll create something huge on the label so
that
it causes overflow inside the panel bounded by the table's 50% on the row.
Simple enough, in IE, the table will retain the 50% row, but in Firefox,
the
table gets warped, and the scroll bars doesn't get used.
Need something to make it stick to the table's constraints no matter what.

thx


Nov 19 '05 #3

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

Similar topics

1
by: Marek Mänd | last post by:
I have question regarding CSS overflow atribute. <body> <table style="height:100%" id="pagetable"> <td style="vertical-align:top;"> <div...
3
by: N. Demos | last post by:
I have a single row table with fixed dimensioned cells nested inside a fixed dimensioned div, which has overflow: hidden. The div's dimensions are such that It should only display the first two...
2
by: Ash Man | last post by:
Hi, I have to have only a vertical scroll bar within a table. But when I specify "overflow: auto", it gives both vertical and horizontal scroll bars. Browser used to test is Firefox. How to solve...
2
by: Raghu Raman | last post by:
Hi, am a biginner in .net designing.Does the panel control is enough to act as a container .Because if , i design my controls in textboxes rows& cols , i heared that the aclignment won't change...
1
by: Pietro | last post by:
The asp:Panel tag renders a DIV in IE and TABLE in Firefox, where can i configure it to render DIV in both. Thanks Pietro
3
by: Pavan | last post by:
Hi All, I am having a wierd problem while displaying my panel. My code is something like this <table> <tr> <td width=100>label</td> <td width=100>label</td> <td width=100>label</td> <td...
2
by: lexor | last post by:
Hi! I'm struggling with a strange IE behavior regarding tables. I have a table like the following one <table cellpadding="0" cellspacing="0" border="1" width="500"> <tr> <td><div...
2
by: ATR2000 | last post by:
I have setup a Panel to have a width of 100% so that it will adjust to users screensize. Within the panel I have a table. Unfortunately the table holds a lot of data and exceeds the size of the...
5
by: Stepheno | last post by:
Hi, I am a recently converted Iseries (AS/400) RPG programmer trying to learn HTML/CSS/JavsScript all at the same time (not fun). My problem deals mostly with CSS. I will be reveiving a table,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.