php - "echo" session and logout in the same line
448
Currently when i showing my username(through session) and logout function , both of them is in different lines
Image: http://prntscr.com/nc2v1b ( This is output )
What i want : https://prnt.sc/nc2w23
Username is on the right side of "Logout"
Answer
Solution:
First of all, remove this part
style='float:right;'
Using
float:right
will move the text right.Second, need some spacing here:
Answer
Solution:
Float right will push everything to the right (last item being the one the the most on the right). Your code seem to work if you need to have everything on one line though.