So I have a header for a web page. The header contains the logo div (floating left). Then also divs for orders,wishlist,cart and account (in that order from left to right), but the order/wishlist/cart/account divs must float to the right. I.e. always stick to the right hand side of the site.
I have created the site here:
https://jsfiddle.net/k3rc5r0e/
I use display:inline-block for the divs so that they will wrap on a small screen. And float:right to put them on the right. But they are in reverse order. Probably the order in which they appear in the html and render order. I can put then in reverse order in the html to get the desired result, but is there not a better way?
Help appreciated. I am a HTML/CSS noob
I have created the site here:
https://jsfiddle.net/k3rc5r0e/
I use display:inline-block for the divs so that they will wrap on a small screen. And float:right to put them on the right. But they are in reverse order. Probably the order in which they appear in the html and render order. I can put then in reverse order in the html to get the desired result, but is there not a better way?
Help appreciated. I am a HTML/CSS noob