Responsive Background Images with Media Queries

Hello,
I'm creating a mobile website in Dreamweaver and would like to use an image which will change with different device widths.  I'm using media queries with background images.  My problem is that in order for the background images to display, I need to assign a height to the div.  When the image is scaled down the height stays static, leaving white space beneath it.  There will be content below the image so the white space will push it down and look wrong.  Is there a way to use multiple images with media queries keeping the height responsive?  Thank you!
@media screen and (max-width: 1024px) {
#mainImage {
          background-image: url(../images/mainImageLarge.jpg);
          background-repeat: no-repeat;
          background-position: center top;
          background-size: 100%;
          height: 272px;
          border-top-width: 3px;
          border-top-style: solid;
          border-top-color: #FFF;
@media only screen and (max-width : 480px) {
#mainImage {
          background-image: url(../images/mainImageMed.jpg);
          background-repeat: no-repeat;
          background-position: center top;
          background-size: 100%;
          height: 107px;
          border-top-width: 3px;
          border-top-style: solid;
          border-top-color: #FFF;
@media only screen and (max-width : 320px) {
          #mainImage img {
          background-image: url(../images/mainImageSmall.jpg);
          background-repeat: no-repeat;
          background-position: center top;
          background-size: 100%;
          height: 150px;
          border-top-width: 3px;
          border-top-style: solid;
          border-top-color: #FFF;

Like this example:
http://alt-web.com/FluidGrid/Fluid-4.html
METHOD:
Insert 2 images -- one for desktops and one for mobile.  Assign classes to each image. 
<img id="banner" class="desktop" src="desktop_image.jgp" />
<img id="banner" class="mobile" src="mobile_image.jpg"/>
In your CSS, use display:none and display:block to show/hide.
.desktop {
    display:block;
.mobile {
    display:none;
/* Special Rules for mobiles */
@media only screen and (max-width: 480px) {
    .desktop {display:none}
    .mobile {display:block}
Feel free to set your break points however you wish.
Nancy O.

Similar Messages

  • Im trying to reorder divs when in the mobile version of my site, is it possible to do it with media queries?

    Im trying to reorder divs when in the mobile version of my site, is it possible to do it with media queries? Here is the layout in desktop view, red being what would be images. And when i rescale, the content stacks together to place two of the same boxes together, like so;
    Is it possible to apply a rule so when scaled the boxes reorder to show red, black, red, black, red, black?

    <div class="productcontainer3">
    <div class="product3"></div>
    </div>
    <div class="productcontainer4">
    <div class="product4"><h6>Manta Soledo</h6><p1>In here will be the Manta blurb! Not too much technical info, save that for product page. Make it sleek and elegant. </p1></div>
    </div>
    <div class="productcontainer1">
    <div class="product1"><h6>Manta Soledo</h6><p1> In here will be the Manta blurb! Not too much technical info, save that for product page. Make it sleek and elegant.</p1> </div>
    </div>
    <div class="productcontainer2">
    <div class="product2"></div>
    </div>
    <div class="productcontainer5">
    <div class="product5"></div>
    </div>
    <div class="productcontainer6">
    <div class="product6"><h6>Manta Soledo</h6><p1>In here will be the Manta blurb! Not too much technical info, save that for product page. Make it sleek and elegant. </p1></div>
    .productcontainer1 {
      float: left;
      clear: both;
      max-width: 604px;
      width: 49%;
      margin-right: 1%;
      margin-bottom: 4%;
      margin-top: 1%;
    @media all and (max-width: 600px) {
    .productcontainer1 {
      width: 100%;
    .productcontainer2 {
      float: left;
      max-width: 604px;
      width: 49%;
      margin-bottom: 4%;
      margin-top: 1%;
    @media all and (max-width: 600px) {
    .productcontainer2 {
      width: 100%;
    .productcontainer3 {
      float: left;
      clear: both;
      max-width: 604px;
      width: 49%;
      margin-right: 1%;
      margin-bottom: 4%;
    @media all and (max-width: 600px) {
    .productcontainer3 {
      width: 100%;
    .productcontainer4 {
      float: left;
      max-width: 604px;
      width: 49%;
      margin-bottom: 4%;
    @media all and (max-width: 600px) {
    .productcontainer4 {
      width: 100%;
    .productcontainer5 {
      float: left;
      clear: both;
      max-width: 604px;
      width: 49%;
      margin-right: 1%;
    @media all and (max-width: 600px) {
    .productcontainer5 {
      width: 100%;
    .productcontainer6 {
      float: left;
      max-width: 604px;
      width: 49%;
    @media all and (max-width: 600px) {
    .productcontainer6 {
      width: 100%;
    .product1 {
      Width: 100%;
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;
    .product2:hover {
      background-image:url(../Graphics/iMod-rollover.jpg);
    .product2 {
      Width: 100%;
      background-image:url(../Graphics/iModindex.jpg);
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;
      -webkit-transition: background-image .8s ease-in-out;
      -moz-transition: background-image .8s ease-in-out;
      -ms-transition: background-image .8s ease-in-out;
      -o-transition: background-image .8s ease-in-out;
      transition: background-image .8s ease-in-out;
    .product3 {
      Width: 100%;
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;
      background-image:url(../Graphics/Ilanoindex.jpg);
      -webkit-transition: background-image .8s ease-in-out;
      -moz-transition: background-image .8s ease-in-out;
      -ms-transition: background-image .8s ease-in-out;
      -o-transition: background-image .8s ease-in-out;
      transition: background-image .8s ease-in-out;
    .product4 {
      Width: 100%;
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;
    .product3:hover {
      background-image:url(../Graphics/Ilano-rollover.jpg);
    .product5 {
      Width: 100%;
      background-image:url(../Graphics/Soledoindex.jpg);
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;
      -webkit-transition: background-image .8s ease-in-out;
      -moz-transition: background-image .8s ease-in-out;
      -ms-transition: background-image .8s ease-in-out;
      -o-transition: background-image .8s ease-in-out;
      transition: background-image .8s ease-in-out;
    .product5:hover {
      background-image: url(../Graphics/Soledorollover.jpg);
    .product6 {
      Width: 100%;
      padding-bottom: 50%;
      float: left;
      background-position: center;
        background-size: cover;
        background-repeat: none;

  • Trying to matte a background image with a PNG with transparency / partial transparency

    Hello everyone.
    Here is the scenario;
    I have a PNG sequence rendered from a 3d program. The sequence includes a landscape that is partially transparent and has no background image or color. In the animation, anything that is not the landscape is 100% transparent, while the landscape is partially transparent.
    I have a background that I want to put behind the PNG sequence but I don't want the background to be visible through the landscape portion of the sequence, only the portion that is 100% transparent.
    I have tried several different methods, but because the landscape is partially transparent, using a track matte (alpha or alpha inverted) or blend mode (like stencil alpha) does not give me the results I am looking for.
    What I am looking for is a way to matte (or mask) the background image with only the portion of the PNG that is 100% transparent. That way, the background image will not show through the semi-transparent landscape, but will be visible in the portion that is 100% transparent.
    I would like to find a reasonable solution in After Effects as opposed to re-rendering the 3d sequence with the objects being unseen by the camera and the background present. The landscape scene itself took a considerable amount of time to render (120+ hours) and I would like to avoid that kind of delay in my project.
    I thank you all in advance for your consideration.

    The footage itself is fine, Dave. The 3d application is rendering exactly what it is supposed to render; a semi-transparent landscape on a transparent background, rendered out to 32 bit PNGs.
    When I view the frames in Photoshop, they are exactly what I wanted. In the final composition, there are other image elements and pre-rendered objects provided by the client that need to be visible beneath the "ground" and "water", which is why I rendered the landscape as semi-transparent. Normally, I would render with a color background for compositing, but using a color background in this case was tinting the semi-transparent landscape.
    I think my track mattes are failing because the images are made up of varying degrees of alpha.
    Going back to the 3d application, the only option there would be to re-render a pure alpha pass of the animation. I can test the render time per frame, but I was hoping that there would be an easier solution... the initial landscape animation took 70+ hours to render, using 32 cores and 24 gb of RAM. The pure alpha render shouldn't take anywhere near that long, BUT, if it did, that would not be feasible on my current schedule.
    I did find another possible solution by creating a recorded script to batch convert luma images from the PNGs. If the alpha pass proves unworkable, I can always fall back to batching the luma images and using stencil luma.
    Thanks for helping me further think this out!

  • Background images with spry "horizontal menu"

    hi again
    I am trying to work with the spry: "horizontal menu"
    I want to put some background images into the menu bar not into the submenu
    and that is the problem: the background images appears overall
    what can I do ?
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Unbenanntes Dokument</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #container {
         margin-right: auto;
         margin-left: auto;
         width: 400px;
    -->
    </style>
    </head>
    <body>
    <div id="container">Raum für den Inhalt von  id "container"
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="#">Element 1</a>  </li>
    <li><a class="MenuBarItemSubmenu" href="#">Element 3</a>
        <ul>
          <li><a href="#" class="MenuBarHorizontal">heija</a>      </li>
          <li><a href="#">soso</a></li>
    </ul>
      </li>
      <li><a href="#">Element 4</a></li>
    </ul>
    <p>  </p>
    <p> </p>
    <p> </p>
    <p> </p>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    and css
    ul.MenuBarHorizontal
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         cursor: default;
         width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
         z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         position: relative;
         text-align: center;
         cursor: pointer;
         width: 100px;
         float: left;
         height: 10px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         z-index: 1020;
         cursor: default;
         width: 100px;
         position: absolute;
         left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
         left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
         width: 100px;
         height: 30px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
         position: absolute;
         margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
         left: auto;
         top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
         border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
         display: block;
         cursor: pointer;
         background-color: #FEF3E4;
         padding: 0.5em 0.75em;
         color: #FFF;
         text-decoration: none;
         background-repeat: no-repeat;
         background-image: url(../rot.jpg);
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
         color: #FF0;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
         background-color: #FEF3E4;
         color: #FF0;
         background-image: url(../rot.jpg);
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
         background-color: #FEF3E4;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
         background-color: #0F9;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
         background-color: #FEF3E4;
         color: #FF0;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
         background-color: #F99;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
         position: absolute;
         z-index: 1010;
         filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
         ul.MenuBarHorizontal li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;

    Complete page and css code below (scroll down)
    All you should be concerned with at this moment to get the background image to appear in the top level anchor is the css style below:
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-color: #000;
    background-image: url(../rot.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    I've added the background-postion because presumably you want it to appear flush left. This overides the out-of-the-box setting which positions it 95% far left.
    Here is the code and css:
    <!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=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Unbenanntes Dokument</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <head>
    <style type="text/css">
    <!--
    #container {
         margin-right: auto;
         margin-left: auto;
         width: 400px;
    -->
    </style>
    <style>
    ul.MenuBarHorizontal
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         cursor: default;
         width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
         z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         position: relative;
         text-align: center;
         cursor: pointer;
         width: 100px;
         float: left;
         height: 10px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         z-index: 1020;
         cursor: default;
         width: 100px;
         position: absolute;
         left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
         left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
         width: 100px;
         height: 30px;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
         position: absolute;
         margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
         left: auto;
         top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
         border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
         display: block;
         cursor: pointer;
         background-color: #FEF3E4;
         padding: 0.5em 0.75em;
         color: #FFF;
         text-decoration: none;
         background-repeat: no-repeat;
         background-image: url(../rot.jpg);
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
         color: #FF0;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
         background-color: #FEF3E4;
         color: #FF0;
         background-image: url(../rot.jpg);
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    background-color: #000;
    background-image: url(../rot.jpg);
    background-repeat: no-repeat;
    background-position: left top;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
         background-color: #0F9;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
         background-color: #FEF3E4;
         color: #FF0;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
         background-color: #F99;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
         position: absolute;
         z-index: 1010;
         filter:alpha(opacity:0.1);
    </style>
    </head>
    <body>
    <div id="container">Raum für den Inhalt von  id "container"
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="#">Element 1</a>  </li>
    <li><a class="MenuBarItemSubmenu" href="#">Element 3</a>
        <ul>
          <li><a href="#" class="MenuBarHorizontal">heija</a>      </li>
          <li><a href="#">soso</a></li>
    </ul>
      </li>
      <li><a href="#">Element 4</a></li>
    </ul>
    <p>  </p>
    <p> </p>
    <p> </p>
    <p> </p>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • Adding a background image with HTML?

    Just a quick one. Want to add a background image to the html
    of a flash site so the background image can scale and the content
    of the flash site not scale. Any ideas anyone??
    Thanks all!

    satrop wrote:
    > Just a quick one. Want to add a background image to the
    html of a flash site so the background image can scale and the
    content of the flash site not scale. Any ideas anyone??
    You can place the image in flash. Flash has onResize handler
    which in conjunction with
    listener, can detect the changes in stage, scale movie to
    fill the window while preventing
    other content from scaling. This is very common, when we
    resize background to fill window
    but hold the content intact. Try to search the forum for
    "onResize". That's the only case,
    in most posts, where we deal with the exact same issue as the
    one you looking for.
    Best Regards
    Urami
    "Eat one live toad in the morning and nothing worse will
    happen to you for the rest of the day."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Random background-image with PHP

    I would like to have random images as background-images on a
    page. So I
    made a rotate.php ("SELECT picsid, picsurl FROM pics WHERE
    picsite =
    'home' ORDER BY MD5(RAND()) limit 1") with
    <img src="<?php echo $row_rsimages['picsurl']; ?>"
    alt="" />
    Then I put the following rule into the css-file:
    #pics {
    width: 400px;
    height: 200px;
    background-color: #fff;
    background-image: url(banner.php);
    background-repeat: no-repeat;
    background-position: top left;
    Finally I inserted a div called #pics on the index.php and
    previewed the
    page, and - you are right ;) - the images are not displayed.
    Where have I failed?
    Martin Lang

    Martin Lang wrote:
    > I would like to have random images as background-images
    on a page. So I
    > made a rotate.php
    > background-image: url(banner.php);
    > Where have I failed?
    In several places.
    1. Presumably banner.php is the page that you earlier refer
    to as
    rotate.php. The name should be the same.
    2. It looks as though you're trying to use an <img> tag
    to display a
    background image. That won't work.
    3. If you want banner.php to display an image, you need to
    send the
    correct MIME header and stream the image as a download.
    // code to select the image
    $filepath = '/home/mysite/htdocs/images/'; // path to image
    folder
    $image = $filepath.$row_rsimages['picsurl'];
    if (file_exists($image) && is_readable($image)) {
    $size = filesize($image);
    header('Content-type: image/jpeg');
    header('Content-length: '.$size);
    $file = @fopen($image, 'rb');
    if ($file) {
    fpassthru($file);
    It's actually a lot simpler to do everything in the same
    page.
    Put the recordset at the top of the page to select the random
    image.
    Then put the style block in the head of the document:
    <style type="text/css">
    #pics {
    width: 400px;
    height: 200px;
    background-color: #fff;
    background-image: url(<?php echo $row_rsimages['picsurl'];
    ?>);
    background-repeat: no-repeat;
    background-position: top left;
    </style>
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dynamically swap background image with mouseover

    Hello, I need some help with this menu file. My inspiration was a post of Resdesign.
    I want to make a rollover that swap the background image for each button.
    I tried a lot of methods but I cant find the solution (please check line 111).
    Here is my file:
    WeTransfer
    Thanks a lot!
    alex from argentina

    Thanks Preran for your answer but I can´t find the way to implement the solution in that post.
    I tried this:
    // mouseover swap background
    sym.$('#newBtn'+i).mouseover(function(){
      sym.$("#newBtn"+i).css({'background-image':'url("images/fover.jpg")'});
      //sym.getSymbol("#newBtn"+i).$('background').attr('src',info[i].backo);
    Thanks!

  • Very large responsive background images

    Just a quick question with these - for example the page here:
    http://www.destinationsshow.com/
    Not so much the CSS, but the knack to get such a large image that isn't too big in terms of file size, but still retains pretty good quality when very large?
    Also, I noticed on that example the original image is actually made up of two copies of the image with one mirrored vertically.
    You can see what I mean here:
    http://www.destinationsshow.com/images/splash_2014_bg.jpg
    Is that significant?
    Thanks for any pointers.

    Your example uses two different background images
    The mobile one is 18 KB
    420px × 667px.
    The desktop one is much bigger, 198 KB
    2,000px × 2,666px
    In my example below,  140 KB
    900px × 675px.
    http://alt-web.com/TEST/Resizable-BG.shtml
    Nancy O.

  • Background image with Crystal Report 2008

    Hi,
       I have to develop an invoice report with a background image on the full page.
    I have already develop some trying but i have not the right result:
    1) Background image in page header
    2) Create 2 different sections: one for the image and one with labels and data
    3) Background image in report header
    4) Background image in report footer
    In all of my tests  in Report > Section Expert, I check Underlay Following Sections on the Common tab
    but never the image was printed in background respect of the different sctions.
    I always got the image and then the rest of the report
    Can you help me please?
    Thank you for your attention
    Bye
    Edited by: EDPTEAM on Aug 30, 2011 5:52 PM

    Hello Brian.
    Thanks for you answer.
    I do just like you say but i have the same problem.
    My report is like an invoice: i have an header, a body with a group and 2 sections and a footer.
    All the pages of my report must be printed on a background image (A4 format).
    This is the problem.
    If i create a report with image in a single section all is ok. But in my report if i use a small image, the image is printed and hide columns separator (simple vertical lines) and show data but the following sections lose their right position.
    If I use the original image (A4 format) CR return the following error:
    header or footer too large for the page
    o similar word (I translate from italian to english because I am working with italian version).
    Do you have other solutions?
    Thank you wery much.
    Best regards

  • Macbook pro crashes and goes to the background image with no access to dock etc..

    Macbook Pro Early 2011 version, running Lion OSX, crashes randomly and goes to the background image. the dock is not accesible nor are any other options, I have to hold down power to restart. I have found that a lot of my applications have started to crash especially iphoto, itunes and safari. Ive repaired permissions deleted anti virus software which i thought was slowing the computer down. Any help would be appreciated..

    I suggest you post this issue on the iTunes forum.  You will have an audience that is oriented specifically towards this application.
    Ciao.

  • Why do I not see the background image with html5 boilerplate

    hello,
    I downloaded the html5 boilerplate
    And in the main.css I made this :
    body {
        font: 16px/26px Helvetica, Helvetica Neue, Arial;
        background-image: url(../img/background.jpg)
    and also in the normalize.css I set this :
    body {
        margin: 0;
        background-image: url(../img/background.jpg)
    But in IE10 I still do not see the background image.
    Can anyone tell me what I did wrong ?
    Roelof

    Hello
    You need to run your VI once. Wire the Select Signals express VI to your DAQ Assistant and run the VI once (this allows the signal names to propegate).
    Check this forum:
    select signals
    Regards

  • Set my background image with right click?

    Is there a way to set a picture as my desktop background without looking through tiny pictures in system prefs? I just want the right click feature. The only way this works is if you right click a picture ONLINE, but this doesnt work in my pictures folder...

    You can always drag a picture from your folder into Safari, then right click and select "Use Image as Desktop Picture"--might hit a snag though with some things in portrait orientation, they can display in landscape.
    Another option is make an Automator action, save it as a plug-in for Finder. You then right click, go to More, Automator, and select your action and get the new Desktop.
    Francine
    Francine
    Schwieder

  • XFCE: background-image with gradient displays incorrect

    If I use a desktop-backgroundimage with a gradient, XFCE doesn't display it correct. It looks like if it uses 16bit color depth instead of 24bit. But I can't find anything to check which color depth it uses.
    If I open the same image in GIMP, GIMP displays the gradient as it should. It also works in GNOME.
    Part of a screenshot in XFCE:
    Part of a screenshot in GNOME:
    How to fix this?

    Yep i have the same problem here ?
    whats up with it? ANyone?

  • Need help with media queries

    Ok most of my attempts have been successful. BUT I have one problem.
    I would like Column 1 (Site Links and Column 3 (Exclusive Articles) to Hide when the page is at max-width 500 pixels. I have no idea how to make a CSS sheet remove HTML coding, which is why I came here to ask. Important Note: Coding to remove are highlighted in Red.
    Html Coding of Footer:
    <footer>
          <h2 class="hidden">Our footer</h2>
          <section id="copyright">
            <h3 class="hidden">Copyright notice</h3>
            <div class="wrapper">
              <div class="social"> <a href="index.html"><img src="img/G.png" alt="G" width="25"/></a> <a href="index.html"><img src="img/U.png" alt="U" width="25"/></a> <a href="index.html"><img src="img/I.png" alt="I" width="25"/></a> <a href="index.html"><img src="img/D.png" alt="D" width="25"/></a> <a href="index.html"><img src="img/E.png" alt="E" width="25"/></a> <a href="index.html"><img src="img/S.png" alt="S" width="25"/></a> </div>
              &copy; Copyright 2014 by Expertpcguides.com. All Rights Reserved. </div>
          </section>
          <section class="wrapper">
            <h3 class="hidden">Footer content</h3>
            <article class="column">
              <h4>Site Links</h4>
                <div id="class2">
                  <p><a href="web-contributors.html" class="style10">Developers/Contributors</a></p>
                </div>
                <div id="class2">
                  <p><a href="create-a-page.html" class="style10">Create a page</a></p>
              </div>
              <div id="class2">
                <p><a href="point-system.html" class="style10">Rewards System</a></p>
              </div>
              <div id="class2">
                <p><a href="privacy" class="style10">Privacy</a></p>
              </div>
            </article>
            <article class="column midlist2">
              <h4 class="style4">Follow Us</h4>
              <ul class="style4">
    <li>
      <div id="class2">
                  <p><a href="javascript:void(0)"><img src="img/Facebook logo.png" alt="Twitter Image" width="30" height="33"/></a><a href="https://www.facebook.com/expertpcguides" class="style18"> Facebook</a></p>
    </div></li>
    <li class="style10">
      <div id="class2">
                  <p><a href="javascript:void(0)"><img src="img/Twitter Logo.jpg" alt="Twitter Image" width="30" height="33"/></a><a href="https://twitter.com/ExpertPcGuides" class="style18"> Twitter</a></p>
              </div>
    </li>
    <li class="style10">
      <div id="class3">
        <p><a href="javascript:void(0)"><img src="img/Google+ Logo.jpg" alt="Google + Image" width="30" height="33"/></a><a href="https://plus.google.com/115474035983654843441" class="style18"> Google Plus</a></p>
      </div>
    </li>
    <li class="style10">
      <div id="class4">
        <p><a href="javascript:void(0)"><img src="img/Pininterest Logo.png" alt="Google + Image" width="30" height="32"/></a><a href="http://www.pinterest.com/expertpcguides/" class="style18"> Pininterest</a></p>
      </div>
    </li>
              </ul>
            </article>
            <article class="column rightlist">
              <h4 class="style4">Interested in Exclusive Articles?</h4>
                <div id="class2">
                  <p><a href="login.html" class="style10">All you need to do is login/register</a></p>
                </div>
            </article>
          </section>
    <section class="wrapper"></section>
            </footer>
    CSS Stylesheet Snapshot of the coding:
    @media (max-width: 500px)
        #four_columns
                    width: 500px;
      display:none;

    Add a class of 'hide' to the Site Links <article> tag as below:
    <article class="column hide">
    <h4>Site Links</h4>
    You already have a class of 'rightlist' for the Interested in Exclusive Articles? <article> tag so we'll use that.
    <article class="column rightlist">
    <h4 class="style4">Interested in Exclusive Articles?</h4>
    Add this media query to your css styles:
    <style>
    @media screen and (max-width: 500px) {
    .hide, .rightlist {
    display: none;
    </style>

  • Lock screen shows blurred background image with Safari run and volume controls

    The normally sharp image in the lock screen is blurred. Run and volume controls for Safari are displayed at the top of the screen - volume slider moves, play button has no effect. I do not know how to return the screen to normal appearance. Wallpaper settings show normal image. There are no active movies or videos running.

    OK, I returned to the settings for Wallpaper and Brightness and selected a different Wallpaper - the problem went away. The cause may be that the specific wallpaper I had been using is no longer present for selection.
    John

Maybe you are looking for

  • Report Server Internal Error

    While using 9iAS Report Server, we encounter HTTP500: Internal Server Error problem. Looking into the Apache error_log, we found the following error:- [Tue Oct  9 19:29:58 2001] [error] [client 128.1.0.1] Premature end of script headers: /export/home

  • PL?SQL block for string concatenation

    Hi, I have written the following procedure for concatenating the strings from different tables. This is working fine if I run this is SQL commands. But If I put the same in HTMLDB report region, I am getting error "Query cannot be parsed within the B

  • Lexical Parameter in Oracle Reports . . .

    Hi all, I am trying to pass a value to a query in oracle reports . . . the use of the parameter is to add 2 additional columns to an existing query, if a bind parameter is set to 'Yes' else the parameter carries a value NULL; Here is the code I have

  • E65 Buttons not working, phone locking up.

    So this afternoon all of a sudden I couldn't make any calls, the send and end buttons are making the phone beep but that's about it. Turned it off and on a few times. It worked to make one call then did it again. So then I tried making a call by sele

  • Placing buttons in several pdf files

    I have about 150 pdf documents and i want to place a button "Previous View" in all documents. Is it possible to do this in a batch file action (with the action wizard?) and NOT in a single file action? Acrobat X 10.1.4 Thanks acronautiker