Centre page in browser window

Hi, I have a site at www.goldenumber.co.uk  I have noticed that on large displays it doesn't look great because the pages are not centred in the browser window.  Is there a quick way to do this.  All the pages have a layout grid and the background is selected via a random script in css.
Many thanks for any advice, Matt.

Your text dont move ... its your background that moves
Your text i stuck in a div that are 1010px wide, and you background image is center on the background of the body .. when the window gets smaller than the image, the image "float" out on both side of the window leving the center part visible
You cud try to place the background image in the wrapper insted of the body so that it follow the wrapper
Change basic.css:
body { color: white; font-family: tahoma, verdana, arial; background: black url(../images/rotate.php) no-repeat fixed center 50%; text-align: center; } #wrapper { text-align: left; position: relative; width: 1010px; height: auto; margin-right: auto; margin-left: auto; }
To:
body { color: white; font-family: tahoma, verdana, arial; text-align: center; } #wrapper { text-align: left; position: relative; width: 1010px; height: auto; margin-right: auto; margin-left: auto; background: black url(../images/rotate.php) no-repeat fixed center 50%; }

Similar Messages

  • Need Help Centering Page in Browser Window

    I'm designing my pages by creating a graphic framework in
    Photoshop, slicing and exporting images into css using Fireworks to
    a Dreamweaver html page. These pages look great; but they load into
    the upper left corner of the browser window
    I was taking a Dreamweaver class at the Denver Art Institute,
    that was worthless. I dropped the class after the 4th week and am
    now teaching myself. I asked the teacher how to center this kind of
    page in a browser window, so the page would behave like most
    webpages, centering as you change the width of the browser window.
    I also wanted to add a repeating pattern in a background image. She
    told me that she didn't know how, that I would have to build the
    background into my Photoshop file. So, that's what I've been doing.
    However, when people with smaller monitors change pages within a
    site the built-in background requires them to recenter the page
    manually each time.
    Is there a way to center the page and add a background image
    that is not built in? I've tried using Dreamweaver's background
    image and margins in the Page Properties; but that just pushes the
    page to the upper left and adds the background to the right and
    bottom of the page.
    Please visit:
    http://www.livingwater.la,
    http://www.renegadegraphics.biz
    and
    http://www.dentalmatchmakers.net
    for examples.
    Thanks for your help.
    Mary

    >I was taking a Dreamweaver class at the Denver Art
    Institute, that was worthless
    Yes, those classes usually are worthless because they focus
    on using the tool without giving you the proper foundation for
    understanding and managing html and css. Unfortunately, all of the
    example sites you gave you AP Divs (layers) as a primary layout
    method, which is a terrible approach. AP Divs should be used rarely
    if ever, and only when you understand how they work. When the
    visitors font is sized differently than you expected, the site
    falls apart. The correct approach is to learn web
    design/development outside of the context of a specific
    application.
    http://www.w3schools.com/html/
    is a good place to start for a basic understanding of html and css.
    And some basic layout techniques can be found here:
    http://apptools.com/examples/pagelayout101.php

  • New page in browser window on event trigger

    Hello Experts,
    I have created webdynpro abap application which generates pdf  interactive forms on pressing a button in UI. I want pdf to be generated in the new page of browser instead of the current page.
    Any suggestions how can I implement this?
    Thanks & Regards,
    Viral

    Hello Viral,
    Anky is helping you to open a new browser window tith 'Google' website.
    In your case, could you do the below steps:-
    Step1 : create a new window, add your view containing Adobe interactive form into this window.
    Step 2: Open this window on button action event. Following snippet of code might be helpful for you.
    DATA lo_nd_tabnode TYPE REF TO if_wd_context_node.
    lo_nd_tabnode = wd_context->get_child_node( Name = '<Node_Name>' ).
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_this->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = '<Window_Name>'
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    Explanation:
    Line 1 & 2. A reference to the context node is created This context node(Node_Name) which is mapped to the UI elemenents on the adobe interactive form.
    Line 3,4 & 5: reference to the window manager, component and window are created(all those starting with 'if' stands for interfaces, if you want details about these interfaces, goto transaction SE24 and insert their name and search for parameters and methods.- putting all these details as you said you are new to Wd ABAP).
    rest of the lines: creating window API and assigning mandatory parameters to this window.
    last line: opening window whenever this particular(wd window) is getting called.
    for more details goto SE 24 search with 'if_wd_window".
    Cheers,
    Jakes.

  • Why does the browser window change colour when I bookmark a page or click the Downloads button?

    Using Firefox 20 on MacOS - when I click the Downloads button or Cmd-D to bookmark a page, the browser window changes from looking like this:
    https://dl.dropboxusercontent.com/u/35912963/01-firefox-before.png
    to looking like this:
    https://dl.dropboxusercontent.com/u/35912963/02-firefox-after.png
    Any thoughts would be welcome.
    Dan

    Hi there,
    Wow, that looks odd! I have no idea why that would happen, but I wonder if it's related to one of the add-ons you have installed? I see a red icon in the status bar that I'm not familiar with, which leads me to believe that you may have other add-ons installed. One thing to try is to start Firefox Firefox with add-ons disabled (you can do this from the Help menu). If you don't see this problem in that mode, the issue is caused by one of the add-ons. From the Tools menu, you can access the add-ons and disable them one by one. Remember to restart each time and then test it out.
    If none of that takes care of this, my other suggestion would be Firefox Reset: [[Reset Firefox – easily fix most problems]]
    Hope any of this helps.
    Cheers,
    David

  • Itunes browser window won't resize to enable license agreement for ipod

    Hi,
    hope someone can help me I am new to itunes and just purchased an ipod classic.Every thing is fine except I can't resize the itunes browser window to be able to read and accept the license agreement to be able to use my ipod.
    The document seems too large for the browser window.I know there must be an accept button to click on to agree to the terms,but it is not visible.I can read the agreement of terms.But I can only see the cancel and save buttons on left at the bottom of screen.There is no sliding bar to access the right hand side of the page/doc/browser window.
    I've tried looking in preferences,itunes help doc. and stretching the window using the mouse, to no avail.
    Thanks for your time.
    Any help would be appreciated.
    John.

    can't resize the itunes browser window
    Change your screen resolution to at least 1024x768.

  • How to center page in any size browser window

    How do I center a page in any size browser even if page is too wide to display - I still want the page displayed from the center and hide the edges as the browser width gets narrower. E.g. I have 3 columns and want to always see the central column - the outside columns will be visible only on a wide screen, but only the central column is visible on a narrower screen such as a smartphone. I have set the margins of my wrapper div to auto, but this only centralises the page until the wrapper width is the same width as the browser window. Help me please !

    Thanks Nancy O,
    Using the % as a width does now allow the page to remain centred.
    Is there a way to keep the web page size as original even when the window gets smaller - i.e.you will only see the outside edges of the page by using the slidebar left or right if viewing in a smaller window. Ioriginally set the wrapper div width to 700px rather than 90%, but when I reach a browser window of 700px, the page then reduces in width towards the left rather than reducing it centrally.
    I don't know how to link to my page as it is not yet a live page, so can't show you specific code. Hope the above explains what I am trying to do. Basically, the two outside columns will be less important info, so I don't need this to always be visible, but if viewing my page on a smartphone, I want the central area to be seen in full (approx. 450px wide), and not reduce in size.
    Thanks for your help,
    ActivePlanner.

  • Open discoverer report in new browser window and without connections page

    Hi All,
    We are using Oracle 11g Discoverer 11.1.1.4.  Requirement is to open the discoverer report in a new browser window and without connections page.
    When we are running discoverer reports with this parameters we unwantedly get the connections page of the discoverer plus which we don't want.
    Went through the documentation given in this page and followed it still the issue persists, and i see couple of threads with my issue and no updates.
    This excerpt is from the documentation available in the link
    " _plus_popup=true and framedisplaystyle=embedded launches Discoverer Plus in a new pop-up browser window that contains the Plus applet embedded in it "
    http://www.art2dec.com/documentation/docs/oas10g1012/linux/bi.1012/b13918/urlstart.htm
    and Here is what we use to invoke our reports.
    http://ipaddress:port/discoverer/plus?cn=cf_123&_plus_popup=TRUE&framedisplaystyle=EMBEDDED&wb=disc_wb_1
    Request the forum users from PRO discoverer group to help me out of this issue and expect a good discussion on this.
    Thanks in advance

    Closing the thread
    We were able to achieve by changing the browser settings in the IE 8 Browser. Disabled Tabbed browsing.

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • I click on a link or start typing text in a box on a webpage, any page, and the browser window either randomly changes size, reduces & goes to the toolbar, or some other strange random thing occurs. Why is this?

    Whenever I am using Firefox, when I am on a webpage (any webpage) & I either click on a link in that page, start typing in a box, click on a button, or click on a tab, the browser window either reduces to the toolbar, or just changes size, usually from full-screen to 2/3 of its size. I reinstalled Firefox (downloaded from the web) after wiping my hard drive because I was having so many problems from my browser constantly crashing, to the computer itself crashing often, to the computer running exceptionally slow. At first everything seemed fine. But then after having opened my computer a few times, a few different windows began to freeze, then that stopped, then this thing with the browser started a few times later after opening it. Now it does it every time I open it. Also, whenever I try to click on a button on other windows on my computer, I get the 'warning' sound, nothing happens, then after a couple more tries, the button works. All of this is just weird. I had antivirus protection on my computer, but it apparently did not catch whatever virus infected my computer, or the damage was already done when it did get it. I thought once the hard drive was wiped, that everything would be ok, but then these weird things began to start up, and now I am wondering.... Of course, it could also be something wrong with the browser, too. I've also had some trouble getting my printer to working again, but I've managed to solve that problem.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Open page in browser in same window?

    I remember a few versions ago I could hit f12 and it would open my page in the same window - instead of creating a new window every time.
    Now, I'll have 20 open browser windows in a matter of minutes.
    Is there any way to get that feature working again?
    Thanks

    I got in the habit of F12 from DW many many years ago. Back in the good ole days you could go straight from DW to the browser window without creating a new page. After a few hundred thousand times, it's hard to break the habit - especially when it requires an extra step.
    It seems like every program I use requires more keystrokes (or clicks) to accomplish the same tasks than it did 15 years ago. Since DW CC took away all my Coldfusion stuff, I guess its time to start looking for other options.

  • How do I open a new FireFox browser window to the home page and url filled?

    win 7 64-bit, firefox 5 open new window no url. When I have firefox open and open a new browser window, the new window does not open on the home page and no url is present in the address field. If I click on the favicon in the address field, the url of the current page will automatically fill in. The forward and backward arrow buttons remain disabled. In addition, links opened in a new window cause a new browser window to open, but the linked to website is not displayed in the new windows. What is displayed is a new window completely blank with no url in the address bar. I tried to include troubleshooting information by clicking on the copy to clipboard, but apparently the character count was exceeded.

    I disabled all plug-ins and extensions. the problem has been resolved. Now I will enable each one individually to find out which one was the offender.

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>
    My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    I posted this same query on the JSF forum but received now replies. My question is more suited to the JSP forum and hence I'm posting this question here.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • How to open a new browser window from a JSP page?

    Hi,
    I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
    Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
    Thanks in advance.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • How to show an HTML page in a new browser window

    Hi Everyone,
    I am trying to show a page generated by some servlet in a new browser window when the button is clicked on the applet. I can accomplish that by using AppletContext as in:
    myApplet.getAppletContext().showDocument(servletUrl, "_blank");
    The only problem with this is that I don't have any control over how the new browser window is displayed. Using JavaScript I can set size, hide toolbar and address bar, etc. But how can I hide address bar on a new browser window generated in this scenario?
    I tried to call intermediate servlet from my applet which in turn generates a new window by writing out JavaScript code. This way I lose my previous page with the applet even though a new window is displayed the way I wanted but I want this new browser window to act as a pop-up box and my applet page stay on screen. Also, is there a way to send a POST request from an applet by using AppletContext.showDocument() method?
    Any help will be greatly appreciated!
    Thanks in advance,
    Y.M.

    Did you ever figure out a solution for this? I too would like to open a new browser window to act as a pop-up box and my applet page stay on screen. If anyone has any thoughts on how to do this, please post! thanks.

  • How to make Safari browser always open a new web page in a new Safari browser window which was clicked from a PDF document URL

    Hi
    I have a web application which would enable users to see a list of PDF document on the web page and when the user select the PDF document, it will be open by a adobe PDF view
    Within the content of the PDF document, it will contact URL links to some other portal web pages which we would like these other web pages to be open in a new browser window, but our testing shows that the new web pages may not always open in a new browser window.
    Could you help to advise how I can enforce that new web pages that are clicked from the PDF document can always be open in a new Safari browser window ?
    Thanks in advance.
    Regards
    Sen Lee 

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

Maybe you are looking for

  • Re-installing Audio Driver

    I recently purchased a new dynadock (model # - dynadock PA3927U-1PRP dynadock U3.0).  During the setup, I received a notice that both the audio and Ethernet drivers had not installed.  Obviously, my dynadock audio has not been working.  I visited the

  • Aperture and Canon 7D

    I am thinking about upgrading to a canon 7d. I read how there was a problem with Aperture reading RAW files, especially with red. I currently use Aperture 2 and dont want to buy the 7D if I am going to problem with Aperture. Has the problem been fixe

  • F4 help in FPM Form UIBB (Get Default Config)

    Hallo, I need help to configurate a Form UIBB dynamicaly. I insert in the Method Get_Default_Config some fields of the Table SPFLI - this works fine. But my Problem is that all the fields doesn't have a F4 Help. What is my mistake? And how can I conf

  • 0 bytes free of 613 MB

    Hi, I have problem with Nokia 808. When I check memory I see "0 bytes free of 613 MB" Why? I did reset *#7370#, but I still have "0 bytes free of 613 MB" Does anybody have any idea? Waldek Solved! Go to Solution.

  • TV Shows & Films For The UK???????????????

    These apple announcements are absolutley wonderful for all you guys in the U.S., but what about the rest of us? I love the concept of the ipod, and ipod video. When are you bringing the U.S. content to the U.K.?? Come on apple!!!