Centering a web page with nested layers (divs)

Hi, I know this must be asked numerous times but some help woud be appreciated. I am currently upgrading my wed site produced in Dreamweaver 6 and 8.
I used layers and nested layers with the page aligned to the left of the browser. I am now redesigning the whole site and would like the page centred. As a designed and signmaker I am trying a avoid an out of the box design.
How can I centre my pages, preferably adapting existing pages to start with.
www.curtissigns.com is the site and appologies for some of the very ancient and dated pages!!!
If any can provide some advice or point me to some discussions. 
All my efforts with CSS seem to be failing at the moment.
Thanks      Stuart

All individual elements on your page at the moment are 'absolutely' positioned - very bad pracitce. But, I understand you've mentioned you made this site a while ago.
A quick fix for now would be to add this right after opening <body> tag:
<div id="container">
and this right before closing </body> tag:
</div>
Then, add this to the CSS part of your page (just after opening <style type...> right now, Line 85 on your HTML page. This will come before #apDiv1 rule:
#container{
left: 50%;
margin-left: 520px;
position: absolute;
left: 50% will offset the Div container to 50% of page width. margin-left: 520px will slice that in almost half (at the moment, your page is about 1004px wide), thereby displaying the entire page in the center. I've used position: absolute now since otherwise, you cannot center it (as you already have all nested elements as absolute).
But, I'd definitely recommend taking some time to re-create your webpage - never use 'position: absolute;' unless it is definitely required. You can do a great job with using 'float' and 'position: relative' tags.
Good luck.
-ST

Similar Messages

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • How can I print web pages with HP psc 2175 printer?

    Hi,
    I'm having difficulty printing web pages with my HP psc 2175 printer. The printer spits out many pages before the actual page I want printed and then at times it doesn't print all of the section desired.
    In fact, when I copied one page the other day, saved it as a pdf file to my computer, opened the file and the document still would not print.
    Anyone have any idea what could be happening?
    Lee

    I have a strange issue - I am also using HP Envy 100 410A and its prints fine from iPad2. But when I try to print from my Gen 1 iPad, it goes thru the motions (shows the printer, allows to select which pages to print, double sided print etc.) but the printing actually doesn't hapen.
    Any suggestions?
    Thanks

  • Have published iweb site for five years with no problems and just opened a new site and get - 404: Page not found  This error is generated when there was no web page with the name you specified at the web site.-is the problem with iweb or with hosting?  T

    I am sorry if thie is republished-My first time doing this and I am not sure what goes where and where to hear feedback.
    Have published iweb site for five years with no problems and just opened a new site and get -
    404: Page not found 
    This error is generated when there was no web page with the name you specified at the web site.-
    Troubleshooting suggestions:
    Ensure the page you are linking to exists in the correct folder.
    Check your file name for case sensitivity . Index.htm is not the same as index.htm!
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists
    is the problem with
    iweb or with hosting?
    One Apple tech started to fix Iweb and had to end session and the next said problem with hosting at Network Solutions as it published
    to local folder. NWS has checked sttting a few times-
    Any help would be extremely appreciated as trying to fix this for about five weeks
    Thanks VG
    <Email Edited by Host>

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it. (Even though I've now noticed you mis-spelled it! - anyway, never post your address in a forum.)
    You have a site here: http://virginiagordon.com/www.virginiagordon.com/WELCOME.html
    If that's not the page you are having trouble with, what is that page's URL?

  • How to print chinese web page with netscape browserver in Solaris 9 OS ?

    Dear All,
    I would like to print chinese web page within netscape browser in Solaris 9 Traditional Chinese OS, the print out result is garbage code on the paper not correctly chinese fonts.
    I can print out correctly the chinese document create by StarSuite 7.0 on Solaris 9 OS environment and also the chinese web page is correctly display within Netscape browser but for printing is abnomal result.
    Can someone point me to how to do print chinese web page with browser in Solaris 9 environment ?
    Best Regards,
    -- Kuo

    hi
    i have encountered this problem before and i remember downloading some fonts package and installing it. u could google search your question and it should provide the solution.thats how i stumbled upon the package.
    cheers,
    bunny

  • Why in the world would Apple make the track pad LESS useful in OS Lion?  I hate that I can't g back to the top of a web page with a singe swipe.  And of course all the other gestures are totally reversed.  IMHO, this was not an imporvement.

    Why in the world would Apple make the track pad LESS useful in OS Lion?  I hate that I can't g back to the top of a web page with a singe swipe.  And of course all the other gestures are totally reversed.  IMHO, this was not an improvement.

    No one here works for Apple.
    Go to System Preferences > Trackpad > Scroll & Zoom, and uncheck Scroll direction: Natural.

  • Adding keywords to a web page with Dreamweaver 8

    Hi,
    Does anyone of you know how to add keywords to a web page
    with Dreamweaver 8? I want the link to the web page shows up when
    people google the keywords. I pulled out the instructions from
    ehow.com and followed the instructions by using the HTML Keywords
    function in the Insert menu. I tested it on Google website by
    entering the keywords but it did not work.
    Any clues would be helpful.
    Thanks,
    Shirley

    Let's put it this way - those sites I have that are highly
    ranked do not
    have any meta keywords on them. So - you do the math....
    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
    ==================
    "Nancy O" <[email protected]> wrote in message
    news:[email protected]...
    > Maybe...
    >
    >
    http://www.hypergurl.com/articles/metatagswhatare.html
    >
    > "Will Meta Tags Improve My Rankings?
    >
    > Unfortunately, the majority of the major search engines
    do not recognize
    > the
    > meta keyword tag at all. A larger number do recognize
    the meta description
    > tag for the purpose of creating a summary for the page.
    The prevailing
    > philosophy is that search engines prefer to index text
    that is clearly
    > VISIBLE to the user, although exceptions are certainly
    made. The engines
    > in
    > general consider invisible text, such as that found in
    meta tags, as
    > "untrustworthy" since they can be easily abused by an
    unethical Webmaster.
    > For example, someone could list out many keywords that
    do not apply to
    > their
    > page's content, or they could repeat a keyword many
    times in hopes of
    > boosting their rankings.
    >
    > Of the engines that do support meta tags, none are
    thought to give extra
    > "relevance" to words appearing in meta tags versus
    elsewhere on the page.
    > In
    > fact, most engines give words in these tags less weight
    than if they had
    > appeared elsewhere on the page such as in the body area
    or the page title.
    >
    > You might then conclude that meta tags are useless?
    Well, not quite. You
    > definitely want to include a meta description tag on
    every page to avoid
    > the
    > search engine making up its own description from random
    excerpts on the
    > page.
    >
    > In regard to the meta keyword tag, many experts believe
    that including a
    > keyword in BOTH your meta tags and in other areas of
    your page CAN help
    > improve your rankings. For example, let's say your
    keyword was "Star Wars
    > collectibles" and it appeared in the body text that is
    visible to the
    > user.
    > If the keyword were also included in your meta keyword
    tag, then that
    > would
    > reinforce to the search engine that "Star Wars
    collectibles" was an
    > important theme on this page. Although no extra
    relevancy boost is given
    > for
    > including the keyword solely in the meta tag, some
    engines may look to the
    > meta tag as a way to reinforce their belief that a page
    is relevant if all
    > the other more important factors "check out" too.
    >
    > In any case, including the tags are unlikely to hurt
    your rankings if you
    > follow a few simple rules. Be careful not to repeat the
    same keyword more
    > than two or three times in the tag. Never repeat the
    same word twice in a
    > row or you may trigger a search engine's "spam filter."
    Lastly, never
    > include keywords that do not apply to the content of
    that page."
    >
    >
    > --Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    >
    >
    >
    > "John Waller" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> > No one? Several regulars here do.
    >>
    >> Is there any point in using them other than typing
    practice?
    >>
    >> --
    >> Regards
    >>
    >> John Waller
    >>
    >>
    >
    >

  • PDF printing of web-pages WITH background?

    How do I make it possible to have the background image/pattern/colour etc. of a web-page included when I "print" to PDF?
    Whenever I print a web page with something in the background other than white it's missing in the PDF file. This happens in my daily-use browser (Seamonkey), but also in Safari. However, in iCab (http://www.icab.de/) the background is included in the PDF file, so at least it's possible in MacOS. I just can't find any settings for it.

    Yes, this worked! Thanks!
    Another neat trick I found is that you can save the different settings. Just go to the "presets" part of the print menu, then save the current setting. For example by naming it "PDF printing with background".
    Then turn off the background colour/image/pattern and save it as a new preset (e.g. "Print (to paper)").
    That way you don't need to waste lots of ink, but at the same time you'll get the complete web-page with background and all when you save it as a PDF file. Just remember to select the right preset before you "print".

  • I cannot print from web pages with mozilla, can print from internet explorer and all other programs. I have a Cannon Imageclass MF8100.

    I cannot print from any web pages with Mozilla as my browser. The printer gives me a blank page. I can print from internet explorer and all other programs. I have a
    Cannon Imageclass MF8100 printer. I spoke to Cannon as I thought it was a Cannon issue and it is not.

    Try the '''''reset''''' described here: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer

  • I started setting up a web page with iWeb. Auto play box is checked, but music will not play when page is opened.

    I started setting up a web page with IWeb.
    Several proplems so far:
    1) Auto Play box checked for music, but music does not start when page is opened.
    2) Can't get Quicktime "start/stop" slide to start and finish a section within a long piece of music (classical for example).  How does one work the slide bar to do this?

    Yes the audio file plays on the iWeb page when I click the play button.  I even made sure it played both without the “little boxes” that surround the icon (don’t know the technical name for those), and when I click the music icon without the little boxes.
    I did note that the iTunes window that appears when I open the Inspector is not highlighted until I click the music icon and those little boxes appear.  Then the Start/Stop, Auto Play,  Loop, and Show Movie Controller are highlighted —  and work properly.
    One other thing.  I see that the iWeb icon I am working from says “Domain copy.sites2.”  Does that have a bearing on anything?

  • Using a Word web page with iWeb

    I want to create a web page with Microsoft Works, and then import it to my iWeb application. How can I do this?
    MacBook Pro   Mac OS X (10.4.6)  

    Please be patient, I typed out these directions as I did it on my computer in approx 3 minutes...if anything is unclear...let me know
    Open your word document
    Click file > save as web page > save to location of your cboice…in my case, on the desktop for easy access
    Right click on the file, and click open with, choose textedit….it hopens the html code, just to make sure it’s right
    Upload that to your idisk in the “sites” folder
    Log into .mac account via the web
    Click on “homepage” subtab at the top of the screen
    Click “add new page”
    Click “advanced” tab on the left hand side
    Click “external HTML” (the only option for pages in “advanced” tab)
    Click the file you just uploaded to idisk sites folder, then click choose
    It will show you a preview of the page, and then click publich..
    Get the URL, and link to it from your iWeb site…they’ll n ever know how you did it

  • Fetch web page with PL/SQL

    How do I fetch web page with as short PL/SQL code as possible. I don't want to send headers, read requests, just download it at once. Are there alternatives to UTL_HTTP.REQUEST which hangs on my system? Can I use one of the XDB packages to do that?
    Przemek

    Call from your browser with www.domain.com/AAA001A.HomePage
    CREATE OR REPLACE PACKAGE AAA001A AS
      PROCEDURE HomePage;
    END AAA001A;
    CREATE OR REPLACE PACKAGE BODY AAA001A AS
      PROCEDURE HomePage IS
      BEGIN
         htp.init;
          htp.htmlOpen;
            htp.headOpen;
              htp.title('HomePage');
            htp.headClose;
            htp.bodyOpen;
                 htp.p('Hello World!');
            htp.bodyClose;
          htp.htmlClose;
      END HomePage;
    END AAA001A;
    /Just re-read your OP and realised this is not what you were looking for and is in context of your request absolute drivel!
    Message was edited by:
    scorpio_online

  • Firefox 20.0.1 with Shockwave 11.7.700.169 crashes when you access web pages with video content

    I have a problem with Firefox 20.0.1 under Windows 7 with Shockwave flash 11.7.700.169. When I access a web site / web page with some content that requires Shockwave (usually videos) I can view the video, however, when I exit Firefox, it will crash with "Firefox encountered a problem - check for a solution ...". I also have a web site "MyHeritage" that when I access a family tree I repeatedly get a message "Video driver stopped working - NVIDIA driver ... has successfully recovered". If I disable Shockwave, Firefox will not crash in both cases, unfortunately, I cannot watch any video content.
    I did go to the Adobe web site and updated what I thought was my version of Shockwave, unfortunately this installed Director for netscape V12.2, I have disabled this plug-in.
    BTW - running Firefox in safe mode (add-ons disabled) stopped my NVIDIA driver from crashing and also stopped Firefox from crashing when exiting.

    Please check if all your plugins are up-to-date using [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Displaying External Web Page With HTTPService

    Hi,
    Does anyone know how to display an external web page with
    HTTPService? I have an application here that I am trying to display
    certain portions of the web page. Has anyone done this before
    without feeding items of the web page into RSS?
    Thanks in advance.
    Alice

    Hi,
    Does anyone know how to display an external web page with
    HTTPService? I have an application here that I am trying to display
    certain portions of the web page. Has anyone done this before
    without feeding items of the web page into RSS?
    Thanks in advance.
    Alice

  • I cannot open a web page with safari it's telling me that i'm not connected to internet but my skype is working?!?, i cannot open a web page with safari it tell me that i'm not connected to internet but my skype is working?!?

    i cannot open a web page with safari it's telling me that i'm not connected to internet but my skype is working?!?
    all the setting seems fine.

    There is NO flash player for iOS.
    Barry

Maybe you are looking for

  • How can I Transfer my iTunes Library from my old computer to my new?

    I just bought a new MacBook Pro (my first Mac) and I am trying to figure out how I can get my library from my iTunes off of my old computer onto my new one?  I thought that it was saved by accounts, so when I signed into my iTunes on my new MacBook,

  • F110 - Proposal Run Cancelled

    The last sentences of the log are as follows: > Available amount is enough,  999,849,999.00 EUR still available,      548,000.00  necessary >   House bank is selected ... > Our bank details HB02 GIRO are being used > Payment method "C" is permitted A

  • Can I change the bit depth on images in pdf files?

    I have a lot of pdf files that were scanned in 24 bit colour. I'd like to convert some of them to greyscale or black and white, and reduce the resolution to make them smaller. I can see how to reduce the resolution with Save As Other/Optimized PDF, b

  • Some :New values are null in compound trigger

    <h4> Hello everybody, I use Oracle 11g R2. My problem is: Why certain :New.values are Null in the before statement only if I have an after statement (that do nothing) ? My test case: </h4> create table TEST ID Number, CODE char(10), SUBJECT varchar2(

  • Recognizing multiple key presses in As3

    Hi, I have a simple game with three keyboard inputs - left, right and fire I want to be able to log when a key is pressed and released. In the game, you can be in the following states: None Left only - keyz on the keyboard Right only - keyc on the ke