Results 1 to 4 of 4
  1. #1

    DaZ's Avatar
    Member Since
    Jul 06, 2008
    Location
    California
    Posts
    43
    Specs:
    24" iMac 2.8GHz, Intel Core 2 Duo, 2GB RAM, iphone 3G, & Classic ipod
    Center site in all browsers
    Hello All,

    I am creating a website (CSS) with dreamweaver and I am having problems with centering my site in all browsers. I've heard that this could be done with code. Can someone please explain what I would type and where I should type it in at.

    Thanks,
    -Daz
    -Daz

  2. #2

    Unibody's Avatar
    Member Since
    May 31, 2009
    Location
    Vancouver, Canada
    Posts
    203
    Specs:
    15" Unibody (Jan 09)
    Wrap the entire site in a div, and ID it "wrapper". Then put this in the CSS:

    #wrapper {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    }

    That should do it, replace 800px with your desired width.

  3. #3

    DaZ's Avatar
    Member Since
    Jul 06, 2008
    Location
    California
    Posts
    43
    Specs:
    24" iMac 2.8GHz, Intel Core 2 Duo, 2GB RAM, iphone 3G, & Classic ipod
    Thanks for the fast reply. I changed the div id="wrapper" but I am not sure where to enter:
    #wrapper {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    }
    Thanks again
    -Daz

  4. #4

    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    the code
    #wrapper {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    }
    Should go in the CSS file that all your pages should be linking to

    Its just a text file so you can copy the above code in to a plain text file (textEdit) and save it as filename.css (or whatever filename you like, but make sure it is a plain text file and has the .css extension).

    Place it in a folder called CSS in your site and then link your page(s) to that file from Dreamweavers CSS palette
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What makes a site a reliable site?
    By dero in forum OS X - Operating System
    Replies: 2
    Last Post: 08-06-2011, 09:10 PM
  2. All browsers lead to old site need to purge this from them
    By willie45 in forum OS X - Apps and Games
    Replies: 2
    Last Post: 05-08-2011, 08:20 AM
  3. Apple owns another 70 acres at North Carolina data center site
    By the8thark in forum Apple Rumors and Reports
    Replies: 0
    Last Post: 10-28-2010, 06:26 PM
  4. g5 10.4.11 all browsers crash on certain site
    By darque in forum OS X - Operating System
    Replies: 1
    Last Post: 12-29-2009, 11:01 PM
  5. web browsers keep downloading site intro clips
    By iMacAlien in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-22-2006, 05:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •