Hi, I have a column of two rotator and two images down the right side of the page (in the link below), the first rotator is just where I want it to be but as I go down the gaps get to wide, but I only want about 10px between them, I've tried doing -10px and -20px but this don't seem to make any difference, can some one help me please. Thanks Jeff
http://www.http://thecarpetandflooringconsultant.co.uk/residential-dom estic_carpet_and_flooring.php
Not sure where images are getting their top margins from but increasing their negative top margins seems to work
height: auto;
margin-right: 7px;
margin-top: -80px;
width: 370px;
}
height: auto;
margin-right: 60px;
margin-top: -140px;
width: 210px;
}
Quick design tip: Open your CSS file and at the top add this:
* {border: 1px dotted blue}
This will put borders around every element in your page so you can see why your images are aligned this way. That's how floats work.
Try removing float:right from your images and use margin-left (adjust values to suit):
#rotator-one {
margin-left:600px;
margin-top: 0px;
margin-right: 7px;
height: auto;
width:370px;
}
#rotator-two {
margin-left: 600px;
margin-top: 10px;
margin-right: 7px;
height: auto;
width:370px;
}
#third_level_image {
margin-left: 700px;
margin-top: 10px;
margin-right: 60px;
height: auto;
width:210px;
}
#fouth_level_image {
margin-left: 740px;
margin-top: 15px;
margin-right: 110px;
height: auto;
width:120px;
}
Don't forget to remove the * borders.
Nancy O.
Hi Nancy I’ve done what you said, and I can see where you are going with it, but when the first rotator go’s to the top the photos disappear from view, so what I have done is, I’ve tried applying the same CSS method to the main image in the top left hand corner, but this has made the image and the two rotators drop further down the page, I think I’m almost there with this, hope you can help Jeff
I’ve done what you said, and I can see where you are going with it, but when the first rotator go’s to the top the photos disappear from view,
Can you show us that?
so what I have done is, I’ve tried applying the same CSS method to the main image in the top left hand corner,
Wasn't that image originally up higher on the page and floated left?
Put it back where it was. Incidentally, floats must come first in the markup.
http://alt-web.com/DEMOS/CSS2-Captions-on-floated-images.shtml
Nancy O.
North America
Europe, Middle East and Africa
Asia Pacific