Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Carousel Control in bootstrap

Contributor ,
Dec 18, 2016 Dec 18, 2016

Copy link to clipboard

Copied

Hi,

Here is my website :

http://odatrichy.org/index.php

In my carousel,there is some problem with carousel controls.At present I have commented the scripts from line 101.

If I uncomment them,both left and right controls are found adjacently.Please help me to fix it.

Thanks in advance.

Views

764
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 18, 2016 Dec 18, 2016

Fix your 17 code errors.  You have unbalanced tags that are causing problems. 

Showing results for http://odatrichy.org/index.php - Nu Html Checker

Nancy

Votes

Translate
Community Expert ,
Dec 18, 2016 Dec 18, 2016

Copy link to clipboard

Copied

Fix your 17 code errors.  You have unbalanced tags that are causing problems. 

Showing results for http://odatrichy.org/index.php - Nu Html Checker

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Hi ,

Thank you very much Nancy for pointing out the errors.I have corrected the errors .But still there is some problem with the <section> .Please help me to correct them.And also slider view is left aligned.I find space after the slider.Please help me to fix them.

Thanks in advance.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

To center slider, remove comments around <div class="container"> which is 1 line above your carousel.  Check your code to ensure all <div> tags are closed.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Yes,I have uncommented it,see now my slider looks like.I want the slider to be full width.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Your image is not wide enough to fill the screen

Change container to:

     <div class="container-fluid">

Add this to your custom CSS:

     .carousel img {width: 100%}

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

I did what you have said.I just got the image somewhat extended towards right and left but not to the full width .

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Container-Fluid should be very close to full screen width. Maybe you need to remove the wrapper.   Wrapper is not a Bootstrap class so I don't know why you need it.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Removed the class "wrapper".Still looks the same.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2016 Dec 20, 2016

Copy link to clipboard

Copied

Like I said above, you must  change "container"  to "container-fluid"

When I do that, this is what I see.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 21, 2016 Dec 21, 2016

Copy link to clipboard

Copied

I did change this.

Change container to:

     <div class="container-fluid">

Add this to your custom CSS:

     .carousel img {width: 100%}

Capture.JPG

The slider does extend.But not to the whole ends towards right and left.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2016 Dec 21, 2016

Copy link to clipboard

Copied

Containers leave a little space around the edges which is usually better for viewing on desktops.  If you don't want it, simply remove the <section> and <div> tags.

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 21, 2016 Dec 21, 2016

Copy link to clipboard

Copied

LATEST

Thanks Nancy for all your responses.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines