law Posted February 25, 2008 Share Posted February 25, 2008 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!) Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted February 25, 2008 Share Posted February 25, 2008 Is the img class menu-item2? That has margins rather than padding added, but if that's what you're wanting try it this way: img.menu-item2 { border: none; margin: 10px 25px 0px; width: 150%; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.