Zen Follower
- Join Date:
- Feb 2008
- Location:
- Western Australia
- Posts:
- 192
- Plugin Contributions:
- 0
Views: 1,498
Zen Follower
Totally Zenned
Find in your stylesheet.css
.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
margin-top: 1.5em;
}
...and do this to it:-
.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
/*margin-top: 1.5em;*/
}
Zen Follower
Thanks, but it is not quite right. Now I have no gaps inbetween the other sideboxes.
Totally Zenned
OK... try this
EXISTING:-
.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
margin-top: 1.5em;
}
CHANGE TO
.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
margin-bottom: 1.5em;
}
Zen Follower
That did the job! Thank you so very much fairestcape.
Where can I learn about using css better? Do you know of any books etc?
Totally Zenned
W3Schools is a good place to start.
Google for CSS Tutorials, then select the link for W3Schools.
Black Belt
Another focused way you could do this (leaving the .leftBoxContainer, .rightBoxContainer as is) is to add
#categories {margin-top: 0;}
which will only affect the one space you want to remove.
Zen Follower
Thanks gjh42. Which is the best way? Or are they much of a muchness?
Thanks for that fairestcape. Looks like I have some learning to do!!
Black Belt
They both get the same results, except that the margin-bottom version will make a space below the bottom sidebox that cannot be collapsed. In most circumstances, that won't matter.
Often in CSS there are multiple ways to get the same results, sometimes with subtle differences that can be exploited for precise control.
Tell staff why this post should be reviewed.