how to set margins?

I have a lot of text on my site, but it starts and ends at the ends of the screen. I would like a margin of about half an inch on either side. How could I accomplish this?

Thank you in advance,
Scott
cscott57Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cscott57Author Commented:
Edited text of question.
0
oubelkasCommented:
You can use a table with three table data in a table row. The first and last table data don't have data but will remain an empty space, and that is what you want....

<html>
<head>
<title>spaces</title>
</head>

<body>
<table>
  <tr><td></td>
   <td> now this line doesn't begin and end against de border of the browser, this is a way to do it, and a pretty easy one to,you can change the width of table data, let me know if this what you want or else....not</td>
   <td></td>
  </tr>
</table>
</body>
</html>

J.
0
jbrugmanCommented:
in a frame use:

<FRAMESET COLS="170,*" BORDER="0" FRAMEBORDER="0">
   <FRAME SRC="left.htm" NAME="leftframe" NORESIZE MARGINHEIGHT="0" MARGINWIDTH="10" SCROLLING="no">
   <FRAME SRC="right.htm" NAME="rightframe" NORESIZE MARGINHEIGHT="10" MARGINWIDTH="10">
</FRAMESET>

MARGINHEIGHT and Hight are in pixels.

In body use:

LEFTMARGIN=10 or TOPMARGING=0

for the 'bottom' use <BR><BR>
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

jbrugmanCommented:
ps.
<BODY LEFTMARGIN=0 TOPMARGIN=10>

and in frames.

<FRAME SRC="htmlfile" NAME="framename" NORESIZE MARGINHEIGHT="10" MARGINWIDTH="0">

ps.ps.
oubelkas's solution works as well, but you have to put everyting in tables then. It seems that he posted the command on the same time answered, both solutions work.
0
oubelkasCommented:
<table>
  <tr><td width="5%"></td>
   <td> now this line doesn't begin and end against de border of the browser, this is a way to do it, and a pretty easy one to,you can change the width of table data, let me know if this what you want or else....not</td>
   <td width="5%"></td>
  </tr>
</table>

Here you can see how to change these "margins" with the table data width.

J.
0
oubelkasCommented:
Well, you don't have to put everything in tables....just one table must be made and in this table you can put your data as showed in my comment. Instead of "now this line doesn't......or else...not" you just put the text you want to have.....

Brugman's right that both solutions work, it's up to you to of course to decide which one's the best.....

;-)

J.
0
jbrugmanCommented:
oubelkas , what i think allways borders me with tables, is the verry different way netscape end ie interpretate them.
That's why i like using frames or body settings more.
In your solution, i'd make a invisible picture of a with like 1" and place it in the 'empty table data' so nn and ie make it the same width.
0
oubelkasCommented:
jbrugman> it might, although I tested it with NS and IE, and it worked at both browsers...ah well I guess it's a personal decision and I think that everybody's pretty irritated by the fact NS and IE interpretate the things differently.

0
cscott57Author Commented:
It seems like oubelkas's solution is easier to incorporate into my site. I just tried it out and seems great. Are both solutions equal as far as how IE and NN interpret them? You conversation got me a little worried!!

Also, I have a really stupid question. Not stupid, just simple. Whenever I am skipping lines in my text I always use <BR>. Now I am sure there must be a better solution than putting twenty <BR>'s when I want to skip a lot of space. Right?

Thanks to both of you for the speedy response to my question! It is much appreciated.

Scott
0
oubelkasCommented:
Well, the conversation we have is pretty personal. I have an opinion and jbrugman has. The solution I gave you was one of the many ones, and like you said, it works and it might be so that the solution of jbrugman also works but that's just one of the other options. I'd say if my solution works, well that's fine for me....and no it is not a stupid questions about the <BR> tags because that's the it's done if you want a lot of space in between.

J.
0
cscott57Author Commented:
Okay, I used oubelkas's answer but it was only a comment. How do I give credit to correct person?

0
oubelkasCommented:
First reject the answer of jbrugman (no offense) then I'll post an answer. Then you can grade me.

J.
0
jbrugmanCommented:
Boehoo :(
Ok no offence...

well oubelkas, it's up to you
(Personal)
I still think my solution was the best
;)

0
oubelkasCommented:
Sorry jbrugman....no heart feelingzz...?

Thank you cscott57

;-)

J.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cscott57Author Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.