Hi,
I'm modifying code from Stu Nicholls' "Snazzy Borders" code, referenced here:
http://www.cssplay.co.uk/boxes/snazzy.html

As he stated, this works in modern browsers.  However, I tried putting
only a form field in here, and it blows out the spacing above and
below the content area in IE7 only. Firefox 2.x doesn't do this.  I
tried to use the IE Web Developer Toolbar to examine the content area,
but I cannot select the whitespace, so I don't know which element(s)
may be generating it.  Any ideas or help would be appreciated.

Thanks for reading.

--Stephen


HTML:
<div class="xsnazzy">
<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b
class="xb3"></b><b class="xb4"></b></b>
<div class="xboxcontent">

<form method="post" action="#" name="searchForm" id="searchForm">
<fieldset>
<legend>Search Site</legend>
<label for="searchKeywords">Enter Keywords</label>
<input type="text" id="searchKeywords" name="searchKeywords"
class="searchfield" />
<input type="submit" name="Search" value="Search" class="searchbutton" />
</fieldset>
</form>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b
class="xb2"></b><b class="xb1"></b></b>
</div>


CSS:
<style type="text/css">
/* Stu Nicholl's code */
.xsnazzy h1,
.xsnazzy h2,
.xsnazzy p {margin:0 10px; letter-spacing:1px;}
.xsnazzy h1 {font-size:2.5em; color:#fff;}
.xsnazzy h2 {font-size:2em;color:#06a; border:0;}
.xsnazzy p {padding-bottom:0.5em;}
.xsnazzy h2 {padding-top:0.5em;}
.xsnazzy {background: transparent; margin:1em;}

.xtop, .xbottom {display:block; background:transparent; font-size:1px;}
.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}
.xb1, .xb2, .xb3 {height:1px;}
.xb2, .xb3, .xb4 {background:#ccc; border-left:1px solid #08c;
border-right:1px solid #08c;}
.xb1 {margin:0 5px; background:#08c;}
.xb2 {margin:0 3px; border-width:0 2px;}
.xb3 {margin:0 2px;}
.xb4 {height:2px; margin:0 1px;}

.xboxcontent {display:block; background:#ccc; border:0 solid #08c;
border-width:0 1px;}

body {background-color: #013976;}

#searchForm legend {
        display: none;
}

#searchForm label {
        display: none;
}

#searchForm fieldset {
        border: none;
}
</style>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to