Jump to content

Spacing images of the same class individually??


law

Recommended Posts

I am making a menu at the bottom of my website. I borrowed some code from another website, and they use CSS in tandem with javascript to achieve some neat moving and expanding effects. My problem is that the css code that they gave me doesn't allow me to space out my objects properly. So, my question is "how can I add padding inbetween images of the same class?"

here is the code

#menu2 {
width: 70%;
bottom: 48px;
position: absolute;
left: 0px;
}
.menu-container2 {
position: absolute;
height: 100px;
background: url(images/dock-bg.png);
padding-left: 100px;
}
a.menu-item2 {
display: block; 
font: bold 12px Arial, Helvetica, sans-serif;
width: 80px; 
color: #000; 
bottom: 0px; 
position: absolute;
text-align: center;
text-decoration: none;
margin: 0px 0px 0px;
padding-left: 0px
}
.menu-item2 span {
display: none;
padding-left: 20px;
}
.menu-item2 img {
border: none; 
margin: 10px 25px 0px; 
width: 150%; 
}

The padding code i added myself and it moves the ENTIRE set of images. Unfortunately that is not what I am looking to accomplish. I have considered making individual classes for each image, but I would rather not go through the hassle of placing every image. (im new to css so if my terminology is incorrect sorry please correct me i need to learn!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.