Make a background image of a DIV elastic?

I try to get the background image of one div to resize when the browser text display rises or falls.

There's a big announcement at http://jontangerine.com/silo/css/elastic-layout/ which gives many details on the layouts of elastic and addresses resizing of the images on the page to see his example in http://jontangerine.com/silo/css/pixels-to-ems/

However, it has not worked for me when I tried to apply it to the background image.  Anyone know the code for this?

Thank you.

egigharbor wrote:

Zoom the page without problem - it is the text based on the browser does not accept my image to enlarge proportionally sizing.  I know that there is a way because I tried on http://jontangerine.com/silo/css/pixels-to-ems/ and its images increase with the text.

For some reason I struggled to make it work in my banner.

OK... you're asking for trouble and opening a Pandora's box... but what you can do is insert the image and remove the width and height attributes. To resize the image as page zoom in and out... willingness to work in some browsers, not all (eg. works in FF, but not IE6). Be aware though that, as the image magifies, rasterization will be put in... zoom isn't so bad... like compresses just of the image.

Tags: Dreamweaver

Similar Questions

  • What is the way to place a background Image in a Div?

    I searched Google and Adobe forums for a while now, and although there are very valid solutions for similar problems I discovered that none of them fixed the problem that I am facing. I blame myself and get lost in this encoding sloppy mine, so part of my plan was to start my stylesheet from scratch.

    My question, what is the right way to add a background image in a div? I currently have the div albums following the css style "header", here's what I typed in this section:

    < style type = "text/css" >

    @import url("..) ("/ twoColLiqLtHdr.css");

    . Header {}

    Width: 1000px;

    height: 300px;

    background-image: url(Assets/HeaderTemplate.png);

    background-repeat: no-repeat;

    background-position: center;

    }

    The problem here is that the background image is not still appear. I would appreciate help, could someone inform me on how to do this so that I can implement images in div in the future without turning my coding in a bottom right mess?

    Thank you in advance.

    Try changing it to:

    background-image: url('Assets/HeaderTemplate.png');

    Also make sure you have the case appropriate for file names: for example

    Assets = active

    HeaderTemplate = headertemplate

    etc etc.

    Sometimes these things create problems.

    Good luck.

  • How can you make a background image change to a State faded at some point in scrolling?

    I am referring to a technique that I have seen used in the relevant Magazine iPad app if someone used it. I understand having a shape behind text that presents a gradient feathers and when you scroll down the form vanishes little by little the background image. But this is not the effect I'm trying to achieve. On some articles, the screen is a complete image and when you scroll type to the top, the bottom everything fades away when you scroll up to a point.

    I tried to search for hours, but I feel that I don't get the case because I don't really know what to look for. I feel like it requires something else than DPS is capable of. I hope this makes sense and I would be very happy to suggestions and help!

    Thank you!

    Try to apply the gradient of feathers to the structure of content scrollable, not the backstory. It will appear to change the color of the shading.

  • Background image in a div?

    I know how to use css to place an image of background inside a div. However, I want to be contextual and differrent depending on what the current page is that image. As a hypothetical example, I would like a background image of an Apple inside, no repetitive < div class = 'content' > when the apples.html of the page is open, but then a picture of a banana would be the background image inside < div class = 'content' > for bananas.html.

    If there is a way to place background images on the fly, directly in the html code, it would be the best solution for this novice.

    Thanks for any help!

    r

    Do it this way-

    (This put in the head of each page (or put rules in a whole site)
    external style sheet)

    Now, on the Apple page, change it.

    on this subject.

    and on the page of bananas, change it to-

    Get it?
    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "MEPE" wrote in message
    News:ffqvhs$5q6$1@forums. Macromedia.com...
    > Thank you!
    >
    > I will he give a try. I'm Googling for tutorials on this subject, but if anyone
    > has one in their pocket that will allow them to share, very much appreciated.
    >
    > r

  • How to make a background image fixed in Dreamweaver CM³

    I'm doing my fixed background image then when I scroll in Dreamweaver CC it remains completely, could someone please tell me how to do this?

    You cannot omit semicolons

    background-attachment: fixed

  • background image in a div that resizes to the size of the mobile browser in jquery

    I want to place a background image in my area of content using Jquery mobile, but I want image re - happen to the size of the browser and different devices. How could I go about this?

    jQuery Mobile essentially is a one page site.  Background gradients are determined by the jQuery Mobile theme do you use (a, b, c, etc...). I don't know if it is possible to use a scale with jQMobile.  I have never tried.  But you can find the code in your Theme.css file.  Look for the ui-body-a, b-body-ui, ui-body-c, depending on the theme you are using.

    Nancy O.

  • How to make the background image for a site

    Hello.

    First of all, thank you for reading this.

    I intend using a gradient image as background on a new site of black on the sides gradiating to blue in the Middle I created in Photoshop. The site is designed for 1024 (955) and upward. How the background image would handle so that no matter what the resolution above 1024, the visitor sees the gradient correctly, which means that Blue will be always exactly in the center of the page and the image not horizontal mosaic? (I don't want to repeat from left to right when the resolution someone is really high)

    I saw a couple of sites that use strong images that seem to stretch the background image according to the resolution, but were not able to understand the CSS code. In my case, I have a single image that has say 5 pixels high, how wide I need for the (reasonable) maximum resolution, and let repeat from top to bottom.

    Thank you.

    MFitz721

    To do what you ask would require CSS3.  This is because that the CSS3 added support for multiple background images.  What you would do, is to set a gradient to the left and the other to the right with a background color that arise in a vacuum.    Basically use you the abbreviation of "substance" and separate the different environments with a comma ","  See this example ( http://www.css3.info/preview/multiple-backgrounds/ ).  I think it's possible the long way as well (for example: position of background, background image, etc.), but you would need to write the values and who is 1 and 2 in order when you do this.

  • How to make the background image with dramatic style?

    Most of the images I see it is mix of pattern in the background which make it look alive. The model are lines and shiny effects. How do these lines

    oshop http://PSD.tutsplus.com/tutorials/Tutorials-Effects/Creating-a-Mac-type-background-in-phot.

    http://www.Tutorial9.NET/Photoshop/creating-the-Windows-Vista-lighting-effect/

    http://psdlearning.com/2008/06/luminescent-lines/#more-45

    Search for abstract Photoshop etc.

  • How can I make all my images in my div right Center

    Can someone please help me to focus all my images in my right div, i.e. 'dirty' 'pdf' 'Gallery '.

    www.hunterstables.co.uk/index.html.

    Thank you

    . Box img {}

    display: block;

    margin: 0 auto;

    }

  • How can I make my background image look like these?

    Hello, I'm using CS5 and I was hoping someone could help me make my photo horizons resemble pictures below. Any help would be greatly appreciated.

    tumblr_lq5jsnrY261qzqmo7o1_500.jpg

    You can:

    (1) shoot the subject on a colorful background prepared in advance, using a lens to give just the right depth of field to render sharp and the background blur.  A search of photos for the "photographic background" on Google turns up examples.

    (2) hide the background, that the subject is standing face-to-face, digitally put him in front of a digital background.  This thread might be instructive for you: http://forums.adobe.com/thread/899170?tstart=0

    My favorite video is piece of masking of the basics of Russell Brown (related to the above thread, but here is a direct link): http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/

    -Christmas

  • Make a background Image full screen

    Hello

    I took presentation in flash publish as .exe

    The document size is 1024 x 768

    I use this code for full screen

    fscommand ("fullscreen", "true");

    but my background img size 1024 x 500.

    so when I publish the movie, box up and down is the document background color fill color

    I want the background by bg img fill

    How can I do this?

    Help, please!

    Thank you

    Mandar

    use:

    Stage.scaleMode = "noBorder";

  • How to make your background Image of fixed Web Page

    Good afternoon.

    I'm working on a website that the owner would like to its background fixed when scrolling. He plans to have a large part of its content on a single page which people scrolled down to see. I placed the following in the body section on the index page html code:

    < body background = BG Properties 'Innerchild_Website_Background.jpg' = 'fixed' >

    I will create a model that will allow me to other pages. This is the right place to put the above command, or should I have put in the css document associated with the page. I want to assure you that I am moving properly.

    Here is the page:

    http://www.innerchildoutreach.org/new_site/index.html

    Thanks in advance for your comments.

    In your css add this

    {body

    background-position: fixed;

    }

    GAry

  • incongruous div background image?

    Here is the link to my test page:

    http://nandigital.com/test/about.html

    http://nandigital.com/test/include/style.CSS (I also comment on what makes every part of the css)

    I'm currently building a website from scratch, which consist of a difficulty of background image and the div background images 2 sit in the Middle (as html does not allow me to add more background in the body...).

    It has been tested last version of IE, firefox and chomre and on the different, all screen resolution correctly rendered.

    But as soon as I try to resize the window jumping of clutter and not solitary repetitive background work...

    12-04-2012 14-41-59.jpg

    Advice please help and thanks in advance. =)

    It seems that you are doing it correctly. The new

    to completely wrap the "outerContainer' (see below).

    Remove the bottom before the closing tag you don't need.

    Then, apply the repeating background:

    {#pageWrapper}

    Background: url (.. /images/Red-background.png);

    background-repeat: repeat-x;

    background-position: 100px 0; / * Use background-position to place the image to be * /.

    }

  • Difficulty in div background image

    Hello

    I did a lot of research on this subject and answers os tons were developed, yet, none has solved my problem so far.

    I'm doing the background image in a div that will be fixed when I scroll vertically.

    Have a model manufactured, in which the only editable div is the rightdiv. (in red, to be easier)

    Here is my code

    CSS

    {body
    margin-top: 0px;
    margin-bottom: 0px;
    background-position: Center;
    background-image: url (.. / Images/bgdr.jpg);
    background-repeat: no-repeat;
    }


    {#wrapper}
    height: 875px.
    Width: 1000px;
    margin-right: auto;
    left margin: auto;
    background-repeat: no-repeat;

    #header {}

    background-repeat: no-repeat;

    Clear: none;

    float: none;

    height: 214px;

    Width: 1000px;

    background-image: none;

    position: relative;

    padding-top: 10px;

    {#leftDiv}
    Clear: none;
    float: left;
    height: 500px;
    Width: 245px;
    position: relative;
    text-decoration: none;
    }

    {#rightDiv}
    Clear: none;
    float: right;
    height: 484px;
    Width: 755px;
    position: relative;
    overflow: auto;
    }

    #footer {}
    height: 100px;
    Width: 1000px;
    Clear: both;
    position: relative;
    padding-bottom: 20px;
    }

    And here is my HTML code

    <!-InstanceBeginEditable name = "RightDiv"->

    < div id = "rightDiv" style = "background-image: url(Images/informacao.png)" >

    < / div >

    <! - InstanceEndEditable - >

    Well, it's that on Internet Explorer 9, the background image repeats vertically when I scroll vertically. On Chrome it will stay fixed on parchment (and that's what I want).

    I tried to add style = "" background-attachment: fixed ", but that branding will match difficulty itself relatively to the entire page, not the div only." In addition, she repeats 4 times for oocupy the screen. I can solve that by "no-repeat", but it is always attached to the browser page, not of the div.

    I tried to solve this problem for days... Help would be very appreciated.

    Funny is that this only happens in IE9... Chrome works perfectly.

    After a little research, I found it's actually "mode of operation" in Internet Explorer, all versions. A fixed background image goes out the window of the browser for positioning.

    The work around is to place a div container around the div scrolling. Place the background image in this div without css positioning container or an attachment and turn off a background image or color in div scrolling.

    Something like that...

    your content here

  • DWCS4 behavior of the effects appear with DIV background image?

    Is it possible to use the effects appear on the background image in a DIV with the command 'OnLoad '. I want my banner to fade in (param) when the page is reached.
    It's the tag with that I want to use the above behavior:
    < div class = "dwBanner" > < / div >

    Thank you very much.
    www.dwdallam.com

    ...

Maybe you are looking for

  • AppleScriptObjC help button

    Hi all I found how to display a Help (help) in alerts using the setShowsHelp command. I want to display a short text in one simple window (another alert?) when this button is clicked. I'm good at Applescript but totally new to AppleScriptObjC.

  • In do not distrub, I allow checked calls from all contacts, but I always get unwanted calls from contacts not

    In do not distrub, I allow checked calls from all contacts, but I always get unwanted calls from contacts not

  • I can't remove a Location Bar Autocomplete entry

    When you try to follow the steps to remove an item from the location bar AutoComplete list, as shown here: http://support.Mozilla.org/en-us/KB/search-your-bookmarks-history-and-tabs-awesome-bar#w_removing-AutoComplete-results I encountered a problem

  • Why have I lost all my favorites sync on my computer?

    I came back to work on Monday and all my favorites have disappeared. Recently, synchronize bookmarks on the new computer with the old computer. Bookmarks have been synchronized successfully... then I erased everything on the old computer. Where are m

  • Oculus Rift and Mac?

    I want to order in advance a rift Oculus and I was looking at the page on the site on oculus ready PCs. Unfortunately, Macs are deprecated, even running Boot Camp. In addition, I need apparently a screen to run the Oculus Rift (even if the monitor is