Centering Image Horizontally within Div Layer

I've placed an image inside a div layer. The div layer is 200 pixels wide by 200 pixels high. My image is 480 pixels x 720 pixels. So the layer is smaller than the image. How do I center the image horizontally within my div layer? I've applied a css rule on the layer as followed:
#pictureframe {
position:absolute;
width:200px;
height:200px;
overflow: hidden;
text-align: center;
vertical-align: middle;
display: inline-block;
Because the image is larger than the div layer the image doesn't want to center horizontally. It seem to justify itself on the left side of the div layer even though I've applied a text-align: center on it. Any suggestions.

Make your division at least as wide as your image.  Height of divisions should always be determined by content inside it.  If you impose a height limit on your division, increased content or text size will fail, causing content to be hidden.  If required to display a background-image, use the min-height property.
APDivs as a primary layout method seldom works well. Here is why:
http://apptools.com/examples/pagelayout101.php
Also, APDivs cannot be centered as they are removed from the normal page flow. You might try wrapping an APDiv inside a relatively positioned parent container, but without seeing your page (entire code), it's impossible to say for sure if this will work for you.
See Centering Pages, Images and other elements with CSS
http://cookbooks.adobe.com/post_Centering_web_pages_and_other_elements_with_CSS-16640.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Can't Get Images to Line Up Horizontally Within Div

    I'm making a Fluid Grid Layout webpage. The bottom div contains 4 square images in a horizontal line. In the mobile mode, I want these 4 images to remain in a horizontal line and shrink to fit. I tried Block - Display - Inline-Block and I tried Block - Whitespace - nowrap, but neither works. The images just wrap themselves below one another without shrinking in size. They only shrink when I drag the entire page horizontally to less than the width of any one image.
    This is the page:
    http://savcp.com/index-fluid-12.html

    Have a look at my version:
            *, *:before, *:after {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
            #awards {
                margin: 0 auto;
                padding-bottom: 4%;
                vertical-align: top;
                width: 60%;
            .columns {
                float: left;
            .four {
                width: 25%;
            .columns img {
                display: block;
                width: 100%;
                padding: 10px;
         <div id="awards" class="clearfix">
            <div class="four columns">
                <img alt="Manhattan Bride" src="placeholder.png">
            </div>
            <div class="four columns">
                <img alt="The Knot" src="placeholder.png">
            </div>
            <div class="four columns">
                <a href="pressrelease-01.html">
                    <img alt="Bride's Choice" src="placeholder.png">
                </a>
            </div>
            <div class="four columns">
                <a href="http://www.mitzvahmarket.com/mitzvah-ideas/misc/dancejock-productions-present-madisons-squ are-garden/">
                    <img alt="Mitzvah Market" src="placeholder.png">
                </a>
            </div>
        </div>
    This works - set the width of the #awards container to a percentage that works for you. You may want to add a max-width and min-width in em/px to limit the fluid design somewhat.
    This would also work on the "how we met" page.
    Al Sparber is correct in saying you should unfloat those divs when the screen size becomes too narrow to accomodate those four columns.
    And a couple of other tips/suggestions:
    - #awards: remove clear:both (apply clearfix instead); remove display:block (a div is by default a block level tag already); remove float:left; (no need to float this to the left); remove margin-left:0 (a div by default already is set to a margin of 0 on all sides); and remove the width:100% (all block level tags by default go as wide as they can, so again no need for 100% width)
    - you have three rules with mostly identical properties set for the #awards div. Clean this up, and define only one id selector.
    - same for all the other main layout elements: three rule definitions for each! Think DryCSS (Don't Repeat Yourself). And only apply css properties that actually change the default behaviour of an element.
    - remove the float:left, clear:both and display:block from all those layout divs as well. Why would you add these to your main layout elements?
    - only apply a clearfix to parent layout elements that contain floated child elements.
    - when the pagecontainer div is set to a width, do not add 100% width to the child layout elements. Not required.
    - most of your image elements are missing the alt attribute. You should add those (otherwise the html will not validate).
    - structure your menu with an unordered list
    - The non-flash version of the image slideshow uses the gif image format. Unless you mean to add an animated gif Instead either use jpg or png. Many reasons for this - google it. And do not use Photoshop's limited save for web function to optimize your pngs. In my opinion, use other tools for both jpg and png (Color Quantizer, anyone?). Saves a LOT of bandwidth.

  • Centering a Horizontal CSS only, jQuery, or Spry navigation bar within a Div

    Hello all.  I need a solution for centering a horizontal style nav bar whether it be css only, jQuery or Spry based.  I've been trying to use widgets from the adobe widget browser or other ones I've been able to find online.  I have been able to get the graphic that goes behind the links to span the entire width of the Div, but I can't move the actual links to the center of the screen and get it to stay in the middle like the rest of the elements do when you resize the page.  The links always stay anchored to the left side of the page.  I've been able to move them all the way to the right side of the page through a certain css change, but that is not what I'm looking for.  Do I need to resize the Div, or add a div within the div?  Do I need to split the horizontal width of the single div into three div's and put the nav bar into the middle one?  If that is the solution, how do I add the div's next to each other, I tried  adding a div within the div, but nothing really appears to show up, so that must essentially be a wrong way of going about it.
    Well anyways, I need some advice, somebody please lead me in the right direction on how to get this right.  In the div above the one I'm trying to make this happen in, I have a flash object and it just centers itself perfectly with the div and moves with the rest of the page fluidly when you resize.  And the same goes for a div right above that which contains the company logo.
    Thanks for help in advance.

    This is what I mean by the dotted lines not lining up evenly at the ends.
    Here is the source code for the page, followed by the 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 name="description" content="Common Wealth Web Solutions: Web Development, Graphic Design, Media Consultant, Community Engagement" />
    <meta name="keywords" content="Common,Wealth,Web,Solution,Design,Graphic,Development,Interactivity,services,fla sh,php,javascript,ajax,professional,Caleb Wright, Peter Wallis,artist,video,multimedia,production,search engine optimization,SEO,video production design" />
    <meta http-equiv="Content-Type" content="text
    /html; charset=UTF-8" />
    <title>Common Wealth Web Solutions: Web Development, Graphic Design, Media Consultation, Community Engagement</title>
    <link href="stylesMain.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="PNGfix.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <style type="text/css">
    #hornav ul li { padding: 0 0 0 10px; }
    </style>
    <![endif]-->
    <!--[if lte IE 6]>
    <style type="text/css">
    #wrapper-body, #wrapper-1, #wrapper-2, #wrapper-3 { height: 1%; }
    </style>
    <![endif]-->
    <script type="text/javascript" src="scripts.js"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <style type="text/css">
    #apDiv1 {
        position:absolute;
        width:1844px;
        height:43px;
        z-index:1;
        left: 64px;
        top: 253px;
    body {
        background-color: #FFF;
    </style>
    <link href="SpryAssets/SpryAccordion_flexible.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    a:link {
        color: #00F;
    </style>
    <style type="text/css">
    #menu {
    width: 700px;
    margin: 0 auto;
    #menu ul {
    padding: 0;
    margin: 0;
    text-align:center;
    list-style:none
    #menu li{
    padding: 0;
    margin: 0;
    display:inline;
    margin-right: -2px;
    #menu a {
    background-color:#66F;
    padding: 6px 15px;
    color: #fff;
    text-decoration: none;
    #menu a:hover {
    background-color:#39C;
    </style>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-5']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3119473-6']);
      _gaq.push(['_setDomainName', 'none']);
      _gaq.push(['_setAllowLinker', true]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <link href="CSSOnlyMenu4/css/menu4.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2141545: #OAWidget */
    #menu4 ul {
        font-family: Verdana, Geneva, sans-serif;
        font-size: 30px;
        letter-spacing: -3px;
        border-top:5px dotted #003399;
        border-bottom:5px dotted #003399;
        margin:20px;
    #menu4 ul li a{
        color: #003399;
        padding: 10px 5px 10px 10px;
        width: 170px;
    #menu4 ul li a:hover span.title{
        color:#00adef;
    #menu4 ul li a span.text{
        font-family: Georgia, serif;
        font-size: 13px;
        color:#c7e7f3;
    /* EndOAWidget_Instance_2141545 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141545" binding="#OAWidget" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div id="wrapper-body">
      <div id="wrapper-1">
        <div id="branding">
          <h1>
          <div>
            <p><img src="images/lorentzpaintinglogo_cropped2.png" width="317" height="110" alt="Lorenz Painting Co." longdesc="http://www.lorenzpainting.com" /></p></div>
          <div id="flash">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="250" id="FlashID" title="Lorenz Painting Co Flash Widget">
            <param name="movie" value="LorentzBanner.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="LorentzBanner.swf" width="700" height="250">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                </div>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
          </h1>
    <div>
      <div id="menu4">
        <ul>
          <li><a href=""> <span class="title">Home</span> <span class="text">Why us?</span> </a> </li>
          <li><a href="">Services<span class="text">What we do</span> </a> </li>
          <li><a href=""> <span class="title">Testimonials</span> <span class="text">What they say</span> </a> </li>
          <li><a href=""> <span class="title">Contact</span> <span class="text">How to get in touch</span> </a> </li>
        </ul>
    </div>
    <p> </p>
      <p> </p>
      <p> </p>
    </div>
          <div></div>
        </div>
        <div id="wrapper-2">
          <div id="content-top" class="png"></div>
          <div id="wrapper-3">
            <div id="content-1">
              <div class="content-wrap">
                <p>Home</p>
                <p>Contact</p>
              </div>
            </div>
            <div id="content-2">
              <div class="content-wrap">
    stuff
    <p> </p>
              </div>
            </div>
            <div id="content-bottom"></div>
          </div>
          <div id="footer">
            <p><strong>Lorentz Painting Co., 2011</strong><strong></strong></p>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    jQuery("#jQueryUIAccordion").accordion({
            event: "click",
            collapsible: false,
            autoHeight: true
    </script>
    </body>
    </html>
    Be forewarned, there are a bunch of rules in here that don't apply to anything anymore, as it's from a recycled rules from another site I built.  Sorry.
    I will first put the CSS for the main style sheet, and I will put the CSS for the Horizontal Nav Bar in after.
    CSS:
    Main style sheet:
    @charset "UTF-8";
    body
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 1.2em;
        color: #6B6B6B;
        background: #8D927C url(images/bg_body.jpg) repeat-x;
        margin: 0;
        padding: 0;
        min-width: 800px;
        text-align: center;
        background-color: #000;
    h2, h3, h4
        font-size: 16pt;
        font-weight: normal;
        margin: 15px 0 0 0;
    #wrapper-3 p
        padding: 0;
        line-height: 1.35em;
        margin-top: 8px;
        margin-right: 0;
        margin-bottom: 8px;
        margin-left: 0;
    #wrapper-3 ul
        list-style-type: none;
        margin: 8px 0;
        padding: 0;
    #branding
        margin: 0 0 0 0;
    @Generic anchor (link) styles
    a:link, a:visited
        color: #4f4f3f;
    a:hover, a:active
        color: #000000;
    @Inline image styles
    img.float-left
        float: left;
        margin: 0 6px 6px 0;
    img.float-right
        float: right;
        margin: 0 0 6px 6px;
    img.border
        background: #FFF;
        padding: 2px;
        border: 1px solid #999;
    @Tab navbar styles
    #hornav ul
        margin: 0;
        list-style-type: none;
        line-height: normal;
        padding: 0;
        text-align: center;
        margin-bottom: 60px;
        font-size: 0.8em;
        text-transform: uppercase;
    #hornav ul li
        display: inline;
        margin: 0 2px 0 0;
        padding: 3px 0 3px 10px;
    #wrapper-body #wrapper-1 #hornav ul li a br {
        height: 400px;
    #hornav ul li a
        text-decoration: none;
        margin: 0;
        background-repeat: inherit;
        background-position: center center;
        padding-top: 50%;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
    #hornav ul li a:link, #hornav ul li a:visited
        color: #3e3f2f;
    #hornav ul li a:hover, #hornav ul li a:active
        color: #000000;
    @Secondary navigation styles
    #navcontainer
        background: transparent url(images/bg_navlist-top.jpg) no-repeat top center;
        margin: 0;
        padding: 12px 0 0 0;
    #navcontainer ul
        margin: 0;
        list-style-type: none;
        line-height: normal;
        padding: 0 0 12px 0;
        border-top: 1px solid #FFF;
        background: transparent url(images/bg_navlist-bottom.jpg) no-repeat bottom center;
    #navcontainer a
        display: block;
        padding: 3px 6px;
        width: 168px;
        margin: 0 10px;
        background-color: #c4bfac;
        border-bottom: 1px solid #FFF;
    #navcontainer a:link, #navlist a:visited
        color: #FFF;
        text-decoration: none;
    #navcontainer a:hover
        background-color: #90937e;
        color: #FFF;
    @Masthead text styles
    #branding
        margin: 0;
        padding: 0;
    #branding h1
        color: #000;
        padding: 10px 0 0px 0;
        border-top: 4px solid #656e5d;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.3em;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 28px;
        font-style: normal;
        line-height: normal;
        font-weight: normal;
        font-variant: normal;
        margin: 0;
    @Layout styles
    #wrapper-body
        background: transparent url(images/bg_wrapper-body.jpg) no-repeat top right;
        width: inherit;
        margin: 0;
        padding: 0;
    #wrapper-1
        width: auto;
        background: transparent url(images/bg_wrapper-1.jpg) no-repeat;
        margin: 0;
        padding: 0;
    #wrapper-2
        width: 45em;
        text-align: center;
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
    #wrapper-3
        background: url(images/bg_wrapper-3.jpg) repeat-y;
        color: #333;
        text-align: left;
    #content-top
        margin: 0;
        height: 1em;
        background: url(images/bg_content-top.jpg) no-repeat;
        font-size: 0;
        line-height: 0;
    #content-1
        float: left;
        width: 12em;
        font-size: 0.9em;
        padding: 0;
        margin-top: 2em;
        margin-right: 2em;
        margin-bottom: 0em;
        margin-left: 0em;
    #content-2
        float: left;
        width: 40em;
        padding: 0;
        font-size: 0.8em;
        margin-top: 2em;
        margin-right: 0px;
        margin-bottom: 0em;
        margin-left: 0em;
    #content-3
        float: left;
        width: 250px;
        font-size: 10pt;
        margin: 0;
        padding: 0;
    #content-4 {
        width: 190px;
        padding: 0px;
        line-height: 0px;
    #content-bottom
        clear: both;
        height: 1em;
        background: url(images/bg_content-bottom.jpg) no-repeat;
        font-size: 0;
        line-height: 0;
    .content-wrap
        margin: 0;
        padding-top: 0px;
        padding-right: 2em;
        padding-bottom: 5px;
        padding-left: 0px;
    #footer p
        font-size: .75em;
        margin: 12px 0;
    p.content-wrap {
        font-size: 9pt;
        color: #999;
    @Blog post styles
    .date
        float: left;
        height: 52px;
        width: 52px;
        background: url(images/date.png) no-repeat;
        margin-right: 10px;
        padding-top: 0px;
        line-height: normal;
    .date .month
        display: block;
        text-align: center;
        color: #FFF;
        font-size: 11px;
        padding-top: 4px;
        text-transform: uppercase;
    .date .day
        display: block;
        text-align: center;
        padding-top: 5px;
        color: #222;
        font-size: 18px;
        font-weight: bold;
    .meta
        display: block;
        font-size: 11px;
        color: #666;
        clear: right;
    .blog-entry
        clear: both;
        padding-top: 2px;
    #searchform
        margin: 8px 0;
        padding: 0;
    @Search form styles
    #searchform fieldset
        margin: 0;
        padding: 0;
        border: 0;
    #searchform label
        color: #999;
        display: none;
    #searchform input
        width: 160px;
        color: #222;
    #searchform #submitquery
        display: none;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap p {
        line-height: 1.35em;
        text-align: justify;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-1 .content-wrap #Accordion1 .AccordionPanel.AccordionPanelOpen .AccordionPanelContent p {
        line-height: 1em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us #sprytextarea1 span .content-wrap {
        font-size: .5em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us #website {
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us #website {
        display: none;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us #website label {
        display: none;
    #website {
        display: none;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us fieldset legend {
        font-size: 1.1em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us fieldset legend {
        font-size: 1.1em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us fieldset legend {
        font-size: 4em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us fieldset .AccordionPanelContent {
        font-size: 1em;
    #wrapper-body #wrapper-1 #wrapper-2 #wrapper-3 #content-2 .content-wrap #Contact Us fieldset .AccordionPanelContent {
        font-size: 3em;
    .fieldname {
        font-size: .9em;
    CSS for Horizontal Nav Bar:
    #menu4 {
        width: 829px;
        margin: 0 auto 0 auto;
    #menu4 ul {
        list-style:none;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 30px;
        letter-spacing: -3px;
        line-height: 1.2em;
        border-top:5px dotted #c7e7f3;
        border-bottom:5px dotted #c7e7f3;
        float:left;
        clear:both;
        margin:20px;
        text-align:center
    #menu4 ul li{
        float:left;
    #menu4 ul li a{
        display:block;
        text-decoration:none;
        padding:10px 10px 5px 10px;
        color:#66b8d8;
        width:170px;
    #menu4 ul li a span{
        display:block;
    #menu4 ul li a span.title{
    #menu4 ul li a:hover span.title{
        color:#00adef;
    #menu4 ul li a span.text{
        padding:0px 5px;
        font-family: Georgia, serif;
        font-size: 13px;
        font-style: italic;
        font-weight: normal;
        letter-spacing: normal;
        line-height: 1.6em;
        color:#c7e7f3;
        visibility:hidden;
    #menu4 ul li a:hover span.text{
        visibility:visible;
    Thanks!

  • Fix background image within div

    Hello
    I've done a lot of research about this, and tons os answers have come up, still, none solved my problem so far.
    I'm trying to make the background image within a div to be fixed when i scroll vertically.
    Have a template made, in which the only editable div is the rightdiv. (in red, to be easier)
    Here's my code
    CSS
    body {
    margin-top: 0px;
    margin-bottom: 0px;
    background-position: center center;
    background-image: url(../Images/bgdr.jpg);
    background-repeat: no-repeat;
    #wrapper {
    height: 875px;
    width: 1000px;
    margin-right: auto;
    margin-left: 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
    <!-- InstanceBeginEditable name="RightDiv" -->
      <div id="rightDiv" style="background-image: url(Images/informacao.png)">
      </div>
      <!-- InstanceEndEditable -->
    Well, thing is that on Internet Explorer 9, the background image will repeat vertically when i scroll vertically. On Chrome it will stay fixed on scroll (and that is what i want).
    I tried adding style="background-attachment:fixed" , but that will make the image align fix itself relatively to the whole page, not the div only. Also, it repeats itself 4 times to oocupy the screen. I can solve that by "no-repeat", but it still is fixed to the browser page, not the div.
    I've been trying to fix this for days.. Help would be much appreciated.
    Funny thing is that this only happens in IE9.. Chrome works perfectly.

    DevilUrd wrote:
    Didn't work. sorry, but i don't think i understood ur reply quite well..
    Here's what i used:
    <!-- InstanceBeginEditable name="RightDiv" -->
    <div id="rightDiv" background:  url('Images/informacao.png') no repeat fixed;>
    <tr>
            <td>textextextextextextextextext</td>
          </tr>
    <!-- InstanceEndEditable -->
    Could u pls be a little more detailed?
    sorry, but i'm still very unexperienced at this..
    That is not a valid way to write css into your page and will not work. You appear to be trying to use the background shorthand css property within the html tag itself. If you want to use an inline style, it would need to be within the style html attribute...
    <div id="rightDiv" style="background:url(Images/informacao.png") no-repeat fixed top left;">
    But it would be better to place it in your css instead...
    #rightDiv {
    clear: none;
    background:url(Images/informacao.png") no-repeat fixed top left;
    float: right;
    height: 484px;
    width: 755px;
    position: relative;
    overflow: auto;

  • I'm unable to move or resize an image within a layer

    If I copy and paste an image into a new layer then I'm unable to drag and drop it, nor resize it.
    When I paste it then it gets pasted into the middle of the layer, if I select it and try and move it around it 90%  snaps back to the center. 
    Snap-to guides and snap-to grid are both disabled.
    This is something I've always been able to do in the past, for some reason its stopped working. What's going on?
    Thanks

    Sounds like this thread from yesterday involving some difference between Flash 11.3 and earlier versions of the Flash player plugin: [https://support.mozilla.org/en-US/questions/929842 Since update last week, unable to resize popup windows]. Does that help?

  • AP DIV layer problem

    Is there any way the AP DIV layer can work in a centered
    layout and move with the other elements on my web page?
    Murray, I asked before about the rollover images and the grid
    design with photos. You gave me a solution but I couldn't even find
    some of the things you mentioned. Are you on a pc? I am on a mac.
    Is that why?
    I got it to work great with the divs without centering my
    page in the browser window as it moves.

    > Is there any way the AP DIV layer can work in a centered
    layout and move
    > with
    > the other elements on my web page?
    Sure.
    Change this -
    </head>
    to this -
    <style type="text/css">
    <!--
    body { text-align:center; }
    #wrapper { text-align:left; width:760px; margin:0
    auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. */
    -->
    </style>
    </head>
    change this -
    <body ...>
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    > Murray, I asked before about the rollover images and the
    grid design with
    > photos. You gave me a solution but I couldn't even find
    some of the things
    > you
    > mentioned.
    Like what?
    > Are you on a pc? I am on a mac. Is that why?
    I'm on both. I'm pretty sure my suggestion was platform
    agnostic.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "dxexaxnx" <[email protected]> wrote in
    message
    news:fovpf2$t7q$[email protected]..
    > Is there any way the AP DIV layer can work in a centered
    layout and move
    > with
    > the other elements on my web page?
    >
    > Murray, I asked before about the rollover images and the
    grid design with
    > photos. You gave me a solution but I couldn't even find
    some of the things
    > you
    > mentioned. Are you on a pc? I am on a mac. Is that why?
    >
    > I got it to work great with the divs without centering
    my page in the
    > browser
    > window as it moves.
    >

  • Changing background Image of a DIV on RO

    I am trying to figure out how to change the background image of a div upn Roll-Over (RO) from the users mouse.
    My search thus far has led me to javascript, but if any other ideas/method are known, i have no preference for any language.
    I have a horizontal menu w/ 3 divs and a single word centered inside each div. I wish to use each of these divs as buttons w/ RO effects.
    To do this i wanted to try and make it so upon roll,over the bg would be replaced with a modified version of the normal bg of the div's.
    css rules did not work, and i am trying JS now.
    Here are some snippets of code that i have writtin and made from sources i have found online but it still does not appear to work when i test in Firefox.
    Here is the addition to the <HEAD> part of my html page.
    <script src="../quirksmode.js"></script>
    <script type="text/javascript">
         function mouseover(id)
         document.getElementById(id).style.background="url('/images/objects/optionsBarADark.png') no-repeat";
         function mouseout(id)
         document.getElementById(id).style.background="url('/images/objects/optionsBarA.png') no-repeat";
    </script>
    and here is the code in the html page which is supposed to make the rollover casue the bg to change. (note that i have not added links to the text in the center of the divs yet)
         <div id="middleWrapper">     <!-- middle content wrapper -->
             <div id="contentMenu">          <!-- start of menu -->
                 <img class="contentMenuDividers" src="images/objects/optionsBarA.png" width="4" height="28" alt="option bar" /> <!-- filler -->
                <div class="contentMenuButtons" id="theID1" onmouseover="mouseover(theID1)" onmouseout="mouseout(theID1)">
                     <h1 class="contentMenuHeaders">projects</h1>
                </div>
                <img class="contentMenuDividers" src="images/objects/optionsBarA.png" width="4" height="28" alt="option bar" />  <!-- filler -->
            <div class="contentMenuButtons" id="theID2" onMouseOver="changeHeader(theID2,'1');" onMouseOut="changeHeader(theID2,'2');">
                     <h1 class="contentMenuHeaders">catalog</h1>
              </div>
                <img class="contentMenuDividers" src="images/objects/optionsBarA.png" width="4" height="28" alt="option bar" />  <!-- filler -->
                <div class="contentMenuButtons" id="theID3" onMouseOver="changeHeader(theID3,'1');" onMouseOut="changeHeader(theID3,'2');">
                     <h1 class="contentMenuHeaders">featured*</h1>
                </div>
                <img class="contentMenuDividers" src="images/objects/optionsBarA.png" width="4" height="28" alt="option bar" />  <!-- filler -->
            </div>
    and here is some css for the affected class. the a, and a:hover rules are left-over from when i had the text linked.
    .contentMenuButtons {
         float: left;
         height: 28px;
         width: 308px;
         background-image: url(../images/objects/optionsBarA.png);
         background-repeat: no-repeat;
         text-align: center;
         line-height: 27px;
    .contentMenuButtons a {
         color: #F9FBFB;
         text-decoration: none;
    .contentMenuButtons a:hover {
         color: #F9FBFB;
         text-decoration: none;
    if you need anything else from the code let me know, but this is everything i have added to try and get this to work.
    Any ideas?

    I agre with SnakEyez  :-)
    Your method seems to be the long way of doing a simple roll-over menu.
    Lots of examples here as well:
    Basic css menus: horizontal / vertical:
    http://css.maxdesign.com.au/listamatic/index.htm

  • Preloader is now centering although horizontal and verticle slider are showing up.

    preloader is now centering although horizontal and verticle scroll are showing up. M y question is how do I get rid of the horizontal and verticle scollon the man page now that the preloader centering code has been
    added in to the edge file from dreamweaver. I dont think you can get rid of the horizontal and vertcle  scoll bars from the edge menu the stage propertie menu is blocked  once you plac the codde for the centering preload from dreamweaver.
    here is the codde I entered with dreamweaver can it be altered or somthing to get rid of scroll  bars on the main page that showed up after I placed the code in the html(created origanlly with edge) with dreamweaver.
    <body style="margin:0;padding:0;height:100%;background-image:url(back2.jpg);">
    <div id="container" style="margin:0;padding:0;height:100%;background: url(images/loader-bar.gif) no-repeat center center;">
              <div id="Stage" class="EDGE-19258028">
    </div>
    </body>
    the entire code looks like this in dreamweaver
    <!DOCTYPE html>
    <html style="height:100%;">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE8"/>
        <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="musicwebpage_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-7449833 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </body>
    </html>
    <body style="margin:0;padding:0;height:100%;background-image:url(back2.jpg);">
    <div id="container" style="margin:0;padding:0;height:100%;background: url(images/loader-bar.gif) no-repeat center center;">
              <div id="Stage" class="EDGE-19258028">
    </div>
    </body>

    The songs that show the "note" were they downloads directly from iTunes? iTunes downloads all have artwork. If not, you will get that 50/50 chance of no album cover art. I had to look up the songs (of the ones I was importing at the time) artwork on "Google". Then I would just add the pic for the artwork myself. No more blanks ("or notes") Just beautiful pics to scroll through....

  • How can i postition an image inside a div correctly?

    I am learning CSS and I want to insert an image inside a div
    used as a footer. I want the image to appear to the left of the div
    with say 10px left margin and 5px top and bottom.
    I also have a horizontal UL and a <p> inside the div
    which are set to the centre. I want to keep their appearance as
    they are - but add the image to the left without putting anything
    else out of place if that makes sense.
    Can someone show me how it is done?
    http://www.tomkilbourn.com/newsite/test/footer.html
    The image which I want to use is from validator.wc3.org -
    <p>
    <a href="
    http://validator.w3.org/check?uri=referer"><img
    src="
    http://www.w3.org/Icons/valid-xhtml10"
    alt="Valid XHTML 1.0 Transitional" height="31" width="88"
    /></a>
    </p>

    ~Billy~ wrote:
    > Ive got it to work by adding -
    >
    > <span
    style="position:absolute;top:27px;left:20px;">
    > <img src="/newsite/images/valid-xhtml10.png"
    /></span>
    >
    > before the closing body tag, but is there a way to do it
    without using
    > absolute positioning and span?
    >
    Id' do it by adding position relative to my footer div and
    then I'd
    create a class for the img and use absolute positioning for
    it which if
    nested within the footer div will be relative to that - like
    so.....
    in your css...
    #footer {
    border-top: 1px solid rgb(187, 187, 187);
    padding: 0px 0px 10px;
    background-color: rgb(51, 0, 0);
    position: relative;
    .w3c {
    position: absolute;
    top: 10px;
    right: 20px;
    and your html markup for your footer dive, something like....
    <div id="footer">
    <img src="/newsite/images/valid-xhtml10.png" alt="alt text
    here"
    class="w3c" />
    <ul id="navlist">
    <li><a href="#">Item one</a></li>
    <li><a href="#">Item two</a></li>
    <li><a href="#">Item three</a></li>
    <li><a href="#">Item four</a></li>
    <li class="last"><a href="#">Item
    five</a></li>
    </ul>
    <p id="footerbottom">Copyright Tom Kilbourn 2007
    www.tomkilbourn.com</p>
    </div>
    chin chin
    Sinclair

  • Issue with images and AP div layers

    Im a bit of a noobie. but i have a problem with this website
    im working on. I have a table with an image in it serving as a
    background for some text i wish to put into it. I use an AP Div
    layer to put in the text on top of the image. Of course when i open
    the page in a full window, it displays properly, but when resizing
    the window, the text shifts as a cause of the div layer not
    moving... Is there a way to fix this or another way to do this
    properly?
    thanks in advance.

    This is a problem with absolute positioned tags it's a CSS
    thing not a Dreamweaver problem.
    You should be staying from layers and using hand CSS with
    divs ID and class. Check out the adobe site for tutorials on using
    Dreamweaver with CSS. You should find these in the designer
    section. They are quite good and they'll give you what you're
    looking for
    Also a good book on this is CSS the Missing Manaul it really
    explains what's happening and going on here

  • How do I get a recordset to display three images horizontally?

    Hi,
    I'm using DWCS3 with MAMP.
    I want to display three images horizontally in a recordset. I have downloaded Tom Muck's extension horizontal looper and followed the instructions.
    However when I tried to add the recordset navigation bar I ran into some problems.
    If I add a repeat region to Tom Muck's extension then the page doesn't load.
    If I don't add a repeat region to Tom's extension everything works really well except only one image displays rather than three.
    Here is all of my code for the page. 
    Could someone help me please.
    <?php require_once('Connections/connQuery.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_rshlimgs = 1;
    $pageNum_rshlimgs = 0;
    if (isset($_GET['pageNum_rshlimgs'])) {
      $pageNum_rshlimgs = $_GET['pageNum_rshlimgs'];
    $startRow_rshlimgs = $pageNum_rshlimgs * $maxRows_rshlimgs;
    mysql_select_db($database_connQuery, $connQuery);
    $query_rshlimgs = "SELECT * FROM image";
    $query_limit_rshlimgs = sprintf("%s LIMIT %d, %d", $query_rshlimgs, $startRow_rshlimgs, $maxRows_rshlimgs);
    $rshlimgs = mysql_query($query_limit_rshlimgs, $connQuery) or die(mysql_error());
    $row_rshlimgs = mysql_fetch_assoc($rshlimgs);
    if (isset($_GET['totalRows_rshlimgs'])) {
      $totalRows_rshlimgs = $_GET['totalRows_rshlimgs'];
    } else {
      $all_rshlimgs = mysql_query($query_rshlimgs);
      $totalRows_rshlimgs = mysql_num_rows($all_rshlimgs);
    $totalPages_rshlimgs = ceil($totalRows_rshlimgs/$maxRows_rshlimgs)-1;
    $queryString_rshlimgs = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rshlimgs") == false &&
            stristr($param, "totalRows_rshlimgs") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rshlimgs = "&" . htmlentities(implode("&", $newParams));
    $queryString_rshlimgs = sprintf("&totalRows_rshlimgs=%d%s", $totalRows_rshlimgs, $queryString_rshlimgs);
    ?><!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>
    <link href="styles/orderlist3.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="lightbox_assets/css/lightbox.css" type="text/css" media="screen" />
    <script src="lightbox_assets/js/prototype.js" type="text/javascript"></script>
    <script src="lightbox_assets/js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="lightbox_assets/js/lightbox.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    a:link {
    color: #999966;
    a:visited {
    color: #FFFFFF;
    a:hover {
    color: #006600;
    a:active {
    color: #666699;
    -->
    </style></head>
    <body class="oneColFixCtrHdr" onload="initLightbox()">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="mainContent">
        <h3>Image catalog</h3>
        <p> </p>
        <table >
          <tr>
            <?php
    $rshlimgs_endRow = 0;
    $rshlimgs_columns = 3; // number of columns
    $rshlimgs_hloopRow1 = 0; // first row flag
    do {
        if($rshlimgs_endRow == 0  && $rshlimgs_hloopRow1++ != 0) echo "<tr>";
       ?>
            <td><p><a href="images/weddingprivate/mr_and_mrs_lowe_18_15.jpg" title="Mr and Mrs Lowe_18_15" rel="lightbox"><img src="<?php echo $row_rshlimgs['imagethumb_url']; ?>" alt="The bride to be getting ready" longdesc="http://The bride to be with her hairdresser" width="100" height="150" /></a></p>
                <p><?php echo $row_rshlimgs['caption']; ?> <img src="images/Untitled-1.gif" alt="spacer" width="170" height="1" /></p>
              <p> </p>
              <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                  <input type="hidden" name="cmd" value="_s-xclick" />
                  <input type="hidden" name="hosted_button_id" value="6782561" />
                  <table>
                    <tr>
                      <td><input type="hidden" name="on0" value="Sizes" />
                        Sizes</td>
                    </tr>
                    <tr>
                      <td><select name="os0">
                          <option value="6x4">6x4 £3.00 </option>
                          <option value="7x5">7x5 £5.00 </option>
                          <option value="12x8">12x8 £6.50 </option>
                        </select>
                      </td>
                    </tr>
                  </table>
                <input type="hidden" name="currency_code" value="GBP" />
                  <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." />
                  <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
              </form></td>
            <?php  $rshlimgs_endRow++;
    if($rshlimgs_endRow >= $rshlimgs_columns) {
      ?>
          </tr>
    <?php
    $rshlimgs_endRow = 0;
    } while ($row_rshlimgs = mysql_fetch_assoc($rshlimgs));
    if($rshlimgs_endRow != 0) {
    while ($rshlimgs_endRow < $rshlimgs_columns) {
        echo("<td> </td>");
        $rshlimgs_endRow++;
    echo("</tr>");
    }?>
        </table>
        <table border="0">
          <tr>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, 0, $queryString_rshlimgs); ?>"><img src="images/First.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, max(0, $pageNum_rshlimgs - 1), $queryString_rshlimgs); ?>"><img src="images/Previous.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, min($totalPages_rshlimgs, $pageNum_rshlimgs + 1), $queryString_rshlimgs); ?>"><img src="images/Next.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, $totalPages_rshlimgs, $queryString_rshlimgs); ?>"><img src="images/Last.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
          </tr>
        </table>
        <p> </p>
            <p> </p>
      <!-- end #mainContent --></div>
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>
    <?php
    mysql_free_result($rshlimgs);
    ?>

    Hi Charles,
    Use [Dr%] Variable formula as =if(IsNull([Dr%]);0;[DR%])
    Here IsNull returns the Boolean value of variable [Dr%] if its true then inserts 0 else the percentage values of failed tests based on the  total number of assembly tests performed.
    I Hope this is what you want to achieve....
    Thanks....
    Pratik

  • Centering images on fluid site

    Rebuilding a very antiquated site to meet the upcoming Google deadline, I'm having problems centering images. I defined a class of "center" but it's not working;
    http://www.aptcoweb.com/dev/aptcoFluid/office/label.htm
    Sometimes I want to center a single image, other times a group of images. What's wrong with my css?
    Also, what's the best way to center the iframe video?

    larrycfc wrote:
    Still don't know how to center the video. wrapping the iframe in a div made it disappear.
    Add some inline css styling to the iframe:
    <iframe width="640" style="display: block; margin: 0 auto;" height="480" src="https://www.youtube.com/embed/RWgpByd3UrI?rel=0" frameborder="0" allowfullscreen></iframe>

  • Centering images in fluid layouts while maintaining height of image

    I am working in DW CS6 on a windows 7 computer; can someone tell me the HTML and CSS coding to use for the following idea?
    I have an image file that is 900px wide by 300 px tall.  (there is only one (1) image in the Div and no text) My goal is the keep the center of the image file (450px left & right) in the center of the fluid Div ID and keep the height of the image constant at 300px.  The left and right sides of the image file just overflow the sides of the Div ID and are not visible to the users.
    Thank you.

    Maybe my request was not clear enough so I will see if I can explain it better.  (getting the image inserted at the proper size is no problem using CSS)
    It is my desire to keep the height of the image at 300px (and it does); I am looking for a way for the image to stay at 900px wide as the page width decreases WHILE the center of the image remains in the center WITHOUT the entire image narrowing.  The left and right sides of the images just dissappear outside of the viewable area as defined by the adjustable width of the fluid Div ID.
    Within the Source Code & Div Id - my html is as follows: <img src="images/logo.png" alt="logo" class="align-center large" />
    Within the Styles CSS - my code uses: img.align-center { ~ .... } & img.large ( width: ~px; height: ~px; }
    Do you have another suggestion?

  • ReportBuilder. Centering image in Report

    Hello everybody,
    I need help in centering image in Report.
    Thanks
    http://firebird-vbnet.blogspot.com/

    Hi giovannigiorgio,
    According to your description that you want to know how to centering an image in ReportBuilder, right?
    Before centering the image, we should be clear about some of the position related properties, only after we have done the proper setting of them can we be able to make the image to display in the center of the page.
    For physical page renderers, it's important to keep in mind the concept of Usable Area.  The Usable Area is the amount of space left on a page for your report to be drawn after reserving space for margins, headers and footers, and column spacing (for
    multi-column reports).
    Horizontal usable area:
    X = Page.Width - (Left Margin + Right Margin)
    Vertical usable area:
    Y = Page.Height - (Top Margin + Bottom Margin + Header Height + Footer Height)
    I suppose there is only image in the page. Please following the steps below to check all the related properties of size and center the image.
    Right click on Report area and select the Report Properties
    Make a note of the values for Page width(8.5), Page Height(11in), Left margin(1in), Right margin(1in),Top margin(1in),Bottom margin(1in)
    Close and go back to the design surface and in the Properties window, select Body
    Click the + symbol to expand the Size node and  do setting as below:
    Body Width  <=Page width- Left margin -Right margin(Body Width <=6.5)
    Body Height  <=Page Height- Top margin -Bottom margin-Header Height-FooterHeight(Body Height <=11-1-1-1-1=7)
    Right click the body area to insert an image and in the Image properties window select the size and check the “fit to size”
    the image will fit the size of the image item, we can set the position(Location and size) properties to determine the display of the image now
    In the Image properties, Set the value for position(Location and size) (according to the best Resolution of image to set the values of the location):
    Location left = (Body Width – Width of Image) /2    (Location left =(6.5-4.5)/2)
    Location Top =(Body Height – Height of Image) /2  (Location Top =(7-5) /2)
    If the page both include the image and the table, we should also consider the size of the table(Column Spacing in the width and Row Spacing in the height).
    Article about  the Pagination in Reporting Services for your reference:
    http://msdn.microsoft.com/en-us/library/dd255278.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • Div Layer on top of Div Layer impossible problem

    Hello guys,
    For over 42 hours I've been puzzling myself with this problem.
    Using Dreamweaver cs5.5, i have a text box with overflow:auto, because there's alot of text. On top of this layer I have another div layer with a pic that fades when the page loads.  My problem is the scrollbar is beneath the layer for the pic that fades, so when you try to scroll down the page you cannot because the pic layer blocks it.  In Internet Explorer it works perfectly fine, but not in any other browser.
    Anyone know any way around this uberly frustrating problem?
    Thanks, and take care!

    Thank you for your response Murray....Below is the code.  I appreciate any and all input.
    <!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>
    <link rel="stylesheet" type"text/css" href="style/main.css" />
    <style type="text/css">
    #apDiv1 {
              width:800px;
              height:680px;
              margin:auto;
              position:relative;
    #apDiv2 {
              position:absolute;
              width:200px;
              height:115px;
              z-index:1;
    #apDiv3 {
              position:absolute;
              width:628px;
              height:439px;
              z-index:1;
              left: 23px;
              top: 26px;
    #apDiv4 {
              position:absolute;
              width:200px;
              height:115px;
              z-index:1;
              left: -28px;
              top: -2px;
    #apDiv5 {
              position:absolute;
              width:608px;
              height:400px;
              z-index:2;
              left: 89px;
              top: 153px;
    </style>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
              Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    </script>
    </head>
    <body>
    <div id="apDiv1">
      <div id="apDiv2"><img src="images/lifelight street faded bg 2.jpg" width="800" height="680" border="0" usemap="#Map" />
        <map name="Map" id="Map">
          <area shape="rect" coords="242,106,303,134" href="index.html" />
        </map>
        <div id="apDiv5">
          <div id="apDiv3">
          <div style="overflow:auto; height:347px; font-family:Verdana, Geneva, sans-serif;">   <center> <b>ABOUT US</b> </center> <p>
    Life Light Street Productions was started by a small group of individuals interested in creating a social network to encourage disconnected youth on street corners to earn GED’s, consider and prepare for college enrollment and to learn about career options.<p> 
    In 2005 founder and Executive Director Ayanna M. Cole, MSW started leading a group of young adult professionals and college students to a neighborhood in South Jamaica, Queens to begin a dialogue with youth and young adults found hanging out in the neighborhood.  Over three years volunteers spent every Saturday morning and early afternoon walking through the neighborhood talking and even praying with youth and young adults found on street corners, on basketball courts and on building stoops.<p>
    Volunteers provided information in response to a variety of needs such as finding summer employment, how to apply to college, resume writing and career options.<p> 
    Today Life Light Street Productions is also facilitating media training workshops with court involved youth and formerly incarcerated men and women.<p>  
    Board of Directors:<br />
    Ayanna M. Cole, MSW <br />
    Dr. Adelaide During<br />
    Larissa K. Cole
    <p>
    Advisory Board:<br />
    Rev. Alfonso Wyatt, President, Fund for the City of NY<br />
    Alisa W. Cupid, Esq.
    <p>
    Contact Us <br />
    Phone: 718-564-7221<br />
    Email:
    </div></div>
         <div id="apDiv4"><img src="images/kidpic2.jpg" style="position:absolute; width: 649px; left: 31px;" width="637" height="467" onload="MM_effectAppearFade('apDiv4', 2200, 100, 0, false)" /></div>
    </div>
      </div>
    </div>
    </body>
    </html>

Maybe you are looking for