ki Posted July 23, 2007 Share Posted July 23, 2007 okay my site has a very simple design: http://pxcore.com/register.php but the div#holder & the div#header get a white space when, you get a returned error on the page, say like after I post a invalid e-mail, the page will display with an error box and theres this 2px whitespace in between the div#header & the div#holder div#header { height: 30px; margin: 0; padding-left: 4px; background: #1685B1; color: #FFFFFF; font-size: 25px; font-family: "Lucida Grande", Tahoma, Helvetica, sans-serif; } /* HOLDER */ div#holder { font-family: "Lucida Grande", Tahoma, Helvetica, sans-serif; background: #FAFAFA; border-bottom: solid 1px #C3CAD2; border-left: solid 1px #DAE1E8; border-right: solid 1px #DAE1E8; display: inline-block; margin-bottom: 10px; } div#holder:after { clear: both; visibility: hidden; display: block; content: "ILL"; } /* ERROR LIST */ div#RE { background: #FFFBCF; border: 1px solid #FFED27; padding: 6px; text-align: left; color: #000000; margin: 2px; } div#RE li { list-style: none; } div#RE ul { margin: 0; padding: 0; } /* REGISTER */ div#holder span.RR, div#holder span.RB { display: block; } div#holder h3.RH { margin: 0; margin-bottom: 3px; color: #FF8000; border-bottom: 1px solid #000000; float: left; width: 100%; } div#holder div.RT { font-weight: bold; float: left; width: 75px; margin-top: 4px; margin-left: 4px; } div#holder div.RI { float: left; width: 450px; margin-top: 4px; margin-left: 4px; } thats basically all the CSS I use for that page Quote Link to comment https://forums.phpfreaks.com/topic/61440-white-space-being-shown-bah/ Share on other sites More sharing options...
mdnghtblue Posted July 24, 2007 Share Posted July 24, 2007 Truthfully, I think it looks nicer with the space there than without, since it's even on all sides...though I guess if you really really wanted it without the space, you could do margin-top: -2px on div#holder...not sure if there's a better way to fix it. Quote Link to comment https://forums.phpfreaks.com/topic/61440-white-space-being-shown-bah/#findComment-305871 Share on other sites More sharing options...
ki Posted July 24, 2007 Author Share Posted July 24, 2007 thanks for the reply, but that only would benefit this page it effects other pages when i add the -2 unless i embed Quote Link to comment https://forums.phpfreaks.com/topic/61440-white-space-being-shown-bah/#findComment-305893 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.