473,473 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Step Carousel help

347 Contributor
I am using StepCarousel on my page but have it hidden in a span until the span is viewed, i can get the carousel to hide but the buttons do not hide, i think this is a css problem.

css for carousel is as follows
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2.  
  3. .stepcarousel{
  4. position: relative; /*leave this value alone*/
  5. border: 0px solid black;
  6. overflow: scroll; /*leave this value alone*/
  7. width: 600px; /*Width of Carousel Viewer itself*/
  8. height: 100px; /*Height should enough to fit largest content's height*/
  9. }
  10.  
  11. .stepcarousel .belt{
  12. position: absolute; /*leave this value alone*/
  13. left: 0;
  14. top: 0;
  15. }
  16.  
  17. .stepcarousel .panel{
  18. float: left; /*leave this value alone*/
  19. overflow: hidden; /*clip content that go outside dimensions of holding panel DIV*/
  20. margin: 10px; /*margin around each panel*/
  21. width: 125px; /*Width of each panel holding each content. If removed, widths should be individually defined on each content DIV then. */
  22. }
  23. </style>
this is the used in the following code

Expand|Select|Wrap|Line Numbers
  1.  <span class="voicedesc"><%=yaketyRecordset("voicedesc")%></span><a id="displayText" href="javascript:toggle();" class="moreitalic">&nbsp;Read Biog</a><br>
  2.         <span id="toggleText" style="display: none" class="biotext"><div id="mygallery" class="stepcarousel" align="center">
  3. <div class="belt">
  4.  
  5. <div class="panel">
  6. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=11" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/waldhorn/kwik fit.jpg" Title="Kwik Fit - Gary Waldhorn" border="0" /></a>
  7. </div>
  8.  
  9. <div class="panel">
  10. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=12" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/adams/shape.jpg" Title="Shape - Kelly Adams" border="0" /></a>
  11. </div>
  12.  
  13. <div class="panel">
  14. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=13" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/degas/nestle.jpg" Title="Nestle - Rupert Degas" border="0" /></a>
  15. </div>
  16.  
  17. <div class="panel">
  18. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=14" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/elliott/johnson.jpg" Title="Johnson & Johnson 24 Hour Moisture Body Lotion - Jonell Elliott" border="0" /></a>
  19. </div>
  20.  
  21. <div class="panel">
  22. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=8" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/ashby/mr kipling.jpg" Title="Mr Kipling - Robert Ashby" border="0" /></a>
  23. </div>
  24.  
  25. <div class="panel">
  26. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=10" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/evans/viking.jpg" Title="Viking - Chris Evans" border="0" /></a>
  27. </div>
  28.  
  29. <div class="panel">
  30. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=3" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/yorke/Happy Meals Mudpuddle.jpg" Title="McDonalds Happy Meals - Stephen Alan Yorke" border="0" /></a>
  31. </div>
  32.  
  33. <div class="panel">
  34. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=6" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/kaye/hyundai.jpg" Title="Hyundai - Paul Kaye" border="0" /></a>
  35. </div>
  36.  
  37. <div class="panel">
  38. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=4" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/buffery/Digital UK.jpg" Title="Digital UK - Kate Buffery" border="0" /></a>
  39. </div>
  40.  
  41. <div class="panel">
  42. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=5" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/brown/freeview rugby world cup.jpg" Title="Freeview Rugby World Cup - Warren Brown" border="0" /></a>
  43. </div>
  44.  
  45. <div class="panel">
  46. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=7" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/webb/sky multiroom.jpg" Title="Sky Multiroom - Niamh Webb" border="0" /></a>
  47. </div>
  48.  
  49. <div class="panel">
  50. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=9" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/piper/debenhams.jpg" Title="Debenhams - Billie Piper" border="0" /></a>
  51. </div>
  52.  
  53. <div class="panel">
  54. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=1" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/long/snickers.jpg" Title="Snickers - Jordan Long" border="0"/></a>
  55. </div>
  56.  
  57. <div class="panel">
  58. <a href="http://bytes.com/submit/recentwork/recent.asp?clipid=2" class="lytebox" data-title="" data-lyte-options="width:600 height:460 scrollbars:no" target="_blank"><img src="http://bytes.com/submit/search/williams/loctite.jpg" Title="Loctite - Lee Williams" border="0" /></a>
  59. </div>
  60.  
  61. </div>
  62. </div>
  63. </span>
All works fine except the buttons appear in the top left corner of the page??

http://www.yaketyyakallmouth.com/pag...&voicetype=All
Mar 20 '12 #1
4 2932
drhowarddrfine
7,435 Recognized Expert Expert
The CSS is telling it to be there:
Expand|Select|Wrap|Line Numbers
  1. left:-5px;
  2. top:40px;
  3.  
Mar 20 '12 #2
colinod
347 Contributor
but if i remove it from withing the spans that it is currently in it puts the either side of the carousel????
Mar 20 '12 #3
drhowarddrfine
7,435 Recognized Expert Expert
I'm not saying remove it from the span. I'm saying the CSS is putting it where it is. If you remove 'position:absolute' you'll see it goes back to the bottom.
Mar 20 '12 #4
colinod
347 Contributor
thanks for that i realise the CSS is putting it where it is my problem is i cant get the CSS to position it where i want it, if i remove the position:absolute nothing changes apart from the buttons stop working
Mar 20 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: kimberly.shaffer | last post by:
I think I am so lost!! Please someone write out DCONCAT explanation. Is it DConcat("FieldYouWantToConcatenate","TableFieldIsLocatedIn","WHATIDGOESHERE", "@SignOrOtherDelimiter",...
1
by: audipen | last post by:
Hi, I trap the 'OnBuildProjConfigDone' and perform some custom enhancement to the assembly. I check the 'bool Success' parameter before I perform my step. I go ahead only if 'Success == true" ...
8
by: Agam Mehta | last post by:
Hi, Everything works fine with ixmlhttprequest. It gives me "access violation" only when i am trying to release it from the memory (i.e pXMLHttpReq->Release()). Below is my code....
1
by: imranay | last post by:
hey is there some body to tell me what will be the next step after imorting website. i have importeb my website named cruel_digger to yahworld.com but i dont know the nect step please help this dull...
0
by: dimkar | last post by:
I finished my first design in flsh 8 using autoscript. It is a carousel gallery of 14 images rotating around. I am very new to this area but i hava a knowledge on programming language. What i want...
7
by: raknin | last post by:
Hi I have a carousel script. I want to load the carousel with a new set of pictures every time I press a button. The problem that I have that the script append the new pictures to the olds one...
6
by: empiresolutions | last post by:
I'm trying to slightly alter the script found here, http://www.adrianhodge.com/web-design/mootools-horizontal-div-slider-121/. What i want to do is make the carousel work on a Next/Previous...
1
by: chromis | last post by:
Hi, I've been trying to create a carousel class which takes an array of phrases and then creates a textfield for each one positioning it vertically based on the order it was added. The next stage...
3
by: zenzero | last post by:
I was wondering if anyone knows any Carousel script that can display photos, which one can slide in between using a slider? I.e similar to Mooflow, but I want to display only one photo at the time...
1
by: jrsjrs | last post by:
I have been trying to adapt the photo carousel script located at -- http://www.dynamicdrive.com/dynamicindex14/carousel.htm to open a new page in another frame located directly below the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.