[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Boostrap carousel not aligned correctly

Posted on 2015-01-12
4
Medium Priority
?
130 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 2000 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

873 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