Hi there,
I have created a small form which has four corners (used for rounded corners)... i wanted to be able to set the width to AUTO for Upper-Center so that it would take the maximum hence total width is 500px (see below) "minus" 12px for each corner ... but it just collapses - the auto doesn't seem to work.. anyway around this or do i need to enter a manual figure?
I wanted to be able to control the size by the container div called contact-form..... hence wanting to use AUTO... otherwise i have to update the sizes in more than one place..
#contact-form
{
width:500px;
float:left;
}
#corner-upper-left
{
background-image: url('../images/uppleft.gif');
background-repeat: no-repeat;
float:left;
width:12px;
}
#upper-center
{
float:left;
background-color: #F04A23; /* Red */
width:auto;
}
#corner-upper-right
{
background-image: url('../images/uppright.gif');
background-repeat: no-repeat;
float:left;
width:12px;
}
UPDATE FOR HTML
<div id="contact-form">
<div id="corner-upper-left">
</div>
<div id="upper-center">
</div>
<div id="corner-upper-right">
</div>
<div id="center-section">
</div>
<div id="corner-bottom-left">
</div>
<div id="bottom-center">
</div>
<div id="corner-bottom-right">
</div>
</div>