0
Can images be aligned vertically, if yes, how can this be done?
2 odpowiedzi
+ 4
use css flex display
https://code.sololearn.com/WwrKexflTTXb/?ref=app
+ 4
@Sean:
'align' attribute is deprecated in Html5... it will most of time corrected by browser, but it's a bad practice! Anyway, 'middle' was never a valid value for 'align' attribute in previous versions of Html ^^
@Calvin:
'flex' is not the magic answer to all alignement question, as 'float' was too much improper used as magical response also ;P and anyway, it's not obvious to understand how it's working on first attempts: I think this should require a minimal verbose explanation rather than just a source code to check ;)
@Chibuokem Chiorlu:
Check this code (run and read it, and explore source code in same time) to see different ways of elements alignement:
https://code.sololearn.com/WewcrAlN1m8k/?ref=app