Solved

Boostrap carousel not aligned correctly

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…

785 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