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!)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.