mamule 0 Posted February 1, 2015 Share Posted February 1, 2015 Bonjour a tous, Je découvre via google en recherchant comment aligner 2 photos horizontalement... Je vous précise que je débute en html/css, donc merci de ne pas me couper les bras à coup de hache Voici donc mon html <img src="img/elea.jpg" alt="" class="portraits"><img src="img/mael.jpg" alt="" class="portraits"> Le CSS correspondant .portraits { border-radius: 40px; margin-left: auto; margin-right: auto; } Je vous passe tout mes differents tests, je n'arrive à rien... Pouvez-vous m'aider ? Merci d'avance... Link to post Share on other sites
forumd 0 Posted February 2, 2015 Share Posted February 2, 2015 .portraits { float: left; border-radius: 40px; margin-left: auto; margin-right: auto; } Avec float left au moins sur la première image ou dans une div qui contient cette image Link to post Share on other sites
MarvinLeRouge 1 Posted February 9, 2015 Share Posted February 9, 2015 Ou tu ne flottes rien et tu utilises flexbox... Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now