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
Old 11-16-2006, 06:12 AM a list question
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i have a vertical menu and i want to add a small picture on the side of the item.like this:
Code:
<li><a href="links.html" ><img src="images/men6.jpg" border="0" />festivals</a></li>
i have a top border to each item and my problem is that i cant get rid of the space i get between the image and the next item, i think it is because the text itself by default has a small space from the bottom?
can i solve this?
pizza is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2006, 08:19 AM Re: a list question
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Is it possible to add a background image to the <li> using css?
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 11-16-2006, 09:40 AM Re: a list question
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i dont know if it makes sense or any problems because i didnt do it before but so far in eplorer it works, exept for the space problem that i hope some ine can help me with...
pizza is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 09:55 AM Re: a list question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Code:
li {
    margin:  0;
    padding:  0;
}
Play with that. See how it does. By the way, you spell your name the same as my sister does. How rare!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-16-2006, 11:44 AM Re: a list question
Skilled Talker

Posts: 60
Name: tami
Trades: 0
you mean pizza?
pizza is offline
Reply With Quote
View Public Profile
 
Old 11-16-2006, 12:47 PM Re: a list question
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
I think he means tami...

I had to use this to get it to work
Code:
ul {list-style-type: none;}
ul li {margin-top: -5;}
img {border: 0;}
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 04:56 AM Re: a list question
Skilled Talker

Posts: 60
Name: tami
Trades: 0
because i have a border
Code:
ul li{border-top:1px solid #851F03;}
if i use margin top :-5px; or even lower it does get rid of the space between the images but also gets rid of the border.....
pizza is offline
Reply With Quote
View Public Profile
 
Old 11-17-2006, 10:37 AM Re: a list question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Yes, I meant Tami.

What happened when you added border-top: 1px solid #851F03; to my code?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-20-2006, 10:26 AM Re: a list question
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i tried this
Code:
ul li{
border-top:1px solid #851F03;
    margin:  0;
    padding:  0;
}
and it didnt make any diffrence. when i tried {margin-top: -5;}
it changed the space but on the account of the top border.
pizza is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to a list question
 

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