473,379 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Positioning Unclear For Multiple Nivo Sliders

I am fighting with the positioning of my multiple nivo sliders. I have (in the moment) five sliders which should appear all on the same position, which can be seen here.

The thing is that the positioning in the code is always the same; but it isn't on the browser's display. When clicking on "Keeping Track" or on "Chemicals & Waste", the slider appears either on the top of the page, or is being only partly displayed.

Expand|Select|Wrap|Line Numbers
  1. <div style="margin-left: 10px">
  2.     <div id="pagewrap">
  3.         <div class="slidewrap">
  4.             <div id="slider1">
  5.                 <a class="lightview" href="images/geg_fish_stocks.png"><img alt="Gallery Picture" title="#caption2" src="images/geg_fish_stocks_light.png" /></a>
  6.                 <a class="lightview" href="images/geg_protected_areas.png"><img alt="Gallery Picture" title="#caption6" src="images/geg_protected_areas_light.png" /></a>
  7.             </div>
  8.             <div id="slider2" style="margin-top: -350px; visibility: hidden"> <!-- Atmosphere -->
  9.                 <a class="lightview" href="images/geg_temperature.png"><img alt="Gallery Picture" title="#caption4" src="images/geg_temperature_light.png" /></a>
  10.                 <a class="lightview" href="images/geg_indoor_cooking.png"><img alt="Gallery Picture" title="#caption17" src="images/geg_indoor_cooking_light.png" /></a>
  11.             </div>
  12.             <div id="slider3" style="margin-top: -350px; visibility: hidden"> <!-- Biodiversity -->
  13.                 <a class="lightview" href="images/geg_protected_areas.png"><img alt="Gallery Picture" title="#caption6" src="images/geg_protected_areas_light.png" /></a>
  14.                 <a class="lightview" href="images/geg_access_benefit.png"><img alt="Gallery Picture" title="#caption7" src="images/geg_access_benefit_light.png" /></a>
  15.             </div>
  16.             <div id="slider4" style="margin-top: -350px; visibility: hidden"> <!-- Chemicals -->
  17.                 <a class="lightview" href="images/geg_radioactive_waste.png"><img alt="Gallery Picture" title="#caption13" src="images/geg_radioactive_waste_light.png" /></a>
  18.                 <a class="lightview" href="images/geg_basel_convention.png"><img alt="Gallery Picture" title="#caption14" src="images/geg_basel_convention_light.png" /></a>
  19.             </div>
  20.             <div id="slider5" style="margin-top: -350px; visibility: hidden"> <!-- Keeping Track -->
  21.                 <a class="lightview" href="images/kt_hdi.png"><img alt="Gallery Picture" title="#caption9" src="images/kt_hdi_light.png" /></a>
  22.                 <a class="lightview" href="images/kt_food_supply.png"><img alt="Gallery Picture" title="#caption10" src="images/kt_food_supply_light.png" /></a>
  23.             </div>

The CSS looks like this:

Expand|Select|Wrap|Line Numbers
  1. #slidewrap{
  2.     position:absolute;
  3.     background: #fff;
  4. }    
  5.  
  6. #slider, #slider1, #slider2, #slider3, #slider4, #slider5 {
  7.     position:relative;
  8.     height:auto;
  9.     width:915px;
  10.     border:10px solid rgba(89,117,220,0.33);
  11.     box-shadow:0 0 5px #444;
  12.     margin: 0;
  13. }
  14. #slider img, #slider1 img, #slider2 img, #slider3 img, #slider4 img, #slider5 img{
  15.     position:absolute;
  16.     top:20px;
  17.     left:0px;
  18.     display:none;
  19. }
  20.  

Plugin activation:

Expand|Select|Wrap|Line Numbers
  1. $(window).load(function()
  2. {
  3.     $('#slider1').nivoSlider({
  4.         pauseTime: 4000
  5.     });
  6.     $('#slider2').nivoSlider({
  7.         pauseTime: 4000
  8.     });
  9.     $('#slider3').nivoSlider({
  10.         pauseTime: 4000
  11.     });
  12.     $('#slider4').nivoSlider({
  13.         pauseTime: 4000
  14.     });
  15.     $('#slider5').nivoSlider({
  16.         pauseTime: 4000
  17.     });
  18.     $('#slider6').nivoSlider({
  19.         pauseTime: 4000
  20.     });
  21.     $('#slider7').nivoSlider({
  22.         pauseTime: 4000
  23.     });
  24. });    


I am really confused, and have no idea why this would be. I can change the "margin-top" and than some of those sliders get into the right position. But why are some 100% adjusted, and others not?! Thanks for any hints which could help me solve this riddle.
Jan 10 '13 #1
0 1398

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

Similar topics

2
by: Jason Charalambides | last post by:
Could someone please tell me how I can get a slider disabled? I click on "enable" and turn it to "false", I save my project, I close the VB6, then when I open it the next day, the sliders are...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
3
by: adam.sherratt | last post by:
Ayup! I am currently working on a Capacity Planning project for my office, and i'm interested to hear your thoughts on the best way to approach something. here's the scenario; The...
3
by: Bart Van der Donck | last post by:
Hello, I'm having a hard time trying to configure printed output that consists of multiple pages. The idea is the following: <div style=" border: 1px solid blue; position: absolute; top:...
0
by: WLigtenberg | last post by:
Hi, I'm looking for a Scale like Tkinter widget that has two sliders, so that the user can select both the upper and lower bound of some dataset. Much like the widgets used in spotfire:...
0
by: wishbone34 | last post by:
I have come across a problem when using JSlider: I Know how to use sliders, the rest of my code has a few other sliders, they all work fine, but for this slider, when I use the setValue function, it...
3
by: LayneMitch | last post by:
Hello everyone. I'm designing a site for a friend of mine and I'm having a few issues. First off, I'm noticing that there is a difference between the default line- heights of IE and...
1
by: C. (http://symcbean.blogspot.com/) | last post by:
On Aug 12, 7:08 am, long_way <yilongwei....@gmail.comwrote: Hi, Wouldn't it just be simpler to use Google maps? I'm not overly familiar with greybox, but it should be fairly straightforward...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.