Bluepearl Design
Go Back   Bluepearl Design > Misc > Tutorials > HTML, XHTML, Javascript, CSS

[HTML] Aligning Text

HTML HyperText Markup Language.
XHTML Extensible Hypertext Markup Language.
JAVASCRIPT object-based scripting programming language.
CSS Cascading Style Sheets.

    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 01-15-2004, 07:17 PM   #1 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,907
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: [HTML] Aligning Text

Aligning text is really easy. By default the browser will place text on the left side of the screen if you don't specify otherwise.

There are 3 commands for this:
<P ALIGN="LEFT">, <CENTER> and <P ALIGN="RIGHT">.

Here are a few examples:

Code:
<P ALIGN="LEFT">Welcome to Griffin Webpages.</P>
Code:
<CENTER>Welcome to Griffin Webpages.</CENTER>
Code:
<P ALIGN="RIGHT">Welcome to Griffin Webpages.</P>
To get the text to align left and right it must be set aside as a paragraph unto itself.
Remember you don't have to align text left as it will automatically do so by default.

NOTE-- If you really wanted to you could even center text using <P ALIGN="CENTER"> command.


Aligning text using the <DIV> command.
Using the DIV command makes it easier to align text without leaving spaces on your site.

For example:

Code:
<div align="center">Griffin</div>
Code:
<div align="right">Griffin</div>
Code:
<div align="left">Griffin</div>
Aligning your site would be done like this:

HTML Code:
<HTML>
<HEAD>
  <TITLE>Untitled Document</TITLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">
<div align="center">
<p>Web content
<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<td width="100%">hello</td>
</table>

</div>
</BODY>
</HTML> 

Last edited by Sean; 06-09-2005 at 04:54 AM.
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: [HTML] Aligning Text
Thread Thread Starter Forum Replies Last Post
trying to improve my text. slappyking Signatures 9 11-04-2007 03:23 PM
[HTML] Getting Started with Web Design. Sean HTML, XHTML, Javascript, CSS 27 04-10-2007 10:13 PM
SEO code to text ratio Sean Cool Links 20 12-09-2006 03:48 PM
text effect tutorial ReFlex Adobe Photoshop 13 10-08-2004 08:53 PM
[html] Redirecting Users Sean HTML, XHTML, Javascript, CSS 1 01-19-2004 04:34 PM


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 05:26 PM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52