View Full Version : Indenting text help needed
pixels
08-04-2003, 05:39 AM
Hello all,
My question seems simple yet I can't get it to work. I want to add a large block of text on my main page. I wanted to indent it say two inches from the left hand side. I just can't figure out how to do it.
I have tried blockqoutes but it hardly indents it. Is there not a tag that indents paragraphs?. Not like align left or right etc, they don't really do anything. :confused:
I am lost on this and would appreciate any help given :)
MotherNatrsSon
08-04-2003, 06:02 AM
CSS in line style?
<p style="margin-left:50%">
You can change the % number to any number or to exact pixels (50px) or em (50em).
MNS
brothercake
08-04-2003, 08:42 AM
btw - CSS is the right way to do it; you shouldn't use tags like <blockquote> just for their visual effect.
pixels
08-04-2003, 01:34 PM
Thank you for your replies. I am very new to html and I am afraid I am not sure where to add that code. Would you be kind enough to show me where it goes and where I place the text. I have pasted a copy of my html here. I want to be able to add my text about three inches down my page and two inches in from the left.
<HTML>
<HEAD>
<TITLE>test</TITLE>
<style>
body {
background-attachment : scroll;
background-image: url(bground.jpg);
background-position: 0px 0px;
background-repeat: no-repeat;
}
</style>
</HEAD>
<BR>
<BR>
<BR>
<BR>
Thank you again. :)
MotherNatrsSon
08-04-2003, 04:56 PM
It goes a little farther down the page from where your code ends.
<HTML>
<HEAD>
<TITLE>test</TITLE>
<style>
body {
background-attachment : scroll;
background-image: url(bground.jpg);
background-position: 0px 0px;
background-repeat: no-repeat;
}
</style>
</HEAD>
<BR>
<BR>
<BR>
<BR>
<body>
<p style="margin-left:144px">Your text here</p>
</body>
</html>
Go to http://www.w3c.org and learn some coding. There is also CSS tutorials there.
MNS
pixels
08-04-2003, 09:39 PM
Thank you very much for your help MotherNatrsSon. It worked and looks great. :)
I am now teaching myself css, thanks for the link to the tutorials.
:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.