HELP! I want to center a website on a page which contains multiple div's

Hello,
I created a one page website that has multiple div tags. It is a portfolio site that has links to images. I used the hide/reveal behavior so there is no redirection to another page. I want the site to be centered on my web page. I tried using a wrapper div to wrap my div's with auto left and right margin and center-align text. This didnt work too well, only one image was successfully centered. Maybe because there are so many other div's with hide/reveal properites that I'm not putting it in the proper areas? Or maybe wrapper div is not the answer?
Any and all help/advice is appreciated!
To view the source code please go to my site and view source.
THANK YOU

Create an ID for the wrapper div in the head of your document or place it in your current stylesheet if you are using one:
#wrapper {
    width: 980px;     /* adjust the width as necessarty */
    margin: 0 auto;
then in your html page document add the following line in red just after the body tag:
</head>
<body>
<div id="wrapper"><!-- holds all the page contents, set to center on the page -->
Then at the bottom of the page add the following line in red just before the closing body tag..
</div><!-- end wrapper div -->
</body>
So as you can see the wrapper div now encloses everything from the body tag to the closing body tag.  This should center all the divs when previewed in a browser window.  If you want anything inside any of the content areas etc to be centered, that's different again.
If this doesn't work for you, can you please upload your files to a server and provide a link, it's the only way people can check your page to see the code you have currently and offer any help  :-)  Otherwise, it's just a guess game to see whether you have correctly applied the css and the code.

Similar Messages

  • Want to create a link on seeded page which can pass the values of LOVs

    Hi,
    I have a seeded page.. and i want to create a Link on the page which will redirect to new custom page...
    When user clicks on the link, the values of some LOVs should be forwarded on the custom page......
    I created a link through personalization... But I have doubt about how to attach the values of LOVs through url....
    Is it possible to do the same???
    Thanks in advance,
    Kaushik

    Thanks Pratap,
    Yes the LOVs are created through personalization....
    Since i dint want to touch the code... so i created everything through personalization.....
    The only problem now is to get the values of these LOVs in URL....
    Is there no other method other then extension to do this???
    Thanks,
    Kaushik

  • How to center a component on the page????

    Hi all
    i want to center a component on the page
    Sorry it may be some thing trivial ???
    but i ve a command button i want to center it on the page ????
    how???

    Hi,
    try this steps:
    1-surround the command button with panelGroupLayout with layout Horizontal.
    2-In panelGroupLayout property select Style tab.
    3-in the Text tab set horizontal Align with Center.
    4-in Box tab set width with 100 Percent
    if panelGroupLayout inside any other component make this palce width 100 percent and its Align Horizontal with Center.
    Sameh Nassar

  • Need help - How to load data which contains \r\n

    Hi All,
    We have a requirement wherein we need to load the data from a .dat file, with fields separated by | symbol and the line separator specified as '\r\n'
    INFILE '/scratch/xyz/abcd.dat' "STR '\r\n'"
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    Can you please help us load data which contains multiple lines in a single field to a database table field , keeping the line separator in ctl file as '\r\n' itself.
    When we try bringing the '\r\n' within a text field enclosed in "" , the '\r\n' , sqlldr considers it as the end of that record and not as a data which needs to go into a column.
    One option we have is to have the extraction process create the data in such a way that the fields with multiple lines , be brought in the .dat file enclosed in "" as
    "Test
    "|8989|abcd
    where the new line in the first field is just '\n' .
    Is there any other way in which the requirement can be addressed.
    Version: SQL*Loader: Release 11.1.0.7.0
    Thanks,
    Rohin

    In addition, you would need to know the character set encoding of the csv files (e.g. the code page used).
    Basically you need to have the facts about both client (csv file) and database character set.
    As suggested, use the available documentation - it's there to help you!
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm

  • I want to run a form on web which contains activex

    can any one help me, how can i run a form on web which contains
    the activex control created with vb.
    according to activex, it has to register with the system
    registery. but in case of web what can i do?
    please help me if any one know the answer.
    thanks in advance.
    Sudhakar-D

    If your active X has a visual component then you can't run it
    inside forms on the web. If it is only running in the backend you
    can use OLE2 Package to activate it on the server.
    You can try and use Java Beans instead of your ActiveX they will
    work in forms.
    If your activeX can be embeded in an HTML page, you can call the
    HTML page using web.show_document.

  • How can I center my website to the middle? My website, not my writing if it helps understand it better

    I wanna center my website to the middle of the screen, not left align. My writing is centered on the website but the site I created is stuck in the left side.

    Hello,
    please try in your css advice:
    #main {
      width: ....px; /*(Your choice)*/
    margin: 0 auto;
    In German: Indem man die Breite (width) eines Block-Elements definiert, verhindert man, dass es sich nach rechts und links bis zum Rand des umgebenden Containers ausbreitet. Durch Setzen des rechten und linken Außenabstands (margin) auf auto lässt sich das Element horizontal zentrieren. Das Element nimmt so die definierte Breite an und teilt den verbleibenden Außenabstand gleichmäßig auf.
    My try in English:
    By the width (width) defines a block-level element, it prevents it from spreading to the right and left to the edge of the surrounding container. By setting the right and left outer distance (margin) to auto can be the element horizontally center. The element that accepts the defined width and divides the remaining outer spacing evenly.
    Hans-Günter
    P.S.
    Try also "margin: 0 auto;" alone.

  • I want to block a website that is harassing me please help

    I want to block a website that is harassing me by popping up everytime I start firefox. I have already deleted cookies that I thought belonged to the website through firefox's browser but to no avail. This website creates its cookies as soon as I delete them. Then when I start/restart firefox browser the popup advertisement shows on my screen in a separate window all by itself. I cannot do anything to block this advertisement. How can I block this website? Here is the URL:
    http://c5.zedo.com//ads2/f/934185/3840/0/0/305006682/305006682/0/305/1573/zz-V2-Canada_1x1.html?a=s%3D1573%3Bg%3D27%3Bm%3D48%3Bw%3D8%3Bu%3DRGIOTiGt3SyyrNQNWTGbSVwk~070211%3Bi%3D0%3B;l=;p=
    Thanks very much in advance.

    You can password protect your website but ONLY if you publish it to a MobileMe account.

  • I want to move my Website made on iWeb from computer A to a new Computer. How do i do that???

    I got a new iMac and i want to move my website to my new computer. I made my website with iWeb. But i don't find the way to export into the iweb. Because when i satrt the iWeb it, give me the option to open a new site but i dont find the way to just pull the site i have already made. Can please some one help me out.
    Thanks

    Once you get the domain file to your new computer you'll want to put it in your Users/Home/Library/Application Support/iWeb folder. However, in Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder. Then you can place the domain file in the iWeb folder. If there is no iWeb folder in that location create one.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • Please help me center an SWF on the page.

    Hello, I have a rather simple problem I think, but I can't seem to find the solution. I am trying to get the same
    effect found here at:
    http://osc.template-help.com/wt_25248/index.html
    I want to center an SWF that is larger than the browser window, and I need it to center on the center of the
    SWF without presenting a horizontal scroll bar (in other words just like the example link).
    Here is my code so far. I have tried a couple different methods, but my animation usually sticks on the left or
    the right.
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <BODY style="margin:0;padding:0; background:url(images/tall.jpg) top left repeat-x">
    <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
            <TD style="line-height:0; font-size:0;">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="480">
                    <param name="movie" value="Page2.swf">
                    <param name="quality" value="high">
                    <param name="wmode" value="transparent">
                    <param name="menu" value="false">
                    <param name="allowScriptAccess" value="never">
                    <param name="allowNetworking" value="none">
                    <param name="menu" value="false">
                    <embed src="Page2.swf" quality="high" wmode="transparent"  allowNetworking="none" allowScriptAccess="never" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="480"></embed>
                </object>
            </TD>
        </TR>
    </TABLE>
    </body>
    </html>
    I tried with CSS instead of tables, but it was pretty much the same effect. Also, if the example from the link is different than I am thinking, please
    let me know what they are doing and how I can do it. Thanks.

    Try this by pasting into a new, blank HTML document in Code View.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    body {width: 100%; margin:0 auto; text-align:center}
    </style>
    </head>
    <body>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0, 19,0" width="100%" height="480">
    <param name="movie" value="Page2.swf">
    <param name="quality" value="high">
    <param name="wmode" value="transparent">
    <param name="menu" value="false">
    <param name="allowScriptAccess" value="never">
    <param name="allowNetworking" value="none">
    <param name="menu" value="false">
    <embed src="Page2.swf" quality="high" wmode="transparent"  allowNetworking="none" allowScriptAccess="never" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="480"></embed>
    </object>
    </body>
    </html>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Using CSS to center a website [subject edited by moderator]

    I took advice on centring my website. In my Wrapper/Container Div I made left/right Auto, and selected relative. It worked fine.Then for some unknown reason it left justified, not it right justifies. Support says it is an CSS issue. Anybody help?

    To center a web page, you need just 4 things:
    a valid doc type declaration on the first line of your HTML.  DW does this automatically when you create a new page from File > New...
    a stated width in px, % or em that is less than 100%.
    a margin-left and margin-right of auto.
    default CSS positioning which is static or none specified.
    Example CSS code:
    body {
         border: 1px solid red;
         width: 80%;
         margin: 0 auto;
         text-align:left;
    NOTE: This will not work with absolutely or fixed positioned elements.
    Nancy O.

  • In ALV I want to align Top-Of-Page in Center which contains some TEXT

    Hi Abap Gurus',
                          In ALV's i want to align TOP-OF-PAGE in center.
    Which contains some TEXT.
    Can you please help me out.
    Points will be Given.
    Many thanks
    Anil Roy.

    hi anil
    The header line is always left-justified .
    We basically have three options for formatting :
    S , A and H.
    every line in Alv top-of-page is of 60 char length(slis_listheader-info).so i think the only option we have is to add required spaces to the left and display the required string
    regards
    navjot
    reward if helpfull

  • Hi  i want to upload the website which is develope in java

    want to upload the website which is develope in java
    and m new for all this can somebody help me

    want to upload the website which is develope in java
    and m new for all this can somebody help meDo you mean you have a website developed in Java (*.war) and you want to upload it to make it available on the internet?
    In that case you need to find some hosting that offers Tomcat or JBoss Hosting, depeneds on they type of website you have.
    However your question is not that clear. Better if you try and re-phrase it.
    Regards,
    Sim085

  • This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the

    This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might
    have changed or removed the webpage.
    For more information about HTTP errors, see Help.

    check this
    http://social.msdn.microsoft.com/Forums/en-US/5576aba1-d196-42ce-bd62-ad5ddfa3a8fd/this-error-http-404-not-found-means-that-internet-explorer-was-able-to-connect-to-the-website-but?forum=sharepointgeneralprevious

  • Safari doenst want to open a Website (allocine.fr) and i have a message on the console "kernel: need filter" ???

    Hello hello,
    I am a french user and i have a big problem with safari.
    Safari doenst want to open certains websites ( such as Allocine.fr) and i have a message on the console:
    09/05/2014 11:12:18,000 kernel[0]: need filter
    09/05/2014 11:12:18,000 kernel[0]: need filter
    09/05/2014 11:12:18,000 kernel[0]: need filter
    I have already disabled all the plug-ins but the problem is still here!!
    Thank you for helping me

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    You said you updated yur 1G iPod to 4.2.1. A 1G can only go to 3.1.3 and thus you must have jailbroken it to get to 4.2.1 and that can cause problems.
    ArealDJ wrote:
    I have the same problem.. apps won't download and won't open. I have a 1st Gen ipod touch and recently upgraded my MacBook Pro (2012) and as soon as I upgraded the iPod Touch to 4.2.1, this happened. I restored to factory defaults and still cannot dl and open apps. Any way to diagnose this problem? Apple tech charges $29.99 for out of warranty products and if I am reluctant to pay with them telling me its simply a hardware problem.

Maybe you are looking for

  • Index of file:///C:/Program Files/Mozilla Firefox/

    Acer aspire 5735 laptop : windows vista : 32bit operating system Every time i run Firefox and go to a different page i get an error saying Index of file:///C:/Program Files/Mozilla Firefox/ and eventually after about 10 minutes or so it crashes my co

  • My Isight needs to be replaced, How much does is cost to get fixed through Apple?

    My Isight needs to be replaced, How much does is cost to get fixed through Apple?

  • Get menu label on a form

    I wanna get the label of the menu and populate it on the form that will open. I saw there is the function, but what is the menuitem_id MenuItem I have to inform? FUNCTION GET_MENU_ITEM_PROPERTY(menuitem_id MenuItem, property NUMBER);

  • Need help whit files

    im writting a file whit this code                PrintWriter out = new PrintWriter(new FileOutputStream("Results.txt"));                out.println(texto);                out.close();but everytime i "save" or write the file, it re-write the line i ha

  • Qualified/Tuple work around

    Hi, I have a Qualified table with 3 Fields. A,B,C. A and B are poplualted automatically by incoming file. Now i need to popluate C by comparing with main table field and A!!!!!!! I have seen some Forum saying to create an internal interface, Which me