Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Help With CSS List Style Images
Old 05-29-2007, 01: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
__________________

Please login or register to view this content. Registration is FREE
kennyk3 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-29-2007, 04:19 PM Re: Help With CSS List Style Images
LadynRed's Avatar
Defies a Status

Posts: 10,016
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

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.10099 seconds with 12 queries