Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

mayb <div>?


  • Please log in to reply

#1
Misthios

Misthios

    Member

  • Member
  • PipPip
  • 18 posts
ok so im doing this for fun for my brotheri inlaw,

none of the links work im just trying to get the format worked out, i never have used <div> in my html before but i cant get it to center in my browser the page always loads to the left a little anyhelp would be appreciated.

TY

here is link http://www.geocities...l?1166155984937
  • 0

Advertisements


#2
vise

vise

    Member

  • Member
  • PipPip
  • 31 posts
Hey Misthios,

For basic centering you can always use the <center> tag. <Div> can also be used but
also can add a lot of options. Is your content in a table? Is so just tell the table to align
to to middle.

Hope that helps.


vise
  • 0

#3
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
I would avoid the <center> tag, as it is depreciated in HTML 4 and can't be used in XHTML. You can center a <div> by adding style="margin:0 auto" to it.

It is good to see your trying to make a move away from tables. It worth it in the long run.

Are you going to keep it on http://www.geocities.com/ or are you looking for some better hosting for it?
  • 0

#4
Misthios

Misthios

    Member

  • Topic Starter
  • Member
  • PipPip
  • 18 posts
thanks to the both of you fo the quick replys and help,

i am trrying toget way from tables but i did try the <center> but it wasnt working so i will try style="margin:0 auto" when i get home tonight.

and no im not going to stay with that host its just temporary while i figure out how i want it to look.
  • 0

#5
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
haha vise he is trying to get away from tables (we exchanged a few PMs to day :whistling:)

If your looking for a good host I recommend http://www.hoststock.com/ for small amounts of cheep hosting and http://www.1and1.com/ for larger amounts.
  • 0

#6
vise

vise

    Member

  • Member
  • PipPip
  • 31 posts
I see that now. But be didn't say that in the first post! So I didn't know. It's not my fault! :whistling:
But ya, good luck with your site man, just keep posting if you have any other questions. And I'll keep PMing Michael and argue with him on topics.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP