View Full Version : Breaks between Divs

04-10-2009, 11:28 AM
1) Contentslider

2) (www.dynamicdrive.com) http://weatherview.org

3) When adding a background image to a div, there is a noticable line break (white space) between it and the one above. I've included the css to the contentslider, below:

border: 0;
border-bottom-width: 0;
padding: 0;
width: 300px;
height: 225px;

.contentslide .opacitylayer{ /*Do not edit this rule unless you're familiar with CSS opacity behavior*/
width: 100%;
height: 100%;
-moz-opacity: 1;
opacity: 1;


.contentslide .contentdiv{
display: none;

width: 300px; /*Width of pagination DIV. To equal that of Content Slider's width, take into account the later's left/right paddings!*/
height: 32px;
text-align: right;
background-image: url(News_Tab.bmp);
border: 0;
border-width: 0 0; /*Left/ right border width of pagination DIV.*/
padding: 0 0 0 0;

* html .pagination{ /*Simplified box model hack to get IE5 to display width equal to that of Content Slider's*/
width: 300px; /*IE5 width*/
w\idth: 300px; /*IE6 width*/

.pagination a{
padding: 0 5px;
text-decoration: none;
color: #2e6ab1;

.pagination a:hover, .pagination a.selected{
color: #000;
background-color: #FEE496;

How can I fix this?