+ 1

Side by side text

how to get text to go on top of each other so I can align the so there side by side or any other method

27th May 2018, 5:46 PM
callum willcocks
callum willcocks - avatar
5 Respostas
+ 5
This puts short text in div elements positioned side by side, I'm not too sure what you mean by "go on top of each other" being side by side, so anyways; <!DOCTYPE html> <html> <head> <title>Page Title</title> <style> div { margin-right:8px; padding:5px; background-color:orange; float:left; } </style> </head> <body> <p>Side by side text</p> <div>First text</div> <div>Second text</div> <div>Third text</div> </body> </html>
27th May 2018, 6:50 PM
Ipang
+ 2
Then show your code my friend, I would like to see it. I may not help you but others can see it and offer suggestions.
29th May 2018, 12:28 PM
Ipang
+ 1
how do you do it in css
29th May 2018, 11:55 AM
callum willcocks
callum willcocks - avatar
+ 1
I tried that before i posted
29th May 2018, 12:11 PM
callum willcocks
callum willcocks - avatar
0
The float:left option for the div tags, you can see it inside the style tag.
29th May 2018, 12:07 PM
Ipang