Reply
Help With CSS List Style Images
Old 05-29-2007, 12:17 PM Help With CSS List Style Images
Average Talker

Posts: 21
Trades: 0
Hello,

I have a network of blogs using a customized theme. I like the theme a lot and have customized almost completely to my satisfaction. I am having one problem though.

I would like the categories and recent entries sections to have list images beside them, but can't get them to work. Here is the blog:

http://www.practicalebayselling.com

Here is the CSS for the sidebar:

Code:
#sidebar h2 {
    color: #000;
    font-size: 1.1em;
    font:Verdana, Arial, Helvetica, sans-serif;
    margin: 0 0 10px 0;
    padding: 5px 0 2px 0;
    width: 93%;
    border-bottom: 2px solid #000;
}

#sidebar p {
    margin: 5px 0 5px 0;
    padding: 0px;
}

#sidebar ul {
    margin: 0px;
    padding: 0px;
}


#sidebar ul a{
    text-decoration:none;
}

#sidebar li {
    list-style:none;
    margin: 0px;
    padding: 0 5px 0px 10px;
}

#sidebar li a, #sidebartop a {
    font-size: 11px;
}

#sidebar li a:hover {
background-color: #ffffff;
color: #262a42;
text-decoration: underline;}

#sidebartop a:hover {
background-color: #ffffff;
color: #262a42;
text-decoration: underline;
}

#sidebar a img {
    border: 0px;
}

#sidebar a:hover img {
    border: 0px;
}

#sidebar a:hover  {
background-color: #ffffff;
color: #000000;
text-decoration: underline;
}
And here is the image I'd like beside each Category list:

http://www.practicalebayselling.com/...ges/folder.png

I don't want this image to be applied to every <li> tag. I just want it to apply to the <li> tags within the categories. I've tried making a class just for this, but couldn't get it to work.

Any help would be appreciated.

Kenny
__________________

kennyk3 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 05-29-2007, 03:19 PM Re: Help With CSS List Style Images
LadynRed's Avatar
Super Moderator

Posts: 9,033
Location: Tennessee
Trades: 0
Set the folder image as BACKGROUND to the <li> or the <a> set it to no-repeat, then you can adjust placement by using padding and margins.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help With CSS List Style Images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09323 seconds with 13 queries