Sorry to disagree, but your CSS rules for the division are as follows:

        #qotd {
                background: #fff;
                font-family: Verdana, Arial, Helvetica, sans-serif;
                text-align: left;
                padding: 5px;  <-- Applies 5px on all sides
                border-color: #C60;
                border-style: dotted;
                border-width: thin;
        }

And then after this you don't apply any styles to the first paragraph so it
has the default margin values.  Try this:

        #qotd p {
                margin: 0;
        }

And see if it makes a difference.

Iain



------------------
Iain Gardiner
http://www.firelightning.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of john
Sent: 19 November 2004 22:51
To: [EMAIL PROTECTED]
Subject: Re: [WSG] funky padding


Thanks for the response.  The 5px padding is only applied to the left 
and right (at least, that's what happens when viewing).  I have no line 
heights applied to that div, so I'm still not sure what's causing it.

I really just need to remove the extra space, but I can't figure out 
where it's coming from!

~john
_________________________
Dr. Zeus Web Development
http://www.DrZeus.net
"content without clutter"




on 11/19/2004 10:16 PM Iain Gardiner said the following:
> Hi,
> 
> Well at first glance I'd say the division itself has 5 px applied on 
> all sides as per the #qotd rules.  The extra white space is most 
> probably a mix of margin and line-heights on the paragraphs you use 
> within the div.
> 
> Iain
> 
> ------------------
> Iain Gardiner
> http://www.firelightning.com
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of john
> Sent: 19 November 2004 21:46
> To: web standards group
> Subject: [WSG] funky padding
> 
> 
> Hi, folks.
> 
> I'm having a bit of trouble ridding myself of some top and bottom
> padding inside a box.  Can anybody assist, please?
> 
> http://www.drzeus.net/redesign/cslewis/
> 
> The "quote of the day" box, to be specific.  Thanks.

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************



******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to