|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to renew my website using css.
i have a list with images inside. something like <ul> <li><img ... /></li> <li><img .../></li> </ul> my style definition looks like img { margin:0px; padding:0px; } ul { margin:0px; padding:0px; } li { margin:0px; padding:0px; } i don't want any pixels between two items (images), but i cannot find the way to do that. i always get some pixels between them... anyone can help me? thanks! |
|
#2
|
||||
|
||||
|
Code:
<style type="text/css">
<!--
img {
margin:0px;
padding:0px;
vertical-align: top;
}
ul {
list-style-type: none;
margin:0px;
padding:0px;
}
li {
margin:0px;
padding:0px;
}
-->
</style>
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
still don't work. it seems that <li> height is bigger than img height. i put a example in my site in order you can make a idea what i'm saying. the heigth of both images is 8px...
have a look at http://www.desorden.net/prueba.html |
|
#4
|
|||
|
|||
|
Make sure the line-height property in the css is the height of your images e.g.
line-height:8px; or font:300 8px/8px verdana !important; that should squash the extra space.. Cha'mone OCB |
|
#5
|
|||
|
|||
|
thanks ocb. i got it working now in netscape 7.0 and mozilla firebird, but still i have a extra pixel in the bottom of the images...
any workaround to eliminate them? |
|
#6
|
|||
|
|||
|
sorry, what i wanted to say, is that i have an extra pixel on the bottom of the images, but only in internet explorer 6.0.
|
|
#7
|
|||
|
|||
|
Try to display:inline the li, this *might* just fix the problem.
But hey, it's IE6 - the only real solution is to start trying crazy things in the css until you find and squash the problem.. actually, is the space between images being caused by a space between the li tag and the image tag? e.g.<li> <img... |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Image Padding |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|