This is because when the screen resolution is too small, the list - also known as
li
will automatically be multi-line match because the image and / or
li
are too large to fit on the screen, the unless there is a
parent
whose
width
is set or greater than the current screen width, for example:
.container {width:1000px;}
.abertura-chamados li {display: inline;}
<div class="container">
<ul class="abertura-chamados">
<li>
<img src="http://upload.wikimedia.org/wikipedia/pt/4/47/Riot_Games_logo.png"/><span>Aberturadechamadosmanutenção</span></li><li><imgsrc="http://upload.wikimedia.org/wikipedia/pt/4/47/Riot_Games_logo.png" /><span>Prisma Sisteplant</span>
</li>
</ul>
</div>
In the example above we can not get the "inline"
images because li
and img
are too large because we do not specify any parameters for their widths and heights, and because their parent
does not have a defined width and its default width will be width:100%;
. But if we did it would be something like this example below: link
.abertura-chamados li {
display: inline;
float: left;
max-width: 130px;
}
.abertura-chamados li img {
display: block;
width: 100%;
}
<div class="container">
<ul class="abertura-chamados">
<li>
<img src="http://upload.wikimedia.org/wikipedia/pt/4/47/Riot_Games_logo.png"/><span>Aberturadechamadosmanutenção</span></li><li><imgsrc="http://upload.wikimedia.org/wikipedia/pt/4/47/Riot_Games_logo.png" /><span>Prisma Sisteplant</span>
</li>
</ul>
</div>
Either way it will always be broken into multiple rows unless we have a parent
div with a specified width such as width:700px;
as I mentioned earlier. But we can always put off your "split" as in the example above or by using media queries etc.