Hello,

This is the slider without bootstrap:

http://www.innovation.web.id/One/portfolio-filter3.php

portfolio-filter3.php

<div class="slider-demo">
        <a href="#" id="previous">&laquo;</a>
        <div id="slider-inner">
            <ul>
                <li><img src="img/1.jpg" alt=""></li>
                <li><img src="img/2.jpg" alt=""></li>
                <li><img src="img/3.jpg" alt=""></li>              
            </ul>
        </div>
        <a href="#" id="next">&raquo;</a>
</div>

Now this is the slider with bootstrap:

http://www.innovation.web.id/One/portfolio-filter.php

portfolio-filter.php

    <div class="row">
        <div class="slider-demo">
            <a href="#" id="previous">&laquo;</a>
            <div id="slider-inner">
                <ul>
                    <div class="col-sm-4"><li><img src="img/1.jpg" alt=""></li></div>
                    <div class="col-sm-4"><li><img src="img/2.jpg" alt=""></li></div>
                    <div class="col-sm-4"><li><img src="img/3.jpg" alt=""></li></div>                
                </ul>
            </div>
            <a href="#" id="next">&raquo;</a>
        </div>
        </div>

Yet, the appearance is not perfect yet. Can anyone help me fix the code to make it looks perfect?

Recommended Answers

All 8 Replies

Member Avatar for diafol

With respect - spit it out. What exactly is wrong with it in your opinion? E.g.

Mismatched nav levels?
Images take forever to load?

BTW yur site is very slow. ARe you loading loads of resources or are the images huage and you've shrunk them via tag properties?
Which script are you using for the slider?

Ok, check the grey client slider. The one with bootstrap and without bootstrap.

My goal is to create grey client slider with bootstrap with a neat appearance. It suppose to be one row horizontal.

And if I turn the web browser smaller than I thought it suppose to shift into vertical.

Member Avatar for diafol

Ok, again, what script are you using? Please read my question.

javascript

Here is the whole script:

carousel-slides/index.html

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>jQuery Slim Slider Plugin Demo</title>
    <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>


    <div class="slider-demo">
        <a href="#" id="previous">&laquo;</a>
        <div id="slider-inner">
            <ul>
                <li><img src="img/1.jpg" alt=""></li>
                <li><img src="img/2.jpg" alt=""></li>
                <li><img src="img/3.jpg" alt=""></li>               
            </ul>
        </div>
        <a href="#" id="next">&raquo;</a>
    </div>

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/slider.jquery.js"></script>

    <script type="text/javascript">
        $(function() {
            $('#slider-inner').slider('#previous', '#next');
        });
    </script>

    <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</body>
</html>
Member Avatar for diafol

I was hoping you'd give the url of the script so I could see what it's supposed to look like and which options are available for it. Nevermind. Good luck with it.

commented: Optimist... +14
Member Avatar for diafol

Oh for goodness sakes davy - THE SITE FROM WHERE YOU GOT THE SCRIPT - not the page where you've pasted it! Leaving you to it. Was being too optimistic after all.

Hello,

Sorry, I am taking the carousel part off in another page. Here is the whole script for portfolio-filter3.php

portfolio-filter3.php

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Portfolio</title>

   <link rel="stylesheet" type="text/css" href="css/style.css">
   <link rel="stylesheet" type="text/css" href="css/carouselstyles.css">
   <link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">



</head>


<body>

<?php include('nav.php'); ?>

<br><br><br>

   <center><h2><b>Our Portfolio</b></h2></center>

   <p>
   Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim
   </p>

   <div id="filters" class="button-group">
      <button class="btn" data-filter="*">All</button>
      <button class="btn" data-filter=".yellow">Yellow</button>
      <button class="btn" data-filter=".red">Red</button>
      <button class="btn" data-filter=".grey">Grey</button>
      <button class="btn" data-filter=".classy">Classy</button>
    </div>

    <br><br>

    <div id="box">
       <div class="grey" data-category="transition" data-name="classy6">
       <img class="name" src="Images/Portfolio/portfolio1.jpg" width="270px">    
    </div>

    <div class="red" data-category="metalloid" data-name="classy5">
       <img class="name" src="Images/Portfolio/portfolio2.jpg" width="270px">   
    </div>
    <div class="yellow" data-category="metalloid2" data-name="classy4">
       <img class="name" src="Images/Portfolio/portfolio3.jpg" width="270px">   
    </div>
    <div class="classy" data-category="metalloid3" data-name="classy3">  
       <img class="name" src="Images/Portfolio/portfolio4.jpg" width="270px">
    </div>   
    <div class="yellow" data-category="metalloid4" data-name="classy2">
       <img class="name" src="Images/Portfolio/portfolio5.jpg" width="270px">   
    </div>
    <div class="grey" data-category="metalloid5" data-name="classy1">    
       <img class="name" src="Images/Portfolio/portfolio6.jpg" width="270px">
    </div>   
    </div> 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.0/isotope.pkgd.min.js"></script>
<script>
$(function(){
  /*var $grid = $grid.isotope({*/
  var $container = $('#box').isotope({ 
    getSortData: {
      name: '[data-name]',
      symbol: '.symbol',
      number: '.number parseInt',
      category: '[data-category]',
      weight: function( itemElem ) {
        var weight = $( itemElem ).find('.weight').text();
        return parseFloat( weight.replace( /[\(\)]/g, '') );
      }
    }
  });
  // sort items on button click
  $('#sorts').on( 'click', 'button', function() {
    var sortByValue = $(this).attr('data-sort-by');
    $container.isotope({ sortBy: sortByValue });
  });
});
</script>

<!-- filter -->

<script>

// init Isotope
var $container = $('#box').isotope({
  // options
});
// filter items on button click
$('#filters').on( 'click', 'button', function() {
  var filterValue = $(this).attr('data-filter');
  $container.isotope({ filter: filterValue });
});

</script>

<script>

$container.isotope({ filter: '.yellow' });
$container.isotope({ filter: '.red' });
$container.isotope({ filter: '.grey' });
$container.isotope({ filter: '.classy' });
$container.isotope({ filter: '*' });

</script>

<!-- end filter -->

<br><br><br><br>
<!--
<div id="greybar">

   <div class="row">

   <div class="col-sm-4 col-xs-12"><div id="clients"><center><img src="Images/Portfolio/client1.jpg"></center></div></div>
   <div class="col-sm-4 col-xs-12"><div id="clients"><center><img src="Images/Portfolio/client2.jpg"></center></div></div>
   <div class="col-sm-4 col-xs-12"><div id="clients"><center><img src="Images/Portfolio/client3.jpg"></center></div></div>

   <div class="col-sm-12 col-xs-12">

   <br><br><br><br><br><br>

   <div align="center">
    Lorem ipsum dolor sit amet, consectetuer adipiscing <br>elit, sed diam nonummy nibh euismod <br>tincidunt ut laoreet dolore magna aliquam<br> erat volutpat.<br>

   <b>dolore magna aliquam</b><br><br>
    </div>

   </div>

   </div>

</div>
-->


    <div class="slider-demo">
        <a href="#" id="previous">&laquo;</a>
        <div id="slider-inner">
            <ul>
                <li><img src="img/1.jpg" alt=""></li>
                <li><img src="img/2.jpg" alt=""></li>
                <li><img src="img/3.jpg" alt=""></li>              
            </ul>
        </div>
        <a href="#" id="next">&raquo;</a>
    </div>




<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="js/slider.jquery.js"></script>

<script type="text/javascript">
    $(function() {
        $('#slider-inner').slider('#previous', '#next');
    });
</script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>


<?php include('footer.php'); ?>



</body>

</html> 
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.