Background image to fit the browser window

Hi all
I would like a background image to fit the browser window with a section of content it contains / above it. I can't do too much work, but I've done a mock up for you give an idea on http://www.greenpatch.co.uk/test/test.html! The basis for the content CSS is as follows:
#container {}
Width: 770px;
margin-right: auto;
left margin: auto;
border: thin solid #FF0000;
top of the margin: 207px;
}
#header {}
Width: 770px;
height: 120px;
background: url(images/newbackground.jpg) no-repeat;
border-bottom: thick Ridge #006633;
}
{#contentwrapper}
Width: 768px;
float: left;
}
#left {}
float: left;
Width: 212px;
}
#right {}
float: right;
Width: 525px;
padding: 10px 20px 50px 0px;
}
#footer {}
Width: 770px;
padding-top: 8px;
Clear: both;
padding-bottom: 8px;
border-top: Ridge average #006633;
background: #669966;
}

Any suggestions much appreciated. Thank you in advance.

Note Although the distortion. You can use this method if you must, but I
invites you to put some min and max limits on the size of your page. Otherwise,.
It will look all just horrible on the ultra wide screens or 3 components.

--
Nancy O.
ALT-Web Design & Publishing
www.Alt-Web.com

Tags: Dreamweaver

Similar Questions

  • How to get the background image to fill the browser and stay fixed in IE and Firefox?

    Basically what it says in the title. I came very close to achieve, but something comes to Moor in the html and css code...

    First of all, I use the latest version of Firefox and IE8 to test this situation.

    I used 2 sources of information to get this done: 1) http://css-tricks.com/perfect-full-page-background-image/ and ) 2 http://stackoverflow.com/questions/8958697/css3-background-size-cover-doesn ' t-make-image-co-ver-vertical


    In 1 case , the example of the called page CSS-Only Technique #1 gives the code that works almost perfectly for me, except that obviously I need to a background image, but the CSS provided ago obviously just for an image has fallen in the body of a page without taking account of any other content that may already be there. "The html code that I put on the page is simply < img class ="bg"src ="... / pictures/background_image.jpg "> "

    Of course, I used the CSS code in the example, less the last piece which is "@media screen" etc., which seems irrelevant to me. Of course by replacing the values according to the picture on my page.

    So what happened was that it worked almost as expected in both browsers (which means the image filled both browsers first as it should and also remained fixed when I zoomed in, inside or outside, in each case), except that the picture went on top of the current content that I already there precisely because there isn't a background in this 'technical '. (A note on the side of curious, is that the image didn't turn down content, I expected under normal circumstances, but he went right on top of it so she she hidden (like the z-index).)

    One thing that bothers me in this regard 'technical' is that if you click on view the demo just below the code provided, you will see on the example of work page (bottom of the forest), the image clearly works as a backdrop and the content is fortunately located on top! So I don't know if the person who provides the example was trying to deceive people or what! Or he got lazy and showed another page which did not use the exact code, he has provided. No matter.

    In any case this leaves me with only half-completed work, because I still need a background image that functions as the 'normal image' code provided.

    In 2 cases and on this page, the first example provided gives the CSS for clutter - namely the code in the html {...} part and shows also the same "normal image" code as shown in box 1. In this case however, that the person provide a suggestion, the html and the css is not really properly more Moor some css and html seems a little redundant. So this time, when I used the part "html" in the CSS code (i.e. just the bit that was no longer relevant), I had two different behaviors in each browser and neither of which was quite what I'm looking for. In IE8, initially the page seems well (background fills the page and the content is on top) but when I Zoom in or out the background also zooms in or out accordingly so is NOT fixed. In Firefox, the background image stays fixed, but because the image is initially not the height of the browser I guess the code it extends down (keeping the proportions - so the image enlarges essentially) to fill it. The fast way to get around it is probably add white space at the bottom of the image just to give it sufficient height is not extensible / resize automatically. But it would be nice to know at least how to work around this problem in the code. Overall, I would say that the result in Firefox is closest to the desired solution, but of course it is not arranged things with IE8.

    Apologies for the long description, but which should at least provide much info for anyone who might have a possible solution for me. Essentially what would be great is if someone could advise me how to take the code of case 1 and apply it to a piece of 'background' coding as the type that is contained in html {...} in Case 2 . Like I said, it is almost there, but I just can't operate atm after trying to combine different bits of code this way and that... Also, if anyone has another version of html-css that works well to achieve then please by all means of let me know! V thanks a lot in advance!

    It works in modern browsers of the CSS3 support.  But not pre - IE9.

    http://ALT-Web.com/test/resizable-BG.shtml

    Nancy O.

  • Scalable image slideshow from the browser window

    Im trying to use 3-5 images in a slide show that is the width of the window of the browser here is an example of what I'm talking about http://rorymcilroy.com/

    Also where he says: I am a golfer & etc... is it possible for me to have the text appear also with each slide?

    You will not be able to create one that develops dynamically with the browser, it will have a fixed size. You can add text to slides using widgets of Composition (even if the text scrolling animation is not possible).

  • Full screen swf don't auto-size until the browser window is resized

    Hi all
    I posted my test here at http://www.urbanlinx.com/Test.swf.
    I have 4 MCs in the film. A header, content box (Center), footer and background image.
    When the browser is set to scale the background will scale proportionally to the widow and maintains its proportions.
    My problem: when the clip is loaded first, the background is not resized until the browser to resize manually by the user.
    Is there a code I can add that will check the size of the window prior to the loading of the movie?

    My code is attached.
    Stop();

    Stage.scaleMode = "noscale";
    Stage.Align = "tl";
    Stage.addListener({onResize:reposition});)


    function reposition() {}
    var header = _root.myHeader_mc;
    var bg = _root.image_mc;
    var content = _root.myContent_mc;
    var _root.myFooter_mc = footer;

    var NPOS;

    NPOS = getNewPosition (header);
    Header._x = nPos.x;
    Header._y = 0;

    NPOS = getNewPosition (content);
    Content._x = nPos.x;
    Content._y = nPos.y;

    NPOS = getNewPosition (bg);
    BG._x = nPos.x;
    BG._y = nPos.y;

    NPOS = getNewPosition (footer);
    footer._x = nPos.x;
    footer._y = Stage.height - footer._height;
    };

    function getNewPosition (mc) {}
    var agree = Math.floor ((Stage.width-mc._width) / 2);
    var = Math.floor ((Stage.height-mc._height) y / 2);
    return to {x: agree, y: Y};
    };

    reposition();

    Stage.scaleMode = "noScale";
    Automatic resizing
    stageListener = new Object();
    stageListener.onResize = function() {}
    backgroundResize (_root.image_mc);
    };
    Stage.addListener (stageListener);
    Background resizing
    function backgroundResize (image) {}
    var imageHeight = 400;
    var imageWidth = 700;
    var wRatio = Stage.width/imageWidth;
    var hRatio = Stage.height/imageHeight;
    Report higher
    If (wRatio > hRatio) {}
    var ratio = wRatio;
    } else {}
    var ratio = hRatio;
    }
    Resize
    If (Stage.width < = imageWidth & & Stage.height < = imageHeight) {}
    image._width = imageWidth;
    image._height = imageHeight;
    } else {}
    image._width = imageWidth * ratio;
    image._height = imageHeight * ratio;
    }
    }
    backgroundResize (_root.image_mc);

    Special thanks in advance.

    PS: If you know a way to do this with a cleaner code, help would be greatly appreciated... If it is already the correct code... Thanks to all the people in the community who taught me :)

    Well right after that a whole bunch of tracks and errors as much as I found the resize code is not like code reposition. Tried another code to reposition and its working great. It is also much smoother during resizing.

    Here is the code I use. Basically the bottom scales proportionally to the browser window, keeps its ratio and scales of the Center. If anyone has any advice on how to do it more easily if you please drop me a line.

  • How can I make my swf is displayed correctly in the browser windows?

    I want to publish my Flash file and make it accessible by a link, but it does not display correctly. All angles or curved edges look jagged and uneven. Straight lines are fine, but everything else seems messy. In addition, my last swf is amplified to fill the window of the browser for a reason, which looks terrible. I didn't know the question before scaling and I can't understand what the problem is this time. Files I posted before still displayed to the normal size of the file work, but it works differently. I use Flash CS6, and I tried to download and view my swf in Chrome and firefox. The swf dimensions are 1280 by 720. Thank you

    If you link directly to the swf instead of an html page that loads the SWF then the swf will size itself to fit the browser window.

  • Please help: content still is not fixed with background image when I resize the browser window

    I am designing a Web site and want my content appear in the same location relative to the background image, regardless of whether or not the browser window is resized. How can I do this? (the content always moves when I preview the page)

    You can pin the object on the page so that it remains in the same position with any size of the screen.

    Thank you

    Sanjit

  • Page DW8 with HTML to fit in the browser window

    I created a basic html page and wish to have the page continue to fit in a browser window as the window changes size. Tried with CSS "background-size = 100%" fixed online codes, but doesn't seem to work.

    The background-size setting is only to set a background image. Would not resize the entire page.

    Several things working against you in your code. The first and most difficult to treat while using it on the page, is "position: absolute". In General, this setting is the opposite of reagent. Position: absolute "can" be used in sensitive designs, but it requires additional code to make it happen. Absolute positioning of objects include an exact amount of pixels high, left, down or to the right of the parent (just up and left by default in DW) element. In your case, #Layer1 will always be 431 pixels from the top of the page and 329 pixels from the left that is decidedly "not suitable."

    These parameters (position, top and left) must be removed and the APDiv/layer button should be ignored here on out if you want your design to adapt to different screen sizes. You will need to learn how to position elements using css float, margin and padding if you want to create something sensible. Running through the tutorials at http://www.w3schools.com/css for some databases. Some other links on css positioning...

    Learn CSS positioning in ten steps: absolute relative static position float

    CSS - float and clear formatting

    Your width settings also say your items to an exact pixel size as well. To make your attentive elements, you can use % width settings. The actual size of an element using a percent width is determined by the setting of its parent element. For example, if you set the width of #Layer1 to 80%, instead of 674 pixels, it will eventually be 80% as wide as thesetting the tag. Given that theis assumed 100% unless otherwise stated, layer1 would end up being 80% of the width of the browser window. With ' width: 60% ", you can use a setting min-width" never get smaller than that "in css. If you set your same #Layer1 width: 80% a min-width: 400px will keep it from never has less than 400 pixels wide.

    Once you have the basics of layouts css under your belt, look into CSS Media Queries. Basically what they allow you to do, is put "break points" in your .css file so "once that window reached 401 pixels or more, use this css instead" so it allows you to write completely different rules for various devices.

  • get an image to fit the width of the browser

    Hello

    Im trying to get an image to fit the width of the browser - I thought that I could do as you would a picture form, that is to say until the red line appears both sides so it will fill the same as a form automactially. However when I do this that it just doesn't work - it is not stretch across the width of the browser.

    I realize that I can use the BROWSER FILL - but as I already have a picture for the footer I used this function that works well. Ive also tried combining image and my foot as a large image using the browser fill - however this does not work as when the image is adjusted upward on a large screen, it puts everything, as it is just to treat as a single large image background.

    So my question is - is anyway that I can get an image that is placed to fill the width of the browser without using browser fill?

    Thanks in advance

    Paul

    Draw a rectangle, click the 100% icon (1) in the Strip command at the top of the application window, use the command 'Fill' (2) to place a photo:

  • How I would get the background of the body element to open the browser window wide

    How I would get the background of the body element to open wide the browser window? I've heard that using an HTML tag or CSS rule that I can put across a background which is placed in the body element without using javascript is that true?

    You could, but why, (she also would work properly, as it is)?

    This size not your background image and that only the window correspond to your design, not your design to adapt to the window. If you want your design to fit a window much easier and not javascript dependent way would be to use page css liquid layouts, (as I said earlier, the background image will not develop unless you use values of %).

    For liquid layouts testing - http://www.adobe.com/devnet/dreamweaver/articles/bk_dwcs4_mastering_css.html

    PZ

  • InDesign: I can't extend my images to fit the background area lost

    Hello

    I'm looking for help making my images extend to the substantive area lost.  I have configured my document to have a 0.125 "bleed all around, as shown, but when I drag to expand the image to fit the purge, the image does not appear between the edge of the page and the background area lost.  I saw someone do this in a tutorial and it worked, so I don't know why mine does not purge the image section.

    Capture.JPG

    Can someone help me understand this?

    Thank you!

    manifestphoto.com wrote:

    .. .but when I drag to expand the image to fit the purge, the image does not appear between the edge of the page and the background area lost.

    It seems to me that you drag only the weft for guides to bleed, leaving the image itself affected. Press/hold Ctrl/Cmd before you click the handle of the frame, then drag, and the image will respond with the framework.

  • How can I insert images of full-width that reach until the edges of the browser window?

    I would like to insert pictures full-width that reach until the edges of the browser window. When I try to do and break the boundaries of the image to the absolute limits of the page in edit mode, you can push the image back to the borders of the body in preview mode.


    I can do rectangle normal blocks full-width, but no pictures.

    Who can help me?

    1. Create a box, and then click the '100% width' along the menu bar icon to define your area to scale to the width of the browser.
    2. Import an image in the box using the parameters shown in the second picture,

  • Is there a way for the hotspots of turning adjust an image capable of evolving to fit the browser?

    Hello

    Currently this is my site: paddyohara.co.uk

    The main image of bearing on my homepage is currently of fixed size, but when I put the image to enlarge it to fit the browser, the hotspots of flipping moved out of position on the large screen resolutions. Is there a way to get the hotspots of bearing size upward from the image of sizing up to?

    I hope this makes sense, any help much appreciated

    Paddy

    You can try something like this (I have not because I so rarely use hotspots).

    http://StackOverflow.com/questions/19671168/how-to-adjust-the-top-left-width-height-based-on-the-ratio-of-the-resized-image

  • Stadium/ground based... Flash site resize to fit the browser?

    Hello

    I built a website style pretty basic portfolio using Flash and Actionscript 3. Everything works fine, except for the size of stage against the size of the browser. Basically I want the stadium/background image to resize to fit the scene, while having the main pillar of fixed content in the middle. What is the best way to do this? Also, if possible, a guide step by step would be amazing because I'm fairly new to AS3/coding in general.

    Thank you very much!

    Well, you can't expect miracles.  If the browser window does not have the same proportions as your scene, that something happened to give.  You can either stretch to fit the window and the proportions of your step in bulk, or you can resize and maintain the scene and crop aspect ratio.

  • Is there a possible solution to this age-old problem which graphics disappear when the browser window is resized?

    example: www.satlinker.de
    If the browser window is smaller than the content, the header image seems well.
    My css stylesheet looks like this:

    #banner {
     padding-left:10px;
     text-align: left;
     font-weight: bold;
     border: 1px solid #000;
     background: transparent url(/media/header.svg) top left no-repeat;
     height: 70px; /*workaround to adjust width*/
     -webkit-background-size:100% 100%;
     -moz-background-size:100% 100%;
     -o-background-size:100% 100%;
     background-size:100% 100%;
    }

    It has nothing to do with svg, similar problems with png images.
    In earlier versions, height adjustment worked as a workaround, but no more in vesion 17.
    There are various problems like the one described in the net:
    for example Bug 282558 - sized image vanishes on browser resize.
    But I can't find any solution - and this bug is described in 2005!

    I was wrong, it was a problem with the svg format. I tried several other formats, each doing its own problems. I tried cleaning the svg with conversion tools code and finally manually with a Publisher - nothing works. GIF and jpg of other problems, so finally I have found a converter of images to http://www.files-conversion.com/, which produces an acceptable png format.

    I think that the rendering of images needs to be improved.

  • How to move the contents of the footer to the bottom of the browser window

    I use default globe exculpatory for portal ADF applications, but seeing that the footnote page note gets to the bottom of the browser window. Can anyone help here please on how to get there?


    Kind regards
    Frédéric

    Hello.

    Includes your page of templeta in a who follows these steps:

    (1) put your ** in ** to ** without your footer. (Everything except the foot of page and xmlAttributes)
    (2) put your ** with the footer in ** (only the bottom of page).

    With ** you can solve your problem.

    Kind regards. Daniel.

    PD: I stick an updated model that I have pageTemplate_globe with panelStretch. I hope to help you.



    xmlns:f = "http://java.sun.com/jsf/core".
    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    xmlns:PE = "http://xmlns.oracle.com/adf/pageeditor".
    Cust = "http://xmlns.oracle.com/adf/faces/customizable."
    xmlns = "http://java.sun.com/jsp/jstl/core" >






    rendered = "#{! composerContext.inEditMode or facesContext.viewRoot.viewId == ' / oracle/webcenter/siteresources/scopedMD/s8bba98ff_4cbb_40b8_beee_296c916a23ed/siteTemplate/gsr395559d2_16dc_4c21_89f8_f62c184d3bbc/Container.jspx '}" > "


    value = "Copyright 2010 - Oracle and/or its affiliates. All rights reserved. />




    inlineStyle = "width: #{attrs.contentWidth};" » >


    inlineStyle = "width: #{attrs.contentWidth};" » >


    rendered = "#{! composerContext.inEditMode or attrs.isEditingTemplate} '"
    inlineStyle='background-image:url(#{facesContext.externalContext.requestContextPath}/images/globe.png);' >


    inlineStyle = "" border-style: none; ">"



    inlineStyle = "do-size: x-large;" color: white; » />




    ID = "pt_ot6".
    inlineStyle = "color: #558ff9;" make-style: italic; font-size: small; » />







    HAlign = "end".
    inlineStyle = "padding: 6px 8px" >


    inlineStyle = "" white-space: nowrap ">"




    inlineStyle = "color: White;" / >





    value = "welcome #{securityContext.userName}".
    inlineStyle = "color: White;" font-size: small; »
    rendered = "#{attrs.showGreetings}" / >


    destination = "" / admin ""
    rendered = "#{attrs.showAdmin and! attrs.isAdminPage} '"
    inlineStyle = "do-size: small;" color: white; » />


    destination = ' / '.

    rendered = "#{attrs.showAdmin and attrs.isAdminPage} '"
    inlineStyle = "do-size: small;" color: white; » />


    action = "#{o_w_s_l_LoginBackingBean.doLogout} '"
    rendered = "#{SecurityContext.Authenticated} '"
    inlineStyle = "do-size: small;" color: white; » />



    rendered = "#{attrs.showLogin and! securityContext.authenticated}" > "


    styleClass = "NoLabelWrap."

    labelStyle = "font-size: s;" color: white; » >

    value = "#{o_w_s_l_LoginBackingBean.UserName} '"
    columns = "15" / >


    styleClass = "NoLabelWrap."
    labelStyle = "font-size: s;" color: white; » >

    value = "#{o_w_s_l_LoginBackingBean.Password} '"
    columns = "15" secret = "true" / >




    HAlign = 'end' >

    action = "#{o_w_s_l_LoginBackingBean.doLogin} '"
    inlineStyle = "font-size: s;" color: white; » />








    inlineStyle = "(background-image: url(#{facesContext.externalContext.requestContextPath}/images/globe_tab-bkg.png);" background-top position: center; background-repeat: repeat-x; padding-top: 2px; »
    rendered = "#{! composerContext.inEditMode and attrs.showNavigation and! attrs.isEditingTemplate}" > "

    inlineStyle = ' height: 20px; ">



    "{[items="#{navigationContext.defaultNavigationModel.listModel['startNode=/, includeStartNode = false']} ">


    facetName = "#{(empty node.attributes['Target']) |}" (node.attributes ['Target'] is "_popup")? ' {'command': "golink"} ">


    inlineStyle = "do-size: small;" #{node.selected?-weight: bold;} " : ''} »
    action = "pprnav".
    Disabled = ' #{not node.navigable}.
    actionListener = "#{navigationContext.processAction} '"
    clientComponent = "#{node.attributes ['Target'] =="_popup"? true: false}" > "



    align = "afterStart."
    triggerType = "mouseOver" / >


    value="#{node.navigationModel.metadataId}"/ >

    value = "#{node.prettyUrl}" / >

    value = "#{node.title}" / >

    triggerType = 'action' / >





    destination = "#{node.goLinkPrettyUrl} '"
    targetFrame = "#{node.attributes ['Target']}" "
    inlineStyle = "do-size: small;" #{node.selected?-weight: bold;} " : ''} » >

    align = "afterStart."
    triggerType = "mouseOver" / >





    animate = "false".
    rendering = "#{!}" empty node.children}">


    items = "#{node." Children}">



    facetName = "#{(empty node2.attributes['Target']) |}" (node2.attributes ['Target'] is "_popup")? ' {'command': "golink"} ">


    inlineStyle = ' #{node2.selected?» -weight: bold; " : ''} »
    action = "pprnav".
    Disabled = ' #{not node2.navigable}.
    actionListener = "#{navigationContext.processAction} '"
    clientComponent = "#{node2.attributes ['Target'] =="_popup"? true: false}" > "




    value="#{node2.navigationModel.metadataId}"/ >

    value = "#{Node2.prettyUrl}" / > "

    value = "#{Node2.title}" / > "

    triggerType = 'action' / >





    destination = "#{Node2.goLinkPrettyUrl} '"
    targetFrame = "#{node2.attributes ['Target']}" "
    inlineStyle = "do-size: small;" #{node2.selected?-weight: bold;} " : ''} » / >










    launcherVar = 'source' eventContext "Launcher" = >

    to = "#{viewScope.modelPath} '"
    Type = "popupFetch" / >

    to = "#{viewScope.selectedPrettyUrl} '"
    Type = "popupFetch" / >

    to = "#{viewScope.selectedTitle} '"
    Type = "popupFetch" / >

    type = 'Cancel' cancelTextAndAccessKey = 'Close' >

    ID = "pt_r1" / >














    Globe Page template

    Facet for the content
    content


    contentWidth
    java.lang.String
    100%


    showNavigation
    java.lang.Boolean
    #{true}


    showGreetings
    java.lang.Boolean
    #{securityContext.authenticated}


    showLogin
    java.lang.Boolean
    #{true}


    showAdmin
    java.lang.Boolean
    #{securityContext.authenticated}


    isAdminPage
    java.lang.Boolean
    #{false}


    isEditingTemplate
    java.lang.Boolean
    #{false}




Maybe you are looking for

  • How can I show more top sites when I open a new tab? Currently it only shows four.

    I opened a new tab and I see that first four sites, I used to get eight. How to change this back?

  • MIDI LOGIC EL CAPITAN DOES NOT

    I can't play all my x 6 roland fantom keyboard midi notes. It started to happen after I upgraded to 10.11 el capitan. Roland is no longer making new drivers for the keyboard. should I buy a usb midi converter to?

  • Windows updates are not displayed

    So I see and my colleague has responded to these two posts: http://social.answers.microsoft.com/Forums/en-US/msestart/thread/eaadca93-59ce-4cc5-a670-1ff056e1e162/ As Steve posted, it's simply a "upgrade customer" which is related to this ad: http://w

  • I forgot the password for the user account

    A few nights ago, I changed my user password, now I can't remember it! PLSE help, how to get into widows and change them. F8 does not work.

  • Save BONES for thin client

    I need to configure the workstation 15. Active PXE, less customer disc. is it possible to do it with xp on client think or I have to go for open source OS