Centering the entire site

I've decided to venture out and learn CSS, but I've a long way to go.
I've watched many videos and read up on "how to's" as well as key benifits of CSS.
So I've decided to start with a css template in DW and work backwards rather that open notebook and start typing.
The template I've chosen seems to open (F12) in left screen mode. I like all my sites "centered."
I used to just add this line and all was well <div align="center"> but that doesn't seem to work with my new CSS template design.
Can centering be accomplished as easily with CSS? 

You need only three things to center a web page.
1) A valid document type.  Good new is that DW does this for you when you open a new document.
2) A declared container width in pixels, ems or percentages.
3) A margin-left and margin-right value of "auto."
NOTE: container position should be set to default (which is no positioning at all).  The exception to this rule is if you plan on using Absolutely Positioned divisions (APDivs) inside your container (not usually recommended).  If you're using APDivs, you will need to set your container position to "relative" or the page won't center.
#container {
width: 900px; /**or whatever you wish**/
margin: 0 auto; /**centers in modern browsers**/
text-align: center; /**centers in old browser**/
position:relative /**exception - if APDivs are used**/
More on CSS positioning:
http://www.brainjar.com/css/positioning/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Similar Messages

  • Is there a way for me to block a page within a website without blocking the entire site?

    I want to block some kids from my son's Facebook profile, if I block them using FB he will just unblock them. I've tried altering the hosts file but it doesn't work unless I block FB entirely. Is there a way to block pages from a site without blocking the entire site?

    Not sure but try this:
    -> Go to your son's page on Facebook
    * Right-click empty space within the page and click '''View Page Info'''
    * In the '''Page Info''' window, select the '''Permissions''' panel and change the setting to '''Block''' for all options
    * Close the Page Info window -> Restart Firefox
    Check and tell if its working.

  • IWeb wants to upload the entire site

    I'm using iWeb with UK2.net to host my site. The problem I'm having is this; iWeb will take six hours to upload the site to uk2.net, and it seems to fine online but after the upload I get an error message telling me something went wrong. All the side bar icons remain red. So that means I have reload the entire site any time I want to add an update. It seems to want to upload the main hosting folder by over-righting it and that is why it takers so long. Has anyone else experienced this problem and has anyone any suggestion how to fix this?

    The iWeb FTP does upload the whole folder of files created by the application although it shouldn't take 6 hours !
    The alternative is to publish to  local folder and upload using an FTP application. This way you can see the files on the server too to make sure they are all being uploaded and to the correct place...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    An alternative to uploading the whole folder is to upload the contents...
    http://www.iwebformusicians.com/iWeb/URLs-Favicons.html
    The fact that you are getting an error message and the pages remain red in iWeb means the all the files aren't getting uploaded or the application is not creating the assets.http file correctly. Try the troubleshooting steps under "Fix iWeb" on this page...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html

  • Cloaking the entire site's URL in address bar

    Should be a simple one for ya.  Purchased a .com domain, and once it went online I noticed that instead of just www.habittheharley.com showing in the address bar, it shows the indivual page names, some of which look untidy. I remember back in the day when I used to get CJB to just cloak my entire site to example.cjb.net, it was a fairly simple tickbox option i recall.
    How do I get it to somehow cloak the entire website URLs to be just habittheharley.com, instead of habittheharley.com/contact or habittheharley.com/photoblog?  My domain/hosting provider had no idea when I rang them (netfirms)
    Thanks!

    How do I get it to somehow cloak the entire website URLs to be just habittheharley.com, instead of habittheharley.com/contact or habittheharley.com/photoblog?  My domain/hosting provider had no idea when I rang them (netfirms)
    That would be a good enough reason to tell this host goodbye in my opinion.  How can they help you with something important if they can't answer this simple one.
    There would be two ways to do what you want -
    Use frames.  The only URL that appears in the address bar is the URL of the frameset page.  This 'solution' would be like shooting yourself in the foot, but it is one way to solve the problem
    Use .htaccess or mod-rewrite (*nix, and Windows, respectively) to rewrite your URLs to whatever you want.
    There's actually a third way - don't worry about it at all.  Surely there are more important fish for you to fry?

  • Unable to update the entire site

    Every time I try to do a site wide update of all the
    templates and library items I am getting the following error and
    then dreamweaver cs3 crashes.
    See
    the actual error message
    The error message:
    Dreamweaver is currently interacting with a server.
    Since checking out a file required interaction with a server
    as well, Dreamwever cannot currently perform this task.
    Please try again when the current server is complete.
    Any help is appriciated.

    I recommend you contact Adobe directly and use one of your
    one-on-one
    support incidents.
    http://www.adobe.com/support/programs/dreamweaver/index.html?tab:contact=1
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "MichaelB321" <[email protected]> wrote in
    message
    news:g7msqs$h5o$[email protected]..
    > Murray,
    >
    > Upon attempting to update library items within
    non-checked-out pages, DW
    > CS3
    > gives the same "currently interacting with a server"
    message described
    > above by
    > Sue_Sue. I can then say "OK" and subsequently choose to
    check out only the
    > first file to be updated. Following that, the rest of
    the files are not
    > updated
    > because they're all "read only" due to DW refusing to
    check them out
    > during the
    > update process. Attempting to view the Update Pages or
    Background File
    > Activity
    > dialogs during this process sometimes causes DW to crash
    completely.
    >
    > I can go back to DW 8, and this problem doesn't exist at
    all, and the
    > checked
    > out files will be downloaded and updated as expected.
    >
    > Help?
    >
    > Michael
    >
    >

  • Putting a coloured border on the entire site

    I know this is going to sound very stupid, but does anyone
    know how to put a coloured border on a site? I have the main table
    of text in the middle, with about a 2" border either side of it and
    al I want is to be able to change it to blue. If you can help,
    please make instructions simple to follow as I 'm not very
    technical and find all this stuff hard work.
    Thanks in anticipation.
    Robert

    How did you create the border you have there now?
    can you provide a link to your page (by uploading the page to
    your remote
    server)?
    difficult to give advice until we can see what you have tried
    so far.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.perrelink.com.au
    - Web Dev
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    "howuduin" <[email protected]> wrote in
    message
    news:e9q27f$oih$[email protected]..
    >I know this is going to sound very stupid, but does
    anyone know how to put
    >a
    > coloured border on a site? I have the main table of text
    in the middle,
    > with
    > about a 2" border either side of it and al I want is to
    be able to change
    > it to
    > blue. If you can help, please make instructions simple
    to follow as I 'm
    > not
    > very technical and find all this stuff hard work.
    >
    > Thanks in anticipation.
    >
    > Robert
    >

  • How to make 1 spry menu for the entire site? but not on each page

    i have a website that i wish to have multiple pages available all form the same menu and late and probably at regular intervals add more tabs to the menu
    is there a way to create a spry menu speratley that the page some how references, something like a frameset but without using framesets?
    im sort of new to webdesigning and unsure of the correct terminology, so i am finding it difficult to look up stuff that i don't know the name for, but will gladly go read someting if you point me in the right direction.
    regards
    for now
    wayne

    You can do this with PHP or ColdFusion
    These are "server side" scripting languages so you will have to test your website after you upload to you web hosting account.
    Or if you set up a local server. Without the local server you will get errors when you open them in firefox.
    To use the following what you do is "Cut" the part you want to be on all pages out, "Paste" it into a seperate document and in its place on your page you put one of the following suitable tags.
    You will also have to rename your main file to .php or .cfm as opposed to .html
    Again, whatever page you put one of these tags on, their extention must change match the type of tag used.
    First Method (PHP):
    PHP is the more common method -
    <?php @ require_once ("yourMenu.html"); ?>
    Require_once is basically a safeguard so that you don't add the menu twice onto a page.
    This will only work for PHP 4+
    This method would work for older versions of php too -
    <?php @ include("yourMenu.html"); ?>
    Second Method (ColdFusion):
    This will only work if your host has ColdFusion installled -
    <cfinclude template="bla.html">
    eg index.html
    <html>
    <head>
    <title>Stuff</title>
    <head>
    <body>
    <?php @ require_once("SpryMenu.html"); ?>
    </body>
    </html>
    SpryMenu.html
    <ul id="menubar1" class="MenuBarHorizontal">
        <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
            <ul>
                <li><a href="#">Item 1.1</a></li>
    </ul>

  • I am trying to edit a pre built webpage but cannot seem to find the file to open in dream weaver although I have downloaded the entire site from the remote server to my computor

    Does anyone know how to access an adobe pre built web page template to modify some of the content.

    Hi Bobby,
    Yes, it is by design. By default, Windows Server only accepts two concurrent administrative sessions (Administrative Mode). It means that only two administrators can work on the server at
    the same time.
    If you would like more concurrent sessions, you need to purchase RDS CALs, install Terminal Services related server roles with proper configurations on the server.
    Remote Desktop for Administration (server 2003)
    http://technet.microsoft.com/en-us/library/cc785186(v=ws.10).aspx
    What Is Terminal Services?
    http://technet.microsoft.com/en-us/library/cc782486(v=ws.10).aspx
    Terminal Services Configuration
    http://technet.microsoft.com/en-us/library/cc787078(v=ws.10).aspx
    Purchase client access licenses
    http://technet.microsoft.com/en-us/library/3660ac5a-7468-48d3-b7e8-5529de8fb6c5
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Can I publish one page at a time to the ftp when publishing entire site?

    I am currently using iweb to manage my website and i changed a number of pages and require to re-publish the entire site. When i go to do this it attempts to bundle all the files together and publish, but the site only allows for 8 connections via ftp. Is there a way that when i publish the entire site that i can publish one page at a time?
    Thanks for your help!

    Publish your site to a local folder...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    ... and upload the files using an FTP application...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Upload.html
    That way you can upload individual files and folders - one at a time.

  • How do I add music to play on my entire site?

    Hi!!
    Pretty green at this stuff so bear with me!!
    Designing a website for my small business and would LOVE to add music that could play through the entire site rather than on the page the media is placed on.. does that make any sense to anyone?
    Thanks Much!!

    Did you try the method described in my demo page?
    Note: Internet Explorer and Firefox often have problems with images with reflections. This tutorial describes how to easily convert the image and it's reflection into a single jpeg file: #7 - Converting Photos w/Frames, Drop Shadows and/or Reflections into a Single JPG Image.
    Message was edited by: Old Toad

  • Create a PDF from webpage using entire site option doesn't works

    OK, guys, this is the problem...
    After YEARS of testing from Acrpbat 4 thru 9 on Create a PDF from webpage using entire site option... it doesn't works properly and doesn't got the entire site. ALWAYS get an error of memory or any other error but FINALLY you NEVER got the entire site. I'm talking for a big website... not like amazon.com, but a big one.
    I make a walkarround to try to capture the website in parts but Acrobat is not "intelligent" to make a resume capture of the site, because ALWAYS start from the begining instead from the resume position of the site...
    My question is, HOW can get the ENTIRE SITE in a PDF document... without getting errors or stopping the capture process...
    Don't have problem of low RAM memory because I'm in a MONSTER MACINTOSH.... 3.2 GHZ with 8 Core and 32 GB of RAM under Mac OS X Leopard 10.5.6 in Acrobat 9 Pro.
    If I'm not wrong, the GET ENTIRE SITE option in Web Capture (Create a PDF from webpage using entire site option) doesn't works from Acrobat 4 thru 9 in Pro version... tested, you'll never got the entire site... I'm talking in capture a huge entire site and not a little one...
    Can someone help me?
    Thanks.

    Ok so I go to a web page and select something to print. Once I've clicked print I switch over from printer/micosoft xps docu writer/fax and select Adobe PDF. All goes through with a 'Create Adobe PDF' coming up progressing through to eventually save and store. Once I open the file it end up as the picture above. I have the same version on another computer and that works fine but this particular Sony laptop it doesn't seem to work properly. 

  • Applying a new template to entire site?

    Is there an easy way to apply a new template to the entire
    site? I created a new template and I can open each page
    individually and click MODIFY/TEMPLATES/APPLY TEMPLATE TO PAGE but
    there has to be an easier way to apply the new template to the
    entire site without having to open every single page in the
    site.

    That would be true ONLY on pages that are already child pages
    of templates.
    Try it on a page that is not a child page, but that has
    existing content.
    This is what the OP was asking.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "TheTechChik" <[email protected]> wrote in
    message
    news:[email protected]...
    > As long as you don't change the title of each editable
    region, it should
    > know
    > exactly where to put everything. When I changed
    templates on individual
    > pages
    > it worked flawlessly, I don't see why doing a batch
    process would
    > introduce any
    > new issues as you suggest.
    >
    > Mandy
    >
    > Originally posted by: Newsgroup User
    > > MODIFY/TEMPLATES/APPLY TEMPLATE TO SITE
    >
    > I don't see how it could be done. Imagine a template
    with 3 or more
    > editable regions. How would it know where to put which
    content.
    >
    > Just for fun, take a page with existing content and
    apply a template with
    > a
    > single editable region to it. How'd it work?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "TheTechChik" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Thanks Alan!
    > >
    > > I too like Raizel have had things go haywire when I
    tried something
    > > similar in
    > > the past but I'm sure I just selected to update
    pages at the wrong time
    > > and/or
    > > didn't update them when I should have.
    > >
    > > You would thing there would be a tool/feature in DW
    to do this easily
    > > like
    >
    > > MODIFY/TEMPLATES/APPLY TEMPLATE TO SITE. Hint Hint
    Adobe ;-)
    > > Changing
    > > file
    > > names and determining when to update and when not
    to can be dangerous
    > > for
    > > many.
    > >
    > > Mandy
    > >
    >
    >
    >
    >
    >
    >

  • The Strange Case of the Disappearing Site

    It's one thing after another all of a sudden. I've just opened iWeb on my desktop and found that the entire site is no longer there. This happened once before, a few months ago, and (following excellent advice on this discussion board) I clicked Spotlight and entered ‘.site’ in the little window. Top Hit was ‘Domain’, which I clicked. My iWeb site was immediately repopulated.
    However, following the same procedure this time produces no result whatsoever.
    Anybody...?

    After I posted my question I restarted the computer and tried the Spotlight/.site/Domain route several more times to no avail. Then I did something different on the computer and tried the route again without much hope of success - and this time it worked. No rhyme or reason that I can see.
    But thanks for your suggestion, Tom. I'll remember to try that if it happens again.

  • Can't "get" entire site

    Hello,
    I'm trying to get my entire site using DW 5.5 so that I can work on it locally, but lots of the file are being left behind. I follow the instructions to do so, click yes when prompted if I want to get the entire site and the process begins. It then stops, saying that it's complete, but most of the data is missing. It manages to get about 350mb but the total size of the site is nearly 4gb.
    Any advice much appreciated.
    Cheers in advance,
    Matt.

    Why don't you just access the site by ftp and get the files...........I never use Dreamweaver for putting or getiing anything.....it's useless in that regards.
    Geez just read 4gb.... what is it a hi-res image/video library? I would definitely either use ftp or maybe go into the sites control panel and make a back up of the site files and download them from there. Most control panels send you a link to a download zip file once the server has backed up the files.

  • CS3 Synchronization Problems (Entire Site)

    The following problems occur when I attempt to synchronize my
    entire site (954 files) using DW 8 Windows, DW 8 Mac, or DW CS3
    Mac. (If I select a group of files, synchronization always works as
    advertised.)
    1. If I tell DW to synchronize the entire site (in either
    direction) and specify that it should delete files, synchronization
    eternally builds a file list. DW doesn't hang; I can cancel out of
    it and continue to use DW.
    2. If I tell DW to synchronize the entire site (in either
    direction) without specifying that it should delete files, DW most
    often incorrectly announces that no synchronization is necessary.
    Immediately afterwards, if I use the icon on the top left of the
    files panel and select
    Edit | Select Newer Local or
    Edit | Select Newer Remote, DW correctly identifies the
    files that have changed. I get the same behavior if I do those two
    things in the opposite order. In other words, DW simultaneously
    knows and doesn't know which files are newer.
    Is there a fix or a workaround?

    I dunno. Go into DW8 and EXPORT the site definitions with
    their login info.
    Import them into CS3.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Pat Jones" <[email protected]> wrote in message
    news:f4pkcp$1rb$[email protected]..
    > Hi Murray;
    >
    > DW8 is still there and they're both on the same drive.
    Only the log on
    > info is missing. A while ago, DW8 was having problems
    losing the last used
    > site's log on due to IE7 (as I understand the cause). I
    downloaded a patch
    > for that. Any connection?
    >
    > Thanks;
    >
    > Pat
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:f4pjkd$111$[email protected]..
    >> The site defs should have migrated forward. Did you
    install on the same
    >> drive? Did you uninstall DW8 before installing CS3?
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Pat Jones" <[email protected]> wrote in
    message
    >> news:f4pj04$7h$[email protected]..
    >>> Hi;
    >>>
    >>> I upgraded to the CS3 web premium suite from
    studio 8. My site caches
    >>> were imported but the log on info for each was
    not. Is there a fix for
    >>> this ?
    >>>
    >>> Thanks;
    >>> Pat
    >>>
    >>
    >
    >

Maybe you are looking for

  • URGENT: ORA-12514: Message 12514 not found;

    Hi, I have a big problem: I have a PC (PC1) with an Oracle 9.2.0.5 database. I have other PC (client=PC2) with Oracle forms and reports runtime installed. I try to execute my .fmx from PC2 and everything was ok. After that, I installed again in anoth

  • Syncing issues with 1st Gen. AppleTV

    Hello, having syncing issues with my 1st generation ATV. It just keeps filling up until it is full regardless of the settings. I have set it for only the last 5 unwatched for tv, movies, etc. and then I have changed every movie and tv show, etc to un

  • Win7 Unable to communicate Win XP is able to communicate 7525 photosmart wireless

    I installed and printed a photo ONCE wirelessly from Windows 7 system and scanned a document. Since then, the printer acts as if it can access internet wirelessly, the control panel for printers shows it ONLINE READY but any print action such as test

  • How do i get my videos from Media player into itunes?

    hello..i am new to this, so i have a probably very simple question, but all help is apreciated I just got a new video ipod... I would like to put the videos that i have onto itunes, thus into my ipod. How do i go about doing this? Currently, they are

  • TM2- no pressure sensitivity in photoshop!

    hi guys, i just installed photoshop cs3 , which both do not work when it comes to pressure senstivity, ive tried updating  it but still no go, please, need help!