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="scrol l">
<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 2 8340
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******@discu ssions.microsof t.com> wrote in message
news:06******** *************** ***********@mic rosoft.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="scrol l"> <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
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******@discu ssions.microsof t.com> wrote in message news:06******** *************** ***********@mic rosoft.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="scrol l"> <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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
style="height:100%;overflow:scroll;/*overflow:-moz-scrollbars-vertical;*/overflow-x:hidden;overflow-y:auto;">
<table style="width:100%;">
which works fine in IE as i want it to, but not in Mozilla/Firefox 1.03.
|
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 table cells.
This all renders correctly in MSIE 6.x, but doesn't in Firefox. In
Firefox, the cell widths are reduced so that all the cells are displayed
within the div frame.
I've played around with this: commenting out css properties to see if...
|
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 this problem? Please
let me know if more info is needed about the problem. It would be
helpful if I get the solution soon.
Thank you
|
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 in run time across the
browsers.
is it true? if the panel provides guaruntee that it keeps the controls
alignment same in runtime across the browsers, i can very well use the
panel control instead of tables ,to make it easier to control in...
|
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
| |
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 width=100>button in this cell</td>
|
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 style="overflow:hidden;width: 355px;">Header1</div></td>
<td><div style="overflow:hidden;width: 100px;">Header2</div></td>
<td><div style="width: 100%;overflow:hidden;">Header3</div></td>
</tr>
|
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 screen. The panel has a height of
350px and the scrollbar is set to auto so that both scrollbars appear when
needed. What is happening is that due to the table exceeding the width of
the screen the panel is also enlarging its width larger than...
|
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, for which number of rows/columns i will not know, and I have to pretty up the table, including a verical scroll bar. This has to work in IE6, IE7, and FireFox 3.5.
The CSS I currently have will give me a scrollable table, but only if I hard code...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
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...
|
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
| |
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...
| |