Link to home
Start Free TrialLog in
Avatar of RowdyBurns
RowdyBurns

asked on

Background image repeat issue.

Hi experts,

The FreestyleChronicle.php page I have supplied has several types of content to display. To do this I have used a javascript called tabbed content from Dynamic Drive. There are three 'tabs' which are essentially nested div tags that contain background image graphics/text/photo/video content. Both the text and video tabs are working correctly, however, the photo tab won't display and repeat (y axis) the background graphic:

style="background-image:url(images/ChronGraphics/MainChronBG_r2_c1.jpg);

the full length of the div.
The photos are being called dynamically with php and this seems to stop the div.
Strangely, if I add a height attribute to the div that contains the photo tab the graphic repeats as required. The problem with this, is that when there is only one photo present the rest of the space is blank and alludes to the page loading being incomplete.

I know that this must be a simple fix, but I have been scouring my code for ages and just can't see the problem.

Any help is greatly appreciated!
Avatar of zemond
zemond

Im going to guess that the images in the photos tabbed are floating, you need to clear the float after the images are outputted inside the div that requires repeat-y do <div style="clear:both;"></div>
Avatar of RowdyBurns

ASKER

Thanks for the response Zemond. I have tried your suggestion but unfortunately it hasn't worked.
Here is the code that styles the photos.
Can you suggest anything else that might be causing it?
*
{
	border: 0;
	margin: 0;
	padding: 0;
}
 
/* =Basic HTML, Non-essential
----------------------------------------------------------------------*/
 
 
 
/* =Hoverbox Code
----------------------------------------------------------------------*/
 
.hoverbox
{
	cursor: default;
		
	
}
 
.hoverbox a
{
	cursor: default;
}
 
.hoverbox a .preview
{
	display: none;
}
 
.hoverbox a:hover .preview
{
	display: block;
	position: absolute;
	top: -33px;
	left: -45px;
	z-index: 1;
	
}
 
.hoverbox img
{
	background: #fff;
	border-color: #aaa #ccc #ddd #bbb;
	border-style: solid;
	border-width: 1px;
	color: inherit;
	padding: 2px;
	vertical-align: top;
	width: 100px;
	height: 75px;
	
}
 
.hoverbox li {
background: #eee;
border-color:#DDDDDD rgb(187, 187, 187) rgb(170, 170, 170) rgb(204, 204, 204);
border-style:solid;
border-width:1px;
color:inherit;
display:inline;
float:left;
margin:3px;
padding:5px;
position:relative;
}
 
.hoverbox .preview
{
	
	width: 200px;
	height: 150px;
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of zemond
zemond

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
,Awesome,Awesome,Awesome!! Thanks for that. I wouldn't have got that in a month of Sundays!
Cheers zemond and have a good day!
Fast response and excellent knowledge. Thanks
No problems, good luck with the project