I styled my warning image and text like this:

It looks fine but the thing is I dont know how long the text on the right is going to be, so I need to make some inheritance between the text and the warning icon so when the text is longer the warning will move a bit more to the left site. Instead of the text moving under the image.
What I need: Make inheritance between warning image and text, not depending on how long the text is
My CSS:
.warningimg{
background-image: url("images/warning.png");
background-repeat: no-repeat;
display: inline-block;
width: 37px;
height: 35px;
margin-top: 56px;
margin-left: 750px;
margin-right: 1px;
}
a .warning{
color: #d4d4d4;
height:35px;
display: inline-block;
text-align: right;
float:right;
margin-top: 30px;
margin-right: 0px;
text-decoration:none;
margin-top: 65px;
}
My HTML:
<div class="center">
<div class="warningimg"></div>
<a href="#"><span class="warning"><span class="underline">NIGHT CUP 2014</span>- Sledujte přímý přenos</span></a>
</div>
Live preview can be find on: http://funedit.com/andurit/try5/