Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
help with basic web page
Old 05-16-2005, 11:58 PM help with basic web page
Junior Talker

Posts: 1
Trades: 0
I am trying to get text to align left and right on the same line.
shayhoy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-17-2005, 12:08 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
<span class="alignLeft">text you want aligned left</span><span class="alignRight">text aligned right</span>

in your CSS stylesheet add this:
.alignRight {
text-align: right;
}
.alignLeft {
text-align: left
}


if you dont have an externel stylesheet add the CSS in your head section linke this
<style type="text/css">
.alignRight {
text-align: right;
}
.alignLeft {
text-align: left
}
</style>
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 06-07-2005, 12:22 PM
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
-Or-

You can go the 'old fashioned way' using tables:

Code:
<html>

<head>
<title>Alignment Using Tables</title>
</head>

<body>

<table width="100%">
	<tr>
		<td width="50%" nowrap>Left Text</td>
		<td nowrap width="50%">
		<p align="right">Right Text</td>
	</tr>
</table>

</body>

</html>
It works just as good!
-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 06-09-2005, 07:36 AM
kashyap_rajput's Avatar
Skilled Talker

Posts: 78
Location: India
Trades: 0
tables are better way to align the text IMHO
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kashyap_rajput is offline
Reply With Quote
View Public Profile Visit kashyap_rajput's homepage!
 
Old 06-09-2005, 09:52 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
User floated <div>s

CSS
HTML Code:
#col_left {
	position:relative;
	float:left;
	height:50px;
	margin:0px 2px;
}
#col_right {
	position:relative;
	float:right;
	height:50px;
	margin:0px 2px;
}
#col_centre {
	position:relative;
}
HTML
HTML Code:
    <div id="col_centre">
      <div id="col_right">
        text to the right
      </div> 
      <div id="col_left">
        text to the left
      </div> 
      </div> 
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to help with basic web page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30541 seconds with 12 queries