Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Center a site built on a grid in GoLive

Center a site built on a grid in GoLive

Center a site built on a grid in GoLive

What if you already have your site done (about 20 or so pages) and now you want it to center in the browser? I built it on a grid with seperate elements. Do I have to start over? Does every page have to be redone?

RE: Center a site built on a grid in GoLive

Grids are absolute positioned. That means you can't make sure they are always centered. Web design does take some planning and if wanted your site centered you should have used a different method to lay it out.

Does every page have to be redone? That depends. Did you plan ahead and use a template to create your site pages? If yes, then all you have to do is change the template and GoLive will automatically redesign all the pages. If you didn't use a template, then yes, every page will have to be redone (Make a template, then copy/paste your content into it).

RE: Center a site built on a grid in GoLive

Thank you for your reply.

So how would you go about laying it out in order for it to be centered?

RE: Center a site built on a grid in GoLive

I've was thinking about centering your grid. If you created an outer div, with each grid area nested inside this div, you could use CSS to center the page. Using CSS give the outer div a width and center and make it's position relative. Now your grid will be absolute positioned within the centered outer div. The down side is i don't think you could do this with a WYSIWYG view. You'd have to switch to source view and write the code by hand.

If your going to redo the layout any method other then grids can easily be centered. Whether you use centered divs or tables the premise is the same. Center the outside most element.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close