After I added div that defining backgound color of text, whole value of 'Ime' goes to new row. Why?
Something like this:
Ime:
Stephen
This is code:
<div class="rightmiddle">
<?php
while ($row = mysql_fetch_array($query)){
?>
<div class="divmobilni">
<div class="floatright"><img src="images/nokia-lumia-720.jpg" height="66px" width="50px" /></div>
Ime:<div class="imepozadina"> <?php echo $row['Ime'];?></div>
Okrug: <?php echo $row['Okrug'];?>
<br />
Telefon: <?php echo $row['Telefon'];?>
</div>
<br />
<?php } ?>
</div>
</div>
Css:
imepozadina{
background-color:red;
width:auto;
}