Solved

Boostrap carousel not aligned correctly

Posted on 2015-01-12
4
117 Views
Last Modified: 2015-01-12
Hi, test.magickitchen.com/responsive/

On that site, I have a bootstrap carousel, but on firefox and chrome, and on a mobile emulator, the image sits too far left, over the left control.

Thanks for your help.
0
Comment
Question by:mel200
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40544434
In custom.css line 40, try adding margin:0 auto.

.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 50%;
}
0
 

Author Closing Comment

by:mel200
ID: 40544450
You, sir, are a genius. Thanks!
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 40544465
You're welcome. Thanks for the points.

You might want to play with that max-width:50% too. Changing it to a higher value will make the carousel taller (which you may not want) but it will also narrow the gray sides a little.
0
 

Author Comment

by:mel200
ID: 40544482
ok, awesome, thanks. I will play with that.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question