vertical Missalignment with inline-block (other elements pushed down) - alignment

This issue has been answered before. Sadly, vertical-align: top does not fix the problem for me.
Here's a JSFiddle: http://jsfiddle.net/CPAtE/2/
How can i vertically align my inline-block DIVs (to the top) ?

Use vertical-align: top; in your .slide class
FIDDLE

Related

Dart-Polymer 1.0 - How to align paper-fab horizontally?

I don't know if I'm missing something or if this is a bug, paper-fab buttons always "force a new line". So, I can't get several paper-fab buttons aligned horizontally. I have tried <span>ing them:
<span>
<paper-fab mini icon='arrow-forward' on-click='onClickForward'></paper-fab>
<paper-fab mini icon='arrow-backward' on-click='onClickBackward'></paper-fab>
</span>
and they are stacked vertically.
Just set display to inline-block
<style>
paper-fab {
display: inline-block;
}
</style>

Full width menu with negative margin gives infinite horizontal scroll on safari and ios

I have a site where I have a full width menu, which has negative margins. It works perfect, except on Safari/iOS.
On Safari/iOS I can scroll horizontaly forever....WHY?
background-color: #0a6e96;
margin: -1px -9999rem;
padding: 1.2rem 9999rem;
margin-top: 48px;
Update - Solution
https://css-tricks.com/full-browser-width-bars/
This link has multiple solutions.
To avoid triggering horizontal scrolling, you need to set overflow-x:hidden on both the html and body elements.

Absolutely positioned elements within inline-block

I've run into an issue while trying to bottom-align a logo container to the zero-height parent. Preferably, I want to achieve this with pure CSS.
In the attached fiddle, I want to get the bottom of the control-group to be aligned to the top of the zero-height panel element. The markup needs to stay the way it is. Is it possible to do this without specifying static height or top offset? The parent needs to be zero-heght. Otherwise, if its above the content and it will have height, it will overlap the light-blue container, which will have other content. As such, content in the blue div will not be clickable in the part that is overlapped by the panel div. Any suggestions?
The problem can be seen here: http://jsfiddle.net/jQgHy/5/
I'm not sure if this is what you're looking for...
.control-group {
display: inline-block;
position: absolute;
vertical-align: bottom;
text-align: center;
bottom: 0;
}
http://jsfiddle.net/jQgHy/6/

Align text support

I am looking to apply a buy bottom to a column in field 3 of a table on this page.
http://hamabeadpatterns.co.uk/hama-beads/midi-beads-5/disney-gift-sets/
However when I do so, how can i get the buttom to align in the dead center of the field. As apposed to the bottom center?
Add vertical-align: middle; to your <td> tag.

Content in div aligns to the bottom

I have a header div, inside this is some content. The whole div is text-align:right. I want the content to sit on the right but more importantly sit on the bottom of the div, not the top.
#header {
height:79px;
background:url(images/jtl-logo.png) no-repeat left top;
text-align:right;
padding:0px 9px; }
Surely there must be a way of doing this in the CSS so that content always aligns to the bottom of it's container, it seems like it's incredibly necessary?
The only other way I can think to do it is applying padding to the header to push it down, but that seems a bit ridiculous when this is such a simple thing.
You could wrap up the text in another DIV or SPAN element and then apply CSS positioning to move it to the bottom.

Resources