-1

I'm creating a html newsletter to be sent by mail, and this is how far I came:

CSS

.kasten {
    color: #000;
    display: inline-block;
    border-size: 1px;
    border-style: solid;
    border-radius: 10px;
    border-color: #493c2a;
    margin: 7px;
    padding: 0px;
    box-shadow: 0px 0px 10px #222;
    width: 300px;
    height: 300px;
    text-decoration: none;
}

HTML

<div class="kurse">
    <a class="kasten" href="#">
        <!-- content -->    
    </a>
    <a class="kasten" href="#">
        <!-- content -->    
    </a>
    <a class="kasten" href="#">
        <!-- content -->    
    </a>
</div>

The problem is, the blocks don't get displayed in a single line, but rather with some kind of "bumps".

Does anyone know how to fix this?

Timo Türschmann
  • 4,388
  • 1
  • 22
  • 30

3 Answers3

4

You need to align it to the top

.kasten {
    vertical-align: top;
}

http://jsfiddle.net/Gh5ez/2/

Huangism
  • 16,278
  • 7
  • 48
  • 74
1

When you say mail, do you mean email? If so then have a look at the link below. Its a guild for CSS support in emailers.

http://www.campaignmonitor.com/css/

James Nicholson
  • 987
  • 10
  • 20
0

You could remove display:inline-block and add in float:left

.kasten {
  color: #000;
  float:left;
  border-size: 1px;
  border-style: solid;
  border-radius: 10px;
  border-color: #493c2a;
  margin: 7px;
  padding: 0px;
  box-shadow: 0px 0px 10px #222;
  width: 300px;
  height: 300px;
  text-decoration: none;
}

I've made a jsfiddle with the fix