I am frequently doing something like the following:
<div style="width:95 %; padding:10px;ma rgin:5px;">
<table>Conten ts include stuff that won't compress beyond a certain
point.</table>
</div>
In IE6, either mode, as the port shrinks to less than the width of the
table, either through a small screen size or shrinking the browser
window, the right edge of the div maintains its 10px padding with the
table. But in FF, as the port shrinks, the <div> shrinks with it,
leaving the table extending outside the div.
I'm guessing this is an IE non-standards-based feature, but it is
darned useful. Suggestions appreciated... got to be a common issue.
I'm hack-literate... just need to know the trick. 2 3390
On Fri, 30 Sep 2005 18:19:51 +0200, Alan <ag*********@ya hoo.com> wrote: I am frequently doing something like the following:
<div style="width:95 %; padding:10px;ma rgin:5px;"> <table>Conten ts include stuff that won't compress beyond a certain point.</table> </div>
In IE6, either mode, as the port shrinks to less than the width of the table, either through a small screen size or shrinking the browser window, the right edge of the div maintains its 10px padding with the table. But in FF, as the port shrinks, the <div> shrinks with it, leaving the table extending outside the div.
I'm guessing this is an IE non-standards-based feature, but it is darned useful. Suggestions appreciated... got to be a common issue. I'm hack-literate... just need to know the trick.
Specify 'min-width' instead of 'width'. This isn't supported by MSIE
though, so you might have to use a hack to give MSIE 6 the 'width'
property and modern browsers the 'min-width' property.
Something like this:
div {
width: 95%;
min-width: 95%;}
html>body div {width: auto;} /* reset 'width' property to automatic for
Opera and FF etc*/
--
Get Opera 8 now! Speed, Security and Simplicity. http://my.opera.com/Rijk/affiliate/
Rijk van Geijtenbeek
Tx... min-width solved the FF problem, and IE was already fine, since
in effect it imposes a min-width equal to the width of the contents. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bart Plessers \(artabel\) |
last post by:
Hello,
Currently developping a site, where I use some session variables.
The site is located at my home computer.
Because I have a dynamic IP adress, I use no-ip (www.no-ip.org) to have my
own custom domain name (pvo.no-ip.org)
My ISP blocks port 80, so website runs at port 4040
The service no-ip offers "Mask / Cloaking Options": every request to my
domain is "wrapped in a frame", so end user can only see one URL in browser.
|
by: Spondishy |
last post by:
Hi,
I have a problem with divs and padding in IE6 and Firefox. Basically my
example that I have attached works exactly how I want in IE6, but
padding is treated differently in Firefox. My example is below.
http://www.villas2u.com/example/test.htm
http://www.villas2u.com/example/styles.css
I realise that the issue is with the padding of 10px pushing the
|
by: Tony |
last post by:
Hi everyone,
I am new to javascript (and new to programming). I want to have to
drop down menus. One will ask use to select from one of the 50 states.
The second one will be ask user to select a county within that state,
but will completely invisible (and unpopulated) until user selects a
state. I've been looking for code to do this in JavaScript, but I
haven't found any.
Can anyone help me?
|
by: Dan |
last post by:
Hi. I've got the following line of code which works fine in IE ...
line_1_numbers = document.getElementsByTagName
('table').rows (0).cells (0).innerText;
But it Firefox, it barks saying:
"Error: document.getElementsByTagName("table").rows is not a
function"
|
by: Stewart |
last post by:
Originally posted in comp.lang.javascript:
Newsgroups: comp.lang.javascript
From: "Stewart"
Date: 23 Aug 2005 02:50:04 -0700
Local: Tues, Aug 23 2005 10:50 am
Subject: FireFox, RemoveChild, AppendChild, making width grow?
Hi,
| |
by: Martin Chen |
last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main
frame. The contents frame has a menu bar written with with javascript (in
the context of a table). In IE6.1 everything works fine as it also does in
firefox if I call the contents frame directly (i.e. outside of its
frameset). However, if I call my main page (index.html) which invokes the
frame set, the contents frame javascript menubar onmouseover function...
|
by: Patrick.O.Ige |
last post by:
I have a Datalist below its inside another datalist
In IE it renders fine which means the first td cell with width = 130px is
wider than the others
So any text in there if its too long goes to the next line.
But when i view it in FIREFOX if the text is too long it doesn't go to the
next line
the cell just goes wider..
Any ideas how to fix the cell in firefox.
Thanks
<asp:DataList id="dg" runat="server" Width="450px">
|
by: cbjewelz |
last post by:
Hey all.
So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical alignments and div widths are off. It's as if firefox has a different definition of a pixel than safari. Here is the url: http://theprize.chemouni.com/testing.php. When you select the Option from the pull down, the first part of the form appears. Then when...
|
by: Dr J R Stockton |
last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in
IE6, IE7, Firefox 2, and wherever else practicable, with the control
labelled F.X0 fully visible at the top of the window and the control
F.Result (which is just under the textarea) fully visible at the bottom
of the window.
What's the right, or best, way to do that? It's right in IE6 at
present, and near enough so in FF2 if there's only a single tab. But
the "tab...
|
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,...
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |