Skip to content

Commit

Permalink
vertical centering is working now
Browse files Browse the repository at this point in the history
  • Loading branch information
rpattabi committed Dec 31, 2011
1 parent 4ca5252 commit 8ef61e9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
10 changes: 2 additions & 8 deletions slides.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,12 @@
</head>
<body>

<div class="layout">
<div id="header"></div>
<div id="footer">
<h1><%= @headers['footer'] %></h1>
<h2><%= @headers['subfooter'] %></h2>
</div>
</div>

<div id="container">
<div class="presentation">

<%= @content %>

</div><!-- presentation -->
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion style.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; }

a:link, a:visited { color: black; }

.slide h1 { font-size: 30pt; }
.slide h1 { font-size: 80pt; }

.slide h1 { text-align: center; }

Expand Down
27 changes: 16 additions & 11 deletions takataka/projection.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@

html,
body,
.presentation { margin: 0; padding: 0; }

.presentation {
width: 624px;
margin-left: auto;
margin-right: auto;
height: 395px;
}

.slide { display: none;
position: absolute;
top: 0; left: 0;
margin: 0;
padding: 2% 4% 0% 4%; /* css note: order is => top right bottom left */
width: 92%; height: 95%; /* css note: to get to 100% add padding/border/margin */
overflow-x: hidden; overflow-y: auto;
z-index: 2;
}
.slide {
display: block;
}

#slide1 { display: block; }

Expand Down Expand Up @@ -106,4 +105,10 @@ body,
#currentSlide :link,
#currentSlide :visited { text-decoration: none; }


#container {
position: absolute;
top: 50%;
margin-top: -200px;
left: 0;
width: 100%;
}

0 comments on commit 8ef61e9

Please sign in to comment.