-2

Why this two DIV dont show it inline? anything happens and the second DIV its show bottom...

#mac{
display: inline-block;
background-color:#000000;
    background-repeat: no-repeat;
padding-top:130px;
height:455px;
width:50%;
}
#mac2{

display: inline-block;
background-color:#000000;
    background-repeat: no-repeat;
padding-top:130px;
height:455px;
width:50%;
}
<!doctype html>
<html>
    <head></head>
    <body>
        <div id="mac"></div><div id="mac2"><img src="images/rocket.png"><span class="textomedio">Maximizamos tu ROI</span></div>
    </body>
</html>

http://jsfiddle.net/XCDsu/4/

gunr2171
  • 16,104
  • 25
  • 61
  • 88
Rom
  • 563
  • 5
  • 21

1 Answers1

0

You need to add vertical-align:top; to #mac2:

#mac{
display: inline-block;
background-color:#000000;
background-repeat: no-repeat;
padding-top:130px;
height:455px;
width:50%;
}
#mac2{
display: inline-block;
background-color:#000000;
background-repeat: no-repeat;
padding-top:130px;
height:455px;
width:50%;
vertical-align:top;
}
<!doctype html>
<html>
    <head></head>
    <body>
        <div id="mac"></div><div id="mac2"><img src="images/rocket.png"><span class="textomedio">Maximizamos tu ROI</span></div>
    </body>
</html>
j08691
  • 204,283
  • 31
  • 260
  • 272