Everything posted by james-harvey
-
DIV TAG SCROLL BAR HELP
Cheers, really appreciate that
-
DIV TAG SCROLL BAR HELP
Hello, Basiclly I want my Div to be 500Px in Lenth and if the data in the div runs over for scroll bars to be there. Im half way there, i got the scroll bars but the data: Doesn't Move Lay across the page Here is the site example http://a1cleaningsupplies.com/2-window-cleaning/window-cleaning.html Here is the CSS Code for the DIV #content{ float:left; width:700px; padding:15px; background-color: #FFF; text-align: center; margin: 0px 0px 10px 0px; height:500px; overflow: auto;} Please Note this WORKS in firefox. Thanks
-
Random Images 'Javascript' Help !
Anyone... :L
-
Random Images 'Javascript' Help !
Hiya, below is the code in my <head> tag: <script language="JavaScript"> var theImages = new Array() theImages[0] = 'test/graphic1.jpg' theImages[1] = 'test/graphic2.jpg' theImages[2] = 'test/graphic3.jpg' theImages[3] = 'test/graphic4.jpg' var j = 0 var p = theImages.length; var preBuffer = new Array() for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i] } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write('<img src="'+theImages[whichImage]+'">'); } </script> I was just wondering if there was anyway i could add a caption or some form of text to each random picture, other that obviously editing the picture itself Working example: Link Thanks.
-
MORE DIV TAG HELP :/
Thank you very much! Worked a treat
-
MORE DIV TAG HELP :/
Hi, I recently asked how to get a few div tags next to each other and when the page size is shrunk down the divs drop a line. (Code Below) CSS .container {width:950px; margin:0px auto;} .box {float:left; background-color:#FFF; width:13.9%; margin:10px; border:5px solid black;} .clear { clear:both; } HTML <div class="container"> <div class="box"> 1 </div> <div class="box"> 2 </div> <div class="box"> 3 </div> <div class="box"> 4 </div> <div class="box"> 5 </div> <div class="box"> 6 </div> <div class="box"> 7 </div> <div class="box"> 8 </div> <div class="box"> 9 </div> <div class="box"> 10 </div> <div class="box"> 11 </div> <div class="box"> 12 </div> <div class="clear"></div> </div> Here is an example of that working http://www.a1cleaningsupplies.com/working.html But then i hit a problem, when i put pictures into them tags when the line drops it goes all weird. LOL Example: http://www.a1cleaningsupplies.com/notworking.html Thank-you!
-
HELP WITH DIV TAGS
That seemed to work very well thank-you just a few color tweeks. Could you tell me how i could add the clolor black as the outline for each seperate box please?
-
HELP WITH DIV TAGS
.
-
HELP WITH DIV TAGS
Hi, was just wondering if anyone could help. While doing a bit of web design I got stuck with div tags, so decided to change where the divs would be into images. But basiclly I need to have about 5 divs next to each other and then if a smaller sreen size was used the divs would drop down. Any help would be greatful. (Web address below) http://a1cleaningsupplies.com/products/paper-supplies.html