0

In the following code, I want the two columns to start on the same line. It seems like there is a linebreak on the right side. Any ideas how to fix it? I guess this is an easy piece for the CSS-gurus here.

And how to make the right column be 100% in height of the parent div. I tried setting it to 100%, but then the border exceeds the border line of the div.

The code:

<div style="width:550px; padding:0 20px 20px 20px; background:#fff; margin:0 auto; border:3px #000 solid;
    moz-border-radius:5px; -webkit-border-radus:5px; border-radius:5px; color:#454545;line-height:1.5em; " id="email_content">

    <div style="border-top:1px solid #eee;padding:5px 0 0 0;" id="email_footer">Information</div>
    <h1 style="padding:5px 0 0 0; font-family:georgia;font-weight:500;font-size:24px;color:#000;">Headline</h1>
                <div style="float:right;margin: 0px 20px 15px 15px;padding:0px 0px 0px 10px;width:150px;height: 50;border-left: 1px solid #000000;"><p>test</p></div>
                <p style="color: #000000;">test</p>
</div>

Screenshot: enter image description here

janlindso
  • 1,225
  • 3
  • 16
  • 41

1 Answers1

0

Give the elements the inline-block display.

See this fiddle: http://jsfiddle.net/bgzqrbh5/

k-nut
  • 3,447
  • 2
  • 18
  • 28