HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Text wanted to be in exact position
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
birder123



Joined: 13 Nov 2008
Posts: 1

PostPosted: Thu Nov 13, 2008 8:53 pm     Text wanted to be in exact position Reply with quote

Hi, I have a problem:

I know how to align the text to the left or center but I want it to be somewhere in between, like

Instead of this,

I want it to be

here.

It isn't the center or the left, so I don't know how to do. I tried putting spaces in the code before the text while aligning it to the left but it doesn't work

Please help me
sticks464



Joined: 31 Dec 2006
Posts: 1284

PostPosted: Thu Nov 13, 2008 9:38 pm     Reply with quote

Add some left margin or padding to the text
Code:
p {padding-left: 20px;}

or if it's only one of several that you want moved, then give that particular element an id or class
Code:
HTML
<p class="indented">Blah...Blah</p>

css
.indented {padding-left: 20px;}
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial