Solved

Boostrap carousel not aligned correctly

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

739 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