473,396 Members | 2,002 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,396 software developers and data experts.

FF Problem With Extend Fixed Width ,height

i want to Increase Parent Div Size from Child
it work on IE ,
i also Try with
Expand|Select|Wrap|Line Numbers
  1. Clear:both
style
and
Expand|Select|Wrap|Line Numbers
  1. <br clear=all>
tag
but not get work on FF

this is Sample Code Have Problem
Expand|Select|Wrap|Line Numbers
  1. <div style="width:0;height:0;background-color:Black;padding:20px;">
  2.  
  3.     <div style="width:150px;height:150px;background-color:red">
  4.         x
  5.     </div>
  6.  
  7. </div>
Please guidance me to find solution
thank you
alireza
Jan 24 '08 #1
4 1468
drhowarddrfine
7,435 Expert 4TB
Don't complain that FF is doing this wrong when you tell it to have zero height and zero width and it does what you said while IE does not. As always, IE is in the wrong here while Firefox is performing correctly.

IE treats height and width as 'min-height' and min-width, which is why it does this wrong. Of course, min-height doesn't work at all.
Jan 24 '08 #2
Don't complain that FF is doing this wrong when you tell it to have zero height and zero width and it does what you said while IE does not. As always, IE is in the wrong here while Firefox is performing correctly.

IE treats height and width as 'min-height' and min-width, which is why it does this wrong. Of course, min-height doesn't work at all.
thank you
i try to use Min width but not work
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <head>
  4. <style type="text/css">
  5. .a 
  6. {
  7.  
  8. background-color:Black;
  9. padding:20px;
  10. min-width:2px;
  11. max-width:600px
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <div class="a">
  17.  
  18.     <div style="width:150px;height:150px;background-color:red">
  19.         x
  20.     </div>
  21. </div>
  22. </body>
  23. </html>
please correct my codes to find solution
thank you
Jan 24 '08 #3
finally i find solution to solve this problem

just define Display type of Element as Table ;)

i put it here maybe useful for some body

Expand|Select|Wrap|Line Numbers
  1. <div style="width:0;background-color:Black;padding:20px;display:table">
  2.  
  3.     <div style="width:150px;height:150px;background-color:red">
  4.  
  5.     </div>
  6. <div style="clear:both"></div>
  7. </div>
Jan 24 '08 #4
drhowarddrfine
7,435 Expert 4TB
thank you
i try to use Min width but not work
Well, yes, min-width doesn't work in IE either; only modern browsers.

display:table is not what I would have done but....
Jan 24 '08 #5

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

Similar topics

1
by: Jo Becaus | last post by:
Hi, I created ASP page with following sourcecode. <%@ language="VBSCRIPT" %> <!--#include file="./configuration/code_nofile.asp"--> <!-- Author: Jo Becaus --> <HTML> <HEAD>
1
by: Jaz | last post by:
Trying to use a fixed layer for a couple of NAV buttons. I found this code, but the IE part is commented, and I don't understand the IF statement. It works great on Moz/Firebird and Opera BUT...
33
by: Joe | last post by:
I'm designing a company website. I'm relatively new to CSS and I'm having trouble creating what seems to me a very simple design: - body background: fixed full page image - banner: fixed, 100...
25
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
1
by: donpro | last post by:
Hi, I'm creating a template paging sing pure CSS and all looks good except the footer which I am having problems with. 1) When I space out each of the FOUR DIVS at 25%, it wraps in IE. I...
3
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
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: 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
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...
0
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...
0
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...
0
tracyyun
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...
0
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,...

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.