Reply
help with padding
Old 08-04-2007, 12:54 PM help with padding
Skilled Talker

Posts: 88
i have a list that i want padded, but it also adds padding above the h3 which i dont want

HTML Code:
<div id="primary" class="sidebar">
<li id="pages" class="box">
                <h3>Pages</h3>

                <ul>
<li class="page_item"><a href="http://localhost/wordpress/index.php/about/" title="About">About</a></li>
<li class="page_item"><a href="http://localhost/wordpress/index.php/test/" title="test">test</a></li>
                </ul>
            </li>
        </div>
HTML Code:
div.sidebar div,div.sidebar h3,div.sidebar ul,div.sidebar li{margin:0;padding:0;}
div.sidebarinner{width:150px}
div.sidebar h3{font-size:1.2em;background-color:#2d2d2d;text-align:center;padding:3px 0 3px 0;}
div.sidebar input#s{width:7em;}
div.sidebar li{list-style:none;margin:0 0 1em;background-color:#404040;padding:5px 0 5px 0;}
div.sidebar li form{margin:0.2em 0 0;padding:0;}
div.sidebar ul ul{margin:0 0 0 1em;}
div.sidebar ul ul li{list-style: none;margin:0;}
div.sidebar ul ul ul{margin:0 0 0 0.5em;}
div.sidebar ul ul ul li{list-style-type: disc;}
div.sidebar .box{border:1px solid #202020;}
is there any way i can get rid of the padding above the h3
__________________
Diablo 3 Community
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
When You Register, These Ads Go Away!
     
Old 08-04-2007, 01:01 PM Re: help with padding
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 386
Name: Jamie Lewis
Location: UK
Use the correct tags!!! Try using this HTML instead:

Code:
<div id="primary" class="sidebar">
<div id="pages" class="box">
                <h3>Pages</h3>

                <ul id="pagesList">
<li class="page_item"><a href="http://localhost/wordpress/index.php/about/" title="About">About</a></li>
<li class="page_item"><a href="http://localhost/wordpress/index.php/test/" title="test">test</a></li>
                </ul>
            </div>
        </div>

and for the CSS just use:

Code:
#pagesList{
padding: 3px;
}
Or however much padding you need

Last edited by JamieLewis : 08-04-2007 at 01:59 PM. Reason: Formatting
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-04-2007, 01:58 PM Re: help with padding
tripy's Avatar
Fetchez la vache!

Posts: 1,980
Name: Thierry
Location: In the void
Just one tiny adjustement; it's <ul id=; not <ul if=
Code:
<div id="primary" class="sidebar">
<div id="pages" class="box">
                <h3>Pages</h3>

                <ul id="pagesList">
<li class="page_item"><a href="http://localhost/wordpress/index.php/about/" title="About">About</a></li>
<li class="page_item"><a href="http://localhost/wordpress/index.php/test/" title="test">test</a></li>
                </ul>
            </div>
        </div>


__________________
Listen to the ducky: "This is awesome!!!"

tripy is online now
Reply With Quote
View Public Profile
 
Old 08-04-2007, 01:59 PM Re: help with padding
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 386
Name: Jamie Lewis
Location: UK
So it is, nice spot. I really am no good at proof reading.

Jamie
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-04-2007, 02:13 PM Re: help with padding
Skilled Talker

Posts: 88
thx guys it works!
__________________
Diablo 3 Community
raptrex is offline
Reply With Quote
View Public Profile Visit raptrex's homepage!
 
Reply     « Reply to help with padding
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13514 seconds with 13 queries