Skip to content

Commit

Permalink
Add vertical centering for audio-, canvas- and video-tags
Browse files Browse the repository at this point in the history
Remove the gap between videos, audio and canvas and the bottom of
their containers by vertically centering the tags.

Closes #1326.
  • Loading branch information
drublic committed Jun 25, 2013
1 parent 02713ee commit 9ec5465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### HEAD

* Vertical centering for audio-, canvas- and video-tags ([#1326](https://github.com/h5bp/html5-boilerplate/issues/1326)).
* Update to Google Universal Analytics ([#1347](https://github.com/h5bp/html5-boilerplate/issues/1347)).
* Update to jQuery 1.10.1.
* Update to Normalize.css 1.1.2.
Expand Down
8 changes: 6 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ hr {
}

/*
* Remove the gap between images and the bottom of their containers: h5bp.com/i/440
* Remove the gap between images, videos, audio and canvas and the bottom of
* their containers: h5bp.com/i/440
*/

img {
audio,
canvas,
img,
video {
vertical-align: middle;
}

Expand Down

0 comments on commit 9ec5465

Please sign in to comment.