Jump to content

Intents in HTML


EricOnAdventure

Recommended Posts

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

Link to post
Share on other sites

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>

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.