
I’m having trouble setting up my css to display my page correctly. I want the “DRINKS” icon to remain on the left, but i want to shift up the entire block of drink images to the right of the “DRINKS” icon.
I tried floating the drinks icon to the left, then floating the block of drink images to the left too, but it obviously didnt work.
HTML:
<div id="drink_section">
<img src="/{{MEDIA_URL}}images/images/drinks_order_title.png" alt="" id="drinks_order_title" />
<div id="drink_menu">
{% for item in drink %}
<div id="drink_set">
<img src="{{item.photo_menu.url}}" alt="" id="drink_photo" />
<img src="/{{MEDIA_URL}}images/images/drinks_title_overlay.png" alt="" id="drinks_title_overlay" />
<p id="drink_name">{{item.name}}</p>
<p id="drink_price">${{item.price}}</p>
<div id="drink_footer">
<a id ="drink_order_button" href="{{item.slug}}"></a>
</div><!-- end drink_footer-->
</div><!-- end drink_set-->
{% endfor %}
</div><!-- end drink_menu-->
</div><!-- end drink_section-->
CSS
#drink_section{
width:755px;
float:left;
}
#drink_menu{
float:left;
}
#drink_title{
float:left;
width:128px;
}
#drink_set{
float:left;
width:137px;
}
Demo
Hi now you can change your code and used
ul lilist item for this designas like this
html
css
Live demo