0

How to align in the same line an image and an element ?

Hello i want to align in the same line my text and my image. I want to float the menu image to the left and the h1 to the center but it doesn't work. PS : I'am french https://code.sololearn.com/WnzS553xe06O/?ref=app

24th Nov 2018, 5:35 PM
Chris
4 Answers
+ 8
For example, you can use float:right; There are better ways though. nav h1 { text-align:center; float:right; }
24th Nov 2018, 7:25 PM
dρlÏ…Ń•ÏlÏ…Ń•
dρlÏ…Ń•ÏlÏ…Ń• - avatar
+ 7
https://code.sololearn.com/W3NNP68Vpv2t/?ref=app Is this alright? If you want to practice flexbox a little, this is a cute exercise : www.flexboxfroggy.com
24th Nov 2018, 7:55 PM
dρlÏ…Ń•ÏlÏ…Ń•
dρlÏ…Ń•ÏlÏ…Ń• - avatar
+ 1
Yes thank you a lot 😄
24th Nov 2018, 7:56 PM
Chris
0
Yes but I want that the h1 be centered
24th Nov 2018, 7:34 PM
Chris