473,480 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

auto size

Hi,
I've got a DIV within another. The parent DIV's size can be expanded
when clicking on a button. When I do that I'd like the child DIV to
expand as well. To do that i set the css property width of the child
DIV to auto as well as its height property.
it works for the width, but not the height, that is the child DIV is
expanded horizontally but not vertically...
Why ?

Jul 5 '06 #1
2 1937
sa*************@googlemail.com wrote:
I've got a DIV within another. The parent DIV's size can be expanded
when clicking on a button. When I do that I'd like the child DIV to
expand as well. To do that i set the css property width of the child
DIV to auto as well as its height property.
it works for the width, but not the height, that is the child DIV is
expanded horizontally but not vertically...
Why ?
width: auto means (approximately) "The space left over in the container
after margins, padding and borders are accounted for".

height: auto means (approximately) "Just tall enough to hold the content".

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 5 '06 #2
To further the education of mankind, sa*************@googlemail.com
vouchsafed:
Hi,
I've got a DIV within another. The parent DIV's size can be expanded
when clicking on a button. When I do that I'd like the child DIV to
expand as well. To do that i set the css property width of the child
DIV to auto as well as its height property.
it works for the width, but not the height, that is the child DIV is
expanded horizontally but not vertically...
Why ?
For height, did you try "inherit"?

--
Neredbojias
Infinity has its limits.
Jul 6 '06 #3

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

Similar topics

1
3175
by: Ellen K. | last post by:
I made a database to hold recordings of calls made to our customers. When I made it I set the size of the primary datafile to 18GB. It's been running flawlessly for over 10 months. A few days...
1
13939
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
5
6076
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge...
2
15883
by: Marek Mänd | last post by:
I have problems with table row height by Internet Explorer6 in xhtml1 css1compat mode document. The table has fixed height and on one TFOOT row the height is set to 'auto' to make it have...
5
1864
by: robin | last post by:
Hi, I've implemented a Style Sheet in Dreamweaver; one of the elements is supposed to stay right with the text flowing around it on the left. A similar tag is supposed to stay left with the...
5
17669
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
0
1981
by: Waran | last post by:
I need to create a Auto suggests Textboox like in http://www.google.com/webhp?complete=1&hl=en I have completed this using AJAX.NET for Framework 1.1 . I have some design issues after the data is...
4
12497
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
4
5058
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto">...
1
5140
by: pravinnweb | last post by:
can anyone tell me how to set auto height to outer div that is in green box id "gray-background" it should increase relatively to inner div "smbox" here is the css and html code it should work in...
0
7037
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
7076
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
6886
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
5324
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,...
1
4768
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...
0
2990
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...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
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 ...
0
174
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...

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.