House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Home /  Groups /  ColdFusion Talk (CF-Talk)

CSS / Fieldset / IE

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dawson, Michael
07/28/2005 02:07 PM

Did you try "background-color: transparent;"? Or set the margin/padding to 0px; Does anyone know of a way to remove the extra "area" above a fieldset/legend that shows up in IE when the fieldset has a different background color than the page background color? It looks perfect in FF but in IE the background color of the fieldset bleeds above the border of the fieldset... any CSS hacks or tricks? Thanks! Mike

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim Davis
07/28/2005 02:48 PM

> Does anyone know of a way to remove the extra "area" above a > fieldset/legend that shows up in IE when the fieldset has a different > background color than the page background color? It looks perfect in FF > but in IE the background color of the fieldset bleeds above the border > of the fieldset... any CSS hacks or tricks? That "feels" like something that's probably not in the CSS spec (and thus left to agent developer's to decide)... if so then both implementations can be "right". But if you want to force it you might try setting a background graphic on the fieldset that's pinned to the top, tiles horizontally, matches the page's background color and is only as tall as the space you want to mask. Jim Davis

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tangorre, Michael
07/28/2005 02:13 PM

> Subject: RE: CSS / Fieldset / IE Here is an example of what I am talking about... www.cfcoder.com/test.html

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
07/28/2005 04:30 PM

Yes it's annoying, I couldn't find any way round it either, so I just ended up using borders instead of fieldsets.    Satachi Internet Development   Web Development and Consulting      Russ Michaels       Here is an example of what I am talking about... www.cfcoder.com/test.html

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dawson, Michael
07/28/2005 02:52 PM

This is about as close as I could get without the final tweaking to get the dimensions the same on both browsers.  The margins need to be modified for IE to not overlap the form field with the legend. I found a few posts that say, basically, that this can't be done. M!ke <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>   <title>Untitled</title> </head> <body> <form style="margin: 10;"> <fieldset style="background-color: #cccccc; margin: 10px; position: absolute; z-index: 3;"> <legend style="background-color: white; margin-top: -10px; position: absolute; z-index: 2;">New Inventory Item</legend> <label for="deviceName" title="Device Name">Device Name:</label> <input type="text" name="deviceName" maxlength="50" /><br /> <label for="make" title="Device Make">Make:</label> <input type="text" name="make" maxlength="50" /><br /> <label for="model">Model:</label> <input type="text" name="model" maxlength="50" /><br /> </fieldset> </form> </body> </html> Here is an example of what I am talking about... www.cfcoder.com/test.html

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tangorre, Michael
07/28/2005 02:55 PM

----- Excess quoted text cut - see Original Post for more ----- Seems like it is a known issue with no "nice" x-browser solution. "IE is coloring the bounding box of the whole fieldset including the legend; FF is coloring the bounding box of the fieldset without the legend. It doesn't have to do with the contents of the fieldset text, it has to do with where the background bounding box is when a fieldset has a legend. You could make a case for either way being correct." snipped from a website.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dawson, Michael
07/28/2005 02:57 PM

My latest attempt gets it much closer in both browsers.  I added an empty div tag to space the legend from the form fields. M!ke <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>   <title>Untitled</title> </head> <body> <form> <fieldset style="background-color: #cccccc; margin: 10px; position: absolute; z-index: 3;"> <legend style="background-color: white; margin-top: -8px; position: absolute; z-index: 2;">New Inventory Item</legend> <div style="height: 10px;"></div> <label for="deviceName" title="Device Name">Device Name:</label> <input type="text" name="deviceName" maxlength="50" /><br /> <label for="make" title="Device Make">Make:</label> <input type="text" name="make" maxlength="50" /><br /> <label for="model">Model:</label> <input type="text" name="model" maxlength="50" /><br /> </fieldset> </form> </body> </html>

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dawson, Michael
07/28/2005 04:44 PM

I posted two solutions to this, but I didn't see them come through.  Can anyone confirm that they went through? The final solution I had was with a <div> that controlled the spacing between the <legend> and the following content. If it didn't go through, I can probably duplicate it again, but I didn't keep a copy of the message I sent. M!ke Yes it's annoying, I couldn't find any way round it either, so I just ended up using borders instead of fieldsets.    Satachi Internet Development   Web Development and Consulting      Russ Michaels      

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim Davis
07/28/2005 06:35 PM

----- Excess quoted text cut - see Original Post for more ----- Came through here - check the archives at www.houseoffusion.com to get the message again. Jim Davis


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists