BaseCMD :: Home

How can I change the width and height of slides on Slick Carousel?

http://kenwheeler.github.io/slick/ A friend suggested that I use Ken Wheeler’s Slick carousel and I decided to give it a try. I am having a couple of problems with it. The first is that the slides don’t load «on top of each other» like they should. They are stacked vertically. When the first slide fades in, it is in the correct spot, however, when the second slide fades in, it is below where the first slide was. Also notice that on the first slide the right border is cut off and on the second slide everything besides the left border is cut off. The second problem is that I can’t seem to change the width or height of the slides. They would all be the same dimensions. (They are set in my css file in the «featured» class.) What am I doing wrong?

               

Top Stories

Another Test Article

https://www.bungie.net/pubassets/1319/Destiny_31.png Lorem ipsum dolor sit amet, inani accusata et duo, ad sit veniam interpretaris. Sea scripta nostrum ex, liber fastidii ea duo. Id vim nobis option contentiones, mea probatus praesent ut. Sea ex libri.

Read More

This Is a Test Article

https://www.bungie.net/pubassets/1319/Destiny_31.png Lorem ipsum dolor sit amet, inani accusata et duo, ad sit veniam interpretaris. Sea scripta nostrum ex, liber fastidii ea duo. Id vim nobis option contentiones, mea probatus praesent ut. Sea ex libri.

Read More

Slide 1 Slide 2

6 Answers 6

I initialised the slider with one of the properties as

Читайте также:  Кевин янг php mysql

then i could set the width of the slides to anything i wanted in CSS with:

Источник

How to customized ui slider handle width

How to adjust slider handle width to unlimited maximum value. Suppose If slider move max width above range (example:320) then slider will adjust from new handle width to old handle width (example:40) need to fill it slider handle width. Note :Please check it how to make it flexible slider handle.

$( "#slider-range-max").slider( < value:0, min: -100, max: 100, step:10, orientation:"horizontal", animate: true, create : function() < var amountValue = $(this).slider('value'); $("#amount").val((amountValue >'0') ? ('+'+ amountValue) : amountValue); var tooltip = '
' + amountValue + '
'; $(this).find('.ui-slider-handle').html(tooltip); //$(this).find('#slider-range-max').text(amountValue); >, slide: function (event, ui) < var value = Math.abs(ui.value); var percentage = (value/100)*100 ||initialValue; var appendMaxValue=parseInt(percentage)-100||initialValue; //var minPercentage = (value/-100)*100 ||initialValue; var max = $( "#slider-range-max" ).slider( "option", "max" ); var min = $( "#slider-range-max" ).slider( "option", "min" ); var step = $( "#slider-range-max" ).slider( "option", "step" ); if(ui.value>0 && ui.value<=100)0 Value $('#blue_bar .min span').css('width',percentage+'%'); $('#blue_bar .max span').css('width',0+'%'); tooltip ='
' + ui.value + '
'; > if(ui.value>100)< console.log(appendMaxValue+"appendMaxValue"+ui.value +"ui.value"+percentage +"percentage"); $('#blue_bar .min span').css('width',100+'%'); $('#blue_bar .max span').css('width',0+'%'); $('#blue_bar div').css('width',50+'%'); tooltip ='
' + ui.value + '
'; > if(ui.value' + ui.value + '
'; > if(ui.value<-100)< $('#blue_bar .max span').css('width',100+'%'); $('#blue_bar .min span').css('width',0+'%'); tooltip ='
' + ui.value + '
'; > if(ui.value==0)< //Slide Zero Value console.log(ui.value+"ZEROOOO") $('#blue_bar .max span').css('width',0+'%'); $('#blue_bar .min span').css('width',0+'%'); tooltip ='
' + percentage + '
'; > $("#amount").val(ui.value); $(ui.value).val($('#amount').val()); $(this).find('.ui-slider-handle').html(tooltip); if(ui.value>=max) < sliderDynamicMaxAVal(max,step); >if(ui.value <=min)< sliderDynamicMinAVal(min,step); >> >).append(' ')
#blue_bar < float: right; height: 100%; border-radius: 0 4px 4px 0; >#blue_bar div < float:right; width: 50%; height: 100%; >#blue_bar .min span < background:#CF8331; width: 0%; height: 100%; float:left; border-top-right-radius: 17px; border-bottom-right-radius: 17px; >#blue_bar .max span < background:#4FBFCF; width: 0%; height: 100%; float:right; border-top-left-radius: 17px; border-bottom-left-radius: 17px; >.tooltip

Источник

How to set different width of jquery slider

Iam using Elastislide Responsive Carousel Slider LINK I modification code, I want 1 page show 2 slider with different width i want slider 1 width : 100% and slider 2 width : 50% this my code, i confused 🙁 index.html

  • image01
  • image02
  • image03
  • image04
  • image05
  • image06
  • image07
  • image08
  • image09
  • image10
  • image11
  • image12
  • image13
  • image14
  • image15
  • image16
  • image17
  • image18
  • image19
  • image20


  • image01
  • image02
  • image03
  • image04
  • image05
  • image06
  • image07
  • image08
  • image09
  • image10
  • image11
  • image12
  • image13
  • image14
  • image15
  • image16
  • image17
  • image18
  • image19
  • image20
.elastislide-wrapper < position: relative; background-color: #fff; margin: 0 auto; min-height: 60px; box-shadow: 1px 1px 3px rgba(0,0,0,0.2); >.elastislide-wrapper.elastislide-loading < background-image: url(../images/loading.gif); background-repeat: no-repeat; background-position: center center; >.elastislide-horizontal < padding: 10px 40px; >.elastislide-carousel < overflow: hidden; position: relative; >.elastislide-carousel ul < position: relative; display: block; list-style-type: none; padding: 0; margin: 0; -webkit-backface-visibility: hidden; -webkit-transform: translateX(0px); -moz-transform: translateX(0px); -ms-transform: translateX(0px); -o-transform: translateX(0px); transform: translateX(0px); >.elastislide-horizontal ul < white-space: nowrap; >.elastislide-carousel ul li < margin: 0; -webkit-backface-visibility: hidden; >.elastislide-horizontal ul li < height: 100%; display: inline-block; >.elastislide-carousel ul li a < display: inline-block; width: 100%; >.elastislide-carousel ul li a img < display: block; border: 2px solid white; max-width: 100%; >/* Navigation Arrows */ .elastislide-wrapper nav span < position: absolute; background: #ddd url(../images/nav.png) no-repeat 4px 3px; width: 23px; height: 23px; border-radius: 50%; text-indent: -9000px; cursor: pointer; opacity: 0.8; >.elastislide-horizontal nav span < top: 50%; left: 10px; margin-top: -11px; >.elastislide-horizontal nav span.elastislide-next

Источник

How do I set the width (in pixels) of an input slider?

I would like to add some CSS in the header of my HTML file to set the width of certain classes of slider. Here’s a link to the whole file which include 3 CSS definitions and a short JS for passing values in and out of the sliders.

     var ws = null window.addEventListener('load', function() < if ('WebSocket' in window) < ws = new WebSocket('ws://localhost:60001') ws.onmessage = function(e) < var m = JSON.parse(e.data) if (m) < var e = document.getElementById(m[0]) if (e) e.value = parseInt(m[1] * 100) >> > >) function send(k, v) div < margin-bottom: 1em; >code < color: gray; >.slider-width  
/qc/lfo/1
/range/1-3


/checkbox/1-3
/radio/1
/text/1
/select/1
/button/1

1 Answer 1

The code above is the width definition syntax you should use for styling the width. This will be in a separate css file which should be linked into the page. To use it you should set the class attribute of the tag like this:

If your rule is overwritten by other rules which have a higher css priority, you might consider to use this ugly hack in your css rule definition:

When I use this style inside the HTML file it works fine. When I put in external file it doesn’t work. Can’t workout why, CSS is loading because text colour style changes work. WHat might I be doing wrong?

You have removed the «answer» attribute from my answer. Can you tell me why and what was the problem?

Are you sure the rule was put into the same CSS which you were successfully linked to the page? Are you sure there is no other CSS rule which overwrites this rule because of a higher priority? Also, if this works in your HTML then we can say for sure that your problems don’t originate from this rule, because it’s working. You could test this by creating a CSS file containing only this rule and linking this file only to your HTML. This would be a proof of concept.

Источник

How to change the width of jQuery Skitter.js Slideshow?

I want to change the width and height of skitter jquery slider. I tried to override the default jquery.css by the width 100% with «important! It is supposed to override the inline rules but i can’t control the width and the height. What is the solution for this issue ?

 height: 600px; position: relative; color: #FFF; overflow: hidden; > .skitter,.skitter-square < width:1300px !important; margin: 0 >.container_skitter < width:1300px !important; >.box_skitter < width:1300px !important; >.box_skitter img
  • Lorem ipsum dolor sit amet, consectetur adipisicing elit. See more

  • Lorem ipsum dolor sit amet, consectetur adipisicing elit. See more

  • Lorem ipsum dolor sit amet, consectetur adipisicing elit. See more

Источник

Оцените статью