Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
06582edb
Commit
06582edb
authored
Dec 03, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve rendering of carousel example for IE10
parent
d470fb72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
47 deletions
+57
-47
docs/examples/carousel.html
docs/examples/carousel.html
+57
-47
No files found.
docs/examples/carousel.html
View file @
06582edb
...
...
@@ -28,11 +28,17 @@
/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper
{
position
:
relative
;
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
z-index
:
10
;
margin-top
:
20px
;
margin-bottom
:
-90px
;
/* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
}
.navbar-wrapper
.navbar
{
}
/* Remove border and change up box shadow for more contrast */
.navbar
.navbar-inner
{
...
...
@@ -71,24 +77,26 @@
}
.carousel
.container
{
position
:
absolute
;
right
:
0
;
bottom
:
0
;
left
:
0
;
position
:
relative
;
z-index
:
10
;
}
.carousel-control
{
background-color
:
transparent
;
border
:
0
;
font-size
:
120px
;
height
:
80px
;
margin-top
:
0
;
font-size
:
120px
;
text-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
.4
);
background-color
:
transparent
;
border
:
0
;
}
.carousel
.item
{
height
:
500px
;
}
.carousel
img
{
position
:
absolute
;
top
:
0
;
left
:
0
;
min-width
:
100%
;
height
:
500px
;
}
...
...
@@ -98,7 +106,7 @@
position
:
static
;
max-width
:
550px
;
padding
:
0
20px
;
margin-
bottom
:
1
00px
;
margin-
top
:
2
00px
;
}
.carousel-caption
h1
,
.carousel-caption
.lead
{
...
...
@@ -219,7 +227,7 @@
.carousel-caption
{
width
:
65%
;
padding
:
0
70px
;
margin-
bottom
:
4
0px
;
margin-
top
:
10
0px
;
}
.carousel-caption
h1
{
font-size
:
30px
;
...
...
@@ -263,43 +271,45 @@
<!-- NAVBAR
================================================== -->
<!-- Wrap the .navbar in .container to center it on the page and provide easy way to target it with .navbar-wrapper. -->
<div
class=
"container navbar-wrapper"
>
<div
class=
"navbar navbar-inverse"
>
<div
class=
"navbar-inner"
>
<!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
<a
class=
"btn btn-navbar"
data-toggle=
"collapse"
data-target=
".nav-collapse"
>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</a>
<a
class=
"brand"
href=
"#"
>
Project name
</a>
<!-- Responsive Navbar Part 2: Place all navbar contents you want collapsed withing .navbar-collapse.collapse. -->
<div
class=
"nav-collapse collapse"
>
<ul
class=
"nav"
>
<li
class=
"active"
><a
href=
"#"
>
Home
</a></li>
<li><a
href=
"#about"
>
About
</a></li>
<li><a
href=
"#contact"
>
Contact
</a></li>
<!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns -->
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Dropdown
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li
class=
"nav-header"
>
Nav header
</li>
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
One more separated link
</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!-- /.navbar-inner -->
</div>
<!-- /.navbar -->
</div>
<!-- /.container -->
<div
class=
"navbar-wrapper"
>
<!-- Wrap the .navbar in .container to center it within the absolutely positioned parent. -->
<div
class=
"container"
>
<div
class=
"navbar navbar-inverse"
>
<div
class=
"navbar-inner"
>
<!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
<a
class=
"btn btn-navbar"
data-toggle=
"collapse"
data-target=
".nav-collapse"
>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</a>
<a
class=
"brand"
href=
"#"
>
Project name
</a>
<!-- Responsive Navbar Part 2: Place all navbar contents you want collapsed withing .navbar-collapse.collapse. -->
<div
class=
"nav-collapse collapse"
>
<ul
class=
"nav"
>
<li
class=
"active"
><a
href=
"#"
>
Home
</a></li>
<li><a
href=
"#about"
>
About
</a></li>
<li><a
href=
"#contact"
>
Contact
</a></li>
<!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns -->
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Dropdown
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li
class=
"nav-header"
>
Nav header
</li>
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
One more separated link
</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!-- /.navbar-inner -->
</div>
<!-- /.navbar -->
</div>
<!-- /.container -->
</div>
<!-- /.navbar-wrapper -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment