EricOnAdventure Posted May 24, 2016 Share Posted May 24, 2016 Hey all, I can't figure this out,using HTML how can I have a single line display strings that are left and right aligned...here is an output example:----------------------------------------------|Hello world| ---------------------------------------------- Thanks Quote Link to comment https://forums.phpfreaks.com/topic/301244-intents-in-html/ Share on other sites More sharing options...
Solution PravinS Posted May 24, 2016 Solution Share Posted May 24, 2016 (edited) Try this <html> <head> <style type="text/css"> .colleft{ float:left; width:50%; text-align:left } .colright{ float:right; width:50%; text-align:right; } </style> </head> <body> <div> <div class="colleft">Left</div> <div class="colright">Right</div> </div> </body> </html> Edited May 24, 2016 by PravinS Quote Link to comment https://forums.phpfreaks.com/topic/301244-intents-in-html/#findComment-1533194 Share on other sites More sharing options...
EricOnAdventure Posted May 24, 2016 Author Share Posted May 24, 2016 Works perfectly! Quote Link to comment https://forums.phpfreaks.com/topic/301244-intents-in-html/#findComment-1533197 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.