Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have managed to have a text box in front of a stationary photo on one page. Using this technique:

http://css-tricks.com/text-blocks-over-image/[^]

However, on another page of my site I want everything to stay in the same place (e.g.. text box, image placement and size etc) except have more images in a simple slideshow. (just sliding off to the left).

Either my text box appears as a fifth image and scrolls in last, or just disappears all together. Can someone please help and show me where I'm going wrong in my code?

It would be greatly appreciated. thanks.


CSS
#body {float:left; 
          padding-top:10px;
		  position:relative;
		  width:800px; 
		  font-size:15px; 
		  font-family: "Courier New", Courier, monospace; 
		  text-align:justify; 
		  color:#262626; }
		  
.body { position:absolute; 
    top:300px; 
	width:840px;
	background-color:#FFF;
    opacity:0.7;
    filter:alpha(opacity=70);
	padding:3px 10px 0px 10px;}



HTML
<div id="body">
              
              <p class="body">
               TEXT IN A BOX
              </p>                    
              
         <div class="gallery">
                    <img src=/>
                    <img src=/>
                    <img src=/>
          </div>

  </div> 
Posted
Comments
CoderPanda 24-Feb-14 11:42am    
Can I suggest using the slideshow feature in http://jquerytools.org/
Then perhaps have a div over the slideshow that can have the text box.
[no name] 26-Feb-14 8:45am    
Thank you. I'll give it a try!

1 solution

Try this ...CSS Image Hover

Vyar
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900