+ 1

Why I can't just use float:right?

I am new to html and css. when I am using float: right, it doesn't show the result I want. that block doesn't showup in right place and it goes down. why it is happening? https://code.sololearn.com/WR26Bggu5mO9/?ref=app

19th Dec 2017, 12:55 PM
rakibul
7 odpowiedzi
19th Dec 2017, 2:50 PM
Catty
+ 6
You should see it here ↓↓↓ :) https://www.w3schools.com/css/css_float.asp
19th Dec 2017, 1:03 PM
James16
James16 - avatar
+ 2
Could you share your code?
19th Dec 2017, 1:57 PM
Calviղ
Calviղ - avatar
+ 2
reduce .n3 width
19th Dec 2017, 2:39 PM
Calviղ
Calviղ - avatar
0
@calvin I have posted in the post
19th Dec 2017, 2:17 PM
rakibul
0
thanks @catty @calvin
19th Dec 2017, 3:25 PM
rakibul
0
btw if I add a footer block in the code. it goes all the way near header block and stays under the main block. what can I do to solve that problem?
19th Dec 2017, 3:27 PM
rakibul