Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Align different sized Images that do not have parent container

Tags:

html

css

My Issue: How can I "center" the images so the Headers left-align looks clean?

I just realized (late in a project) that the icons that were uploaded in a list style s

I just realized I didn't plan for different sized icons on a site, and I'm wondering if there's a quick, non-hacky solution. I won't be able to edit the HTML in any way due to the size of the project.

I'm okay with Psudeo and calc solutions

edit: Setting a fixed width causes noticable blurring on the site and/or makes taller icons too small

jsFiddle http://jsfiddle.net/vantbrhb/

like image 949
CSS Apprentice Avatar asked Dec 14 '22 11:12

CSS Apprentice


1 Answers

You can give position:absolute; to the h5 and then align it to the left side;

Jsfiddle

like image 84
Alex Avatar answered May 21 '23 03:05

Alex