Click to See Complete Forum and Search --> : Text Margins in HTML
Mark89
04-03-2006, 07:41 PM
Is there any HTML code to make text margins? Everything I have found on Google is either for a special program, or doesn't work at all.
I just don't want all my text on the very edge of the window with my webpage, maybe 3/4" on each side? But I'll experiment with the amount of margin space...
Thanks,
Mark
stacywacy
04-03-2006, 08:19 PM
Do you mean like
<style type = "text/css">
body {
margin:20px;
}
</style>
Mark89
04-03-2006, 08:40 PM
that didn't work. go to http://designatedrecords.wildavisproductions.com to see what i mean when i say it's on both edges. i want there to be a good amount of space between the text and the edge of the window.
stacywacy
04-04-2006, 03:34 PM
That's the only way I know how to do it, and it works for me. Substitute the 20px for whatever number you want. Also you can try (I don't know the short-hand way),
<style type = "text/css">
margin-left: 200px;
margin-right: ;
margin-top: ;
margin-bottom: ;
</style>
Or, do you just want to center your whole page?
.
Mark89
04-04-2006, 04:38 PM
does px stand for pixels?
stacywacy
04-04-2006, 04:43 PM
Yes, but you can use whatever you want %, em, px, pt, or whatever works for you.