Reply
a list question
Old 11-16-2006, 05:12 AM a list question
Skilled Talker

Posts: 59
Name: tami
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
 
When You Register, These Ads Go Away!
Old 11-16-2006, 07:19 AM Re: a list question
King Spam Talker

Posts: 1,004
Location: Manchester, UK
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, 08:40 AM Re: a list question
Skilled Talker

Posts: 59
Name: tami
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, 08:55 AM Re: a list question
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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!
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-16-2006, 10:44 AM Re: a list question
Skilled Talker

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

Posts: 197
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, 03:56 AM Re: a list question
Skilled Talker

Posts: 59
Name: tami
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, 09:37 AM Re: a list question
ADAM Web Design's Avatar
Canadastaninianite

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

What happened when you added border-top: 1px solid #851F03; to my code?
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-20-2006, 09:26 AM Re: a list question
Skilled Talker

Posts: 59
Name: tami
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

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