• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Basic HTML Question : How do I align something to left, while something else on right

Kenji4861

Banned
I have one line of text. I want part of it to be left aligned while another is right aligned. How do I do this?

My attempt so far.

<div align='left'>left</div><div align="right">right</div>
 
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution 😉
 
Originally posted by: Drakkon
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution 😉

I prefer the CSS solution, but tables are definitely the best for a simple single page app.
 
Originally posted by: Drakkon
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution 😉

After a long time, I figured out that this has some problems on older browsers.. like Mac IE 5.5
 
Back
Top