Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    1
    Member #
    15557
    I use GoLive CS2 for my Web development and have what is probably a very rudimentary question. Does GoLive offer a tool or is there some simple scripting that can be done so that a sites' Web pages auto-center themselves within the browser window?
    An example of what I want to do is: http://www.azscience.org
    My site is: http://www.redskygolf.com
    Any suggestions would be much appreciated!

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    The code is a pretty simple one. You need to wrap your whole site in a, what's now called, a wrapper (or container) div.

    Here is what you HTML will look like with the added wrapper div
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en-US">
    
    <head>
    
        <title>Some title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        
    </head>
    
    <body>
    
    <div id="wrapper">
        <div id="content">Some content in here</div>
        <div id="sidebar">Some sidebar stuff in here</div>
    </div>
    
    </body>
    </html>
    The CSS that makes the magic happen is apply auto to the margin property

    Code:
    #wrapper {
        margin: 0 auto;
        width: 780px;
        background-color: #900;
    }
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member -chris-'s Avatar
    Join Date
    Apr 2006
    Location
    SK
    Posts
    1,205
    Member #
    13102
    Change this:
    HTML Code:
    <table width="701" border="0" cellspacing="0" cellpadding="0" cool gridx="10" gridy="10" height="785" showgridx showgridy usegridx usegridy>
    to:
    HTML Code:
    <table align="center" width="701" border="0" cellspacing="0" cellpadding="0" cool gridx="10" gridy="10" height="785" showgridx showgridy usegridx usegridy>
    Then, if you plan to continue with web development, scrap GoLive, and learn HTML and CSS.
    Portfolio | Blog | Twitter

    Was my post, or someone elses, helpful? Click the thumbs up to let everyone know!

  5. #4
    Senior Member -chris-'s Avatar
    Join Date
    Apr 2006
    Location
    SK
    Posts
    1,205
    Member #
    13102
    @karinne, Did you look at the source code? There is a ton of crap in there from GoLive, and I tried the wrapper div, and it didn't work.
    Portfolio | Blog | Twitter

    Was my post, or someone elses, helpful? Click the thumbs up to let everyone know!

  6. #5
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    Well ... no ... I didn't look at the code sorry. I probably should have but then I saw GoLive and decided not to chance it

    Seriously tho ... use align="center" will do the trick.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com