- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I Have this DOM that I can’t modify. I need to put the span with class “image” to the container bottom, after the unordered list. I can’t find a solution. List items number in unordered list could be change. I tried with position absolute but i can’t
<div class="container">
<span class="image">
<img src="">
</span>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
</ul>
</div>
<div class="container">
<span class="image">
<img src="">
</span>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
</ul>
</div>
Simples…flexbox can do that.
Thank you for your answer. But there is another problem.
<div class="container">
<span class="image">
<img src="http://www.fillmurray.com/140/100">
</span>
<div class="title">TITLE</div>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
</ul>
</div>
If I’ve one div between Image and UL?
You’d need to use the order
property but you specifically stated that the HTML could not be changed. If you want detailed advice, please provide all the information required rather than piece by piece.