Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hello,
is there any html code we can incert on "head" or "body" to make the whole content of the page to be shown at the center , i´ve done a site and everythings fine, how i wanted,just , it´s all on the left of the page. can i change it with a simple code wihtout having to start again all ? thanks.

It depends on how you built the page on wether or not you can center it easily. You could put this into the head of your document, but the results may or may not be what you are looking for.
<style>
body {text-align:center;}
</style>Michael J

thanks, with that code, its leaves the left area, but goes too much too the right, ..its not on the center and it happen with other codes too that i found on google for this situation... too much too the eright..hmmmm..
, but thanks...

Then there might be a problem int he coding of the page. Try posing a link to your site so we can take a look. If all you need to do is create some space on the left side you could create a margin using this:
<style>
body {margin-left:20px;}
</style>Just change the 20px to whatever value suits you.
Michael J

i downloaded nvu , looks like a really good free editor, and interesting to someone not to much familiar with this stuff, ..i just moved all a little to the right in the design view, its not the same i wanted , but i think to do what i wanted i would have to start doing the page with auto stretch tables , not sure... i wanted the page to look in the center when the window is maximize , andwhen not mazimize in the left (with no margin) ... right now after moving stuff in Nvu editor , when maximize the page is in the center, but when not maximize theres a margin
in the left that i would like not to have it (but this must be the same margin that makes it in the center when maximize... )
a little to much confusion?? .. ehhe.. sorry, but theres no need to think about this anymore, the page is already fine how it is and for what it is.. thanks you.

..ahhh...just solve this...im starting to love this Nvu editor :) ..., it was a div that it was being use as a container and that its position was absolute, i change it to relative and everything works good now.. don´t know why i just saw it with this editor..ut it ok now..thanks!!

![]() |
Weblogic developer subscr...
|
javascript: passing vars
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |