473,563 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Relative width in Firefox and IE

35 New Member
Hi,

I have a three-column-page where the columns' width are specified in percent instead of fixed pixels (I have to have this due to a school assignment). It works great in Firefox but IE interprets the width differently and the last column gets pushed down since it takes too much space. The code looks somewhat like this:
Expand|Select|Wrap|Line Numbers
  1. div#first
  2. {
  3.     float:left;
  4.     width:18%;
  5. }
  6.  
  7. div#second
  8. {
  9.     float:left;
  10.     width:60%;
  11.     margin-left:1%;
  12.     margin-right:1%;
  13. }
  14.  
  15. div#third
  16. {
  17.     float:left;
  18.     width:20%;
  19. }
so, all adds up to 100%. I've read about the differences in width interpretation and the box model differences between Firefox and IE but I don't see how that should affect this.

Thanks in advance for any advice.
Aug 12 '07 #1
2 2070
brixton
35 New Member
Fixed problem by specifying the third column's width by:

Expand|Select|Wrap|Line Numbers
  1. min-width:20%;
  2. width:auto;    
The first line for Firefox to use the full width and the second for IE to reduce it if it gets too wide.

By the way; tried to delete my post but couldn't... :(
Aug 12 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
IE does not know min-width and it treats width as min-width. One of a million reasons it's such a lousy browser.
Aug 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
7742
by: Stephen Weatherly | last post by:
Could anyone please help me with a problem I am having with my table widths??? If I have 2 images within a td tag, but using CSS relative positioning I position one over the top of the second (I am placing a transparent gif over the top of a normal gif) then the width of my table is large enough to accommodate both images side by side My...
1
5356
by: Wilhelm Kutting | last post by:
Hi i like to make a complex layout with css. All the content is inside a container div. I like to get the following sequence without the css-layout: logo title mainnav content i can only get the results when i use negative positioning.
3
19755
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following test case element1 and element2 should be placed side by side inside a centered white container element: http://www.markusernst.ch/test.htm
1
1431
by: josquin | last post by:
Hello, I am creating a page that features a large table with relative sizes, where the images therein are also relative in size, as in the following: <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%"> <p>blah blah blah</p>
19
60337
by: derelicten | last post by:
hello , I have an issue positionating some pics I want to anchor to an existing table cell but I cant just place regular position on the cell because the background is fixed height and the set of pics is bigger then fixed space. SO I put them in a position:absolute div and I gave a position:relative to the container td. This seems to work in IE...
1
3173
by: GGG | last post by:
Neither go the way I want them to... Absolute doesn't get it right over multiple browsers. Relative puts it in the right place, but only the portion that it is "relative" the style, #wleMenu, is running. Holding the cursor over any portion OUTSIDE of this block is not registering. Mozilla doesn't do anything, IE will fire off an error,...
4
9680
by: Alex | last post by:
Hello, I'm rewriting our corporate website, and to make editing the format later I want to rewrite it completely using CSS with no table tags. I've used CSS for years, but never exclusively, so I'm having some problem converting some of the Table tags into CSS. My first hurdle is we have a table with three TD's and I don't know how to...
3
8964
by: mikewse | last post by:
I have a strange problem where it seems IE is doing the correct layout but Firefox and Safari isn't. I think I'm probably wrong, and there is something in the standards that say behaviour should be like Firefox does, but could someone tell me what is right? In the below code I have element trees with three DIVs; the outer DIV establishes a...
3
2557
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/td-position.html In Internet Explorer, the "hello, world!" text is on top on the red box is on the bottom. In Firefox, the "hello, world!" text is on top and the red box is in the middle. Internet Explorer's rendition is the preferred rendition. Any idea as to how to make Firefox's rendition...
0
7885
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, 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. ...
1
7638
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...
0
6250
agi2029
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...
1
5484
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...
0
5213
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...
0
3642
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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
0
923
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...

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.