Solved

Boostrap carousel not aligned correctly

Posted on 2015-01-12
4
103 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
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Read about why website design really matters in today's demanding market.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

758 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now