locked
Responsive Slider Issue in ASP.NET Web Forms RRS feed

  • Question

  • User-471420332 posted

    I am using bootstrap Design, But everything coming correctly in html page and the issue after converted into aspx pages(DOTNET pages) slider is not showing after run the application. If I will apply min-height: 300px; into images then only slider is showing and I do not want to apply min height because loosing responsive.

    Below is my design:

    <div class="carousel-inner">
            <div class="item active">
                <div class="fill" style="background-image:url('images/img1.jpg'); min-height: 300px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('images/img1.jpg'); min-height: 300px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('images/img1.jpg'); min-height: 300px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
        </div>

    Below are script files:

        <!-- jQuery -->
        <script src="js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.easing-1.3.min.js"></script>
        <!-- Bootstrap Core JavaScript -->
        <script src="js/bootstrap.min.js"></script>
        <!-- custom -->
        <script src="js/custom.js"></script>
    Tuesday, August 30, 2016 12:11 PM

Answers

  • User-471420332 posted

    Basically I were using <kbd><div></kbd> instead of <kbd><img></kbd> and I had changed like below:

    <img class="fill" src="images/img1.jpg"/>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 31, 2016 6:55 AM

All replies

  • User-471420332 posted

    Basically I were using <kbd><div></kbd> instead of <kbd><img></kbd> and I had changed like below:

    <img class="fill" src="images/img1.jpg"/>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 31, 2016 6:55 AM
  • User-1142886626 posted

    Hi mazhar khan india,

    You could add the Left and right controls and in the most outer layer add the following <div> tag. It will work fine.

    <div id="myCarousel" class="carousel slide" data-ride="carousel">
        <div class="carousel-inner" role="listbox">
            <div class="item active" >
                <div class="fill" style="background-image:url('img_chania.jpg'); height: 750px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('img_chania2.jpg'); height: 750px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('img_flower.jpg'); height: 750px;"></div>
                <div class="carousel-caption">
                    <h2>dot net jobs</h2>
                    <p class="hidden-xs">Dont apply already applied! Click here to apply for job !</p>
                    <a href="apply.aspx" class="orange-button">Apply now</a>
                </div>
            </div>
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
            </a>
        </div>
    </div>

    Best Regards,

    Ailleen

    Wednesday, August 31, 2016 7:42 AM
  • User-1142886626 posted

    Hi mazhar khan india,

    Thanks for sharing.

    Best Regards,

    Ailleen

    Wednesday, August 31, 2016 7:50 AM
  • User-471420332 posted

    Hi Ailleen,

         IF you are web designer then It will help you lot while any type of slider in your project. 

    Thank you

    Wednesday, August 31, 2016 8:07 AM