/    Sign up×
Community /Pin to ProfileBookmark

align right / left on same line

i want to do this in CSS:

[CODE]
<table>
<tr>
<td align=”left”>Aligned left.</td>
<td align=”right”>Aligned right.</td>
</tr>
</table>
[/CODE]

Basically text in the same line, some aligned on the right, some aligned on the left.

Things like this didn’t work for me…

[CODE]
<style>
.textAlignRight { text-align: right}
.textAlignLeft { text-align: left}
</style>

<div class=”textAlignLeft”>LEFT TEXT
</div>
<div class=”textAlignRight”>
<input type=”Submit” name=”Search/Refresh3″ value=”Search”>
<input type=”Submit” name=”Search/Refresh2″ value=”Clear All”>
</div>
[/CODE]

Both those div’s are in a single <td> tag.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@heavenly_blueauthorSep 20.2004 — never mind. i tried to delete this post but i can't. i used float:left; and float:right; in <div> tags.
×

Success!

Help @heavenly_blue spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...