Centering One DIV in Another DIV

Hi --
On this page:
http://www.mort.thelegatogroup.com/
the DIV #navigation is
set to extend left to right across the viewport. Within
#navigation is
another DIV -- #navbuttons -- that I want centered on the
screen.
While it's centered in IE6 I cannot get it centered in FF.
Can someone give
me a hand?
Thanks,
John

Give the inner div a CSS width, and left/right margins of
"auto".
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Tarvardian" <[email protected]> wrote in
message
news:epqoa1$l1h$[email protected]..
> Hi --
>
> On this page:
http://www.mort.thelegatogroup.com/
the DIV #navigation is
> set to extend left to right across the viewport. Within
#navigation is
> another DIV -- #navbuttons -- that I want centered on
the screen.
>
> While it's centered in IE6 I cannot get it centered in
FF. Can someone
> give me a hand?
>
> Thanks,
> John
>

Similar Messages

  • Is it possible to keep centered an AP div into another div?

    I have a division block with sizes set in ems containing some
    text at the top and another div at the bottom with a picture in it.
    I want the div with the picture to stay at a certain percentage
    distance from bottom of the containing div block and be centered
    into it when the user increases the text.
    I manage to position the image at the bottom by styling its
    div as AP and the containing div as relatively positioned but I
    can't figure out how to keep the positioning at the center when the
    user increases the text.
    Is this possible?

    Personally, I think the whole approach is big trouble.
    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
    ==================
    "TC2112" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > How about using the AP div to just control the distance
    from the bottom?
    > Set the left position to 0 and make the width of the AP
    div the same as
    > the blocks div.
    > Remove the red background color so it is transparent.
    >
    > Then, in that AP div insert a div with the width of
    339px and the same
    > height as the AP div, 245px.
    > Give this div the red background color and a left and
    right margin of
    > auto.
    > Put the image in this div.
    >
    > Now this div will center in the AP div, so it's centered
    in the blocks
    > div, and the AP div will keep it 5% from the bottom.
    >
    > Murray may offer a better solution, but it was fun to
    think about this
    > one.
    >
    > Here's the code:
    >
    http://tnsgraphics.com/ctrimg.htm
    >
    > By the way, if the red background isn't part of your
    design and was to
    > just help show the issue, then you actually don't even
    need the inner div.
    > Just give the image a left and right margin of auto:
    >
    >
    http://tnsgraphics.com/ctrimgnoRED.htm
    >
    > Take care,
    > Tim
    >
    >
    >
    >
    > "emil emil" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Thank you Murray, the content is fed from an XML
    file but I'm not
    >> including it
    >> since the problem can be seen without it. With the
    XML content it just
    >> becomes
    >> 4 blocks like the one currently in the code.
    >>
    >> <!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"
    >> xmlns:spry="
    http://ns.adobe.com/spry">
    >> <head>
    >> <meta http-equiv="Content-Type"
    content="text/html; charset=utf-8" />
    >> <title>Untitled Document</title>
    >> <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    >> <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    >> <script type="text/javascript">
    >> <!--
    >> var QqQqQq = new
    Spry.Data.XMLDataSet("plants_data.xml", "plants/plant");
    >> //-->
    >> </script>
    >> <style type="text/css">
    >> <!--
    >> .blocks {
    >> float: left;
    >> width: 22em;
    >> margin-bottom: 2em;
    >> background-color: #CCCCCC;
    >> padding-left: 0.5em;
    >> margin-top: 1em;
    >> text-align: left;
    >> margin-right: 2em;
    >> height: 25em;
    >> padding-right: 0.5em;
    >> position: relative;
    >> }
    >> #wrapper .blocks #pictures {
    >> text-align: center;
    >> bottom: 5%;
    >> position: absolute;
    >> width: 339px;
    >> left: 4%;
    >> background-color: #FF0000;
    >> height: 245px;
    >> }
    >> body {
    >> margin-top: 0px;
    >> }
    >> #wrapper {
    >> width: 54em;
    >> margin-right: auto;
    >> margin-left: auto;
    >> }
    >> -->
    >> </style>
    >> </head>
    >>
    >> <body>
    >> <div id="wrapper" spry:region="QqQqQq">
    >> <div spry:repeat="QqQqQq">
    >> <div class="blocks">
    >> <div>{name}</div>
    >> <div>{description}</div>
    >> <div>{size}</div>
    >> <div id="pictures"><img
    src="images/large/{image}" /></div>
    >> </div>
    >> </div>
    >> </div>
    >>
    >> </body>
    >> </html>
    >>
    >
    >

  • Div inside another div

    Ok..is it just me, or does auto height really do squat when
    it comes to expanding and contracting of content in other divs that
    it surrounds? I have a div surrounding 2 divs, one that floats to
    the left, and one that floats to the right. If the div that
    surrounds them both has a height that is bigger than they are, it
    wraps just fine, however, if I set it to auto and add content to
    the inside divs, it doesnt grow and expand accordingly, screwing up
    the footer div I have below the div surrounding the 2 divs.
    Reason I wanted a div surrounding the two divs is cuz if one
    was longer than the other, due to there being more content in one
    than the other, then the footer div would, despite it being the
    full length of the page, shrink and fit itself below the shorter
    div tag with less content. Why doesnt the div just stay below the
    longest div since thats where it fits due to it being the full
    length of the page!?
    I attached my code. No, I cannot link the site. I do not have
    the site. Its under construction with no host. Y'all have
    dreamweaver, paste it in a new file and add your own random images.
    the "filler text" is just there so I can show you that if I stick
    that there it wraps around fine, but if you get rid of it, the div
    thats supposed to be wrapping around two divs sticks itself above
    the two divs..even though it doesnt close till have the two divs!!
    WHY!?

    If I understand you, you want two (or more) columns to be the
    same height
    without setting a height, or for them to grow according to
    the largest ones
    size.
    If that is the case, google Faux Columns.
    Basically, you wrap your divs (columns) in a container (the
    one you have
    sourounding) then you create a background image that is the
    same size as
    your columns, set the overflow in the container to hidden,
    and you now have
    the appearance of two even sized columns.
    To be more clear, if you have two divs that total 800px, the
    left being
    200px that you want the bg color of black, and the right
    being 600px with
    the bg color you want green, you create an image that is
    800px wide, 200 px
    black on the left, 600px of green set on the right.
    If you want a border to separate the two, put it on the
    longer of the divs.
    I am not sure how your float of left and right will affect it
    though, I
    usually float both left.
    "DreamChristine" <[email protected]> wrote
    in message
    news:[email protected]...
    > Ok..is it just me, or does auto height really do squat
    when it comes to
    > expanding and contracting of content in other divs that
    it surrounds? I
    > have a
    > div surrounding 2 divs, one that floats to the left, and
    one that floats
    > to the
    > right. If the div that surrounds them both has a height
    that is bigger
    > than
    > they are, it wraps just fine, however, if I set it to
    auto and add content
    > to
    > the inside divs, it doesnt grow and expand accordingly,
    screwing up the
    > footer
    > div I have below the div surrounding the 2 divs.
    >
    > Reason I wanted a div surrounding the two divs is cuz if
    one was longer
    > than
    > the other, due to there being more content in one than
    the other, then the
    > footer div would, despite it being the full length of
    the page, shrink and
    > fit
    > itself below the shorter div tag with less content. Why
    doesnt the div
    > just
    > stay below the longest div since thats where it fits due
    to it being the
    > full
    > length of the page!?
    >
    > I attached my code. No, I cannot link the site. I do not
    have the site.
    > Its
    > under construction with no host. Y'all have dreamweaver,
    paste it in a new
    > file
    > and add your own random images. the "filler text" is
    just there so I can
    > show
    > you that if I stick that there it wraps around fine, but
    if you get rid of
    > it,
    > the div thats supposed to be wrapping around two divs
    sticks itself above
    > the
    > two divs..even though it doesnt close till have the two
    divs!! WHY!?
    >
    >
    >
    > <!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" />
    > <!-- TemplateBeginEditable name="doctitle" -->
    > <title>Untitled Document</title>
    > <!-- TemplateEndEditable -->
    > <!-- TemplateBeginEditable name="head" -->
    > <!-- TemplateEndEditable -->
    > <style type="text/css">
    > <!--
    > #whole {
    > height: auto;
    > width: 900px;
    > margin-right: auto;
    > margin-left: auto;
    > border: thick groove #0F0;
    > }
    > #header {
    > height: 251px;
    > width: 900px;
    > margin-right: auto;
    > margin-left: auto;
    > }
    > #navigation {
    > height: 100px;
    > width: 900px;
    > margin-right: auto;
    > margin-left: auto;
    > }
    > #body_wrap {
    > height: auto;
    > width: 900px;
    > margin-right: auto;
    > margin-left: auto;
    > border: thick groove #C0F;
    > }
    > #body {
    > float: left;
    > height: auto;
    > width: 450px;
    > }
    > #side_bar {
    > float: right;
    > width: 450px;
    > }
    > #footer {
    > height: 300px;
    > width: 900px;
    > margin-right: auto;
    > margin-left: auto;
    > }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <div id="whole">
    > <div id="header"><img
    src="../images/dawn_header2.jpg" width="900"
    > height="251" alt="Dawn Dause Header" /></div>
    > <div id="navigation">Content for id "navigation"
    Goes Here</div>
    > <div id="body_wrap">
    > <div id="body"><!-- TemplateBeginEditable
    name="body" -->Content for
    > id
    > "body" Goes Here<!-- TemplateEndEditable
    --></div>
    > <div id="side_bar"><span
    > title="blocked::
    http://www.kenarllc.com/New_Homes/Romeoville/Townhomes/"><a
    > title="blocked::
    http://www.kenarllc.com/New_Homes/Romeoville/Townhomes/"
    > style="color: blue; text-decoration: underline"
    > href="
    http://www.dawndause.com/greenhaven.htm"><a
    > title="blocked::
    http://www.kenarllc.com/New_Homes/Romeoville/Townhomes/"
    > style="color: blue; text-decoration: underline"
    > href="
    http://www.dawndause.com/greenhaven.htm"></a></span><br>
    > <font size="4"><b>
    > <font
    > color="#ffffff" size="+1"><marquee
    bgcolor="#000080" scrollamount="4"
    > direction="left" loop="true"
    width="179"></marquee>
    > </font></b></font>
    > fdfsfsdfsdf
    > </div>
    > <br />
    > fffff
    > </div>
    > <div id="footer"><img
    src="../images/activerain_adnew.jpg"
    > alt="Activerain"
    > width="350" height="60" /></div>
    > fff
    > </div>
    > </body>
    > </html>
    >

  • How to pull content from div on one page to div on another page

    Hi all,
    I would like to pull content from the divs on page to divs on another page (so that I only have to update information on one page).
    Could anybody give me a tip on where to read about this/how to do this? I am not expecting the final answer, just a clue on where to start looking for how to get startet.
    Thanks in advance for any answers.
    Best regards,
    Ivan
    www.colombiareiser.no

    Try reading on DW Spry html data sets. The Spry HTML data set allows users to use standard HTML tables and other structured markup as a data source.
    http://labs.adobe.com/technologies/spry/articles/html_dataset/index.html
    http://labs.adobe.com/technologies/spry/docs.html
    Regards,
    Vinay

  • Centering with CSS inside a div box

    Am subbing on a job, would appreciate help:
    I am trying to center the three columns inside the address
    box at the bottom
    of the page.
    http://www.mariagrist.net/dev/motors/bodyshop.htm
    It should look just like the box at the bottom of the main
    page
    http://www.mariagrist.net/dev/motors/default.html
    but with content centered.
    I copied the divs from the default.htm but am changing them
    in order to try
    to center the content. So far I have only made it worse
    because now the
    columns are all on top of each other.
    Thanks

    Thanks heaps, that's exactly what I wanted it to do.
    Aren't these forums just magnificent.
    "Osgood" <[email protected]> wrote in
    message
    news:[email protected]...
    > Pixel Warrior wrote:
    >
    >> Am subbing on a job, would appreciate help:
    >> I am trying to center the three columns inside the
    address box at the
    >> bottom of the page.
    >>
    >>
    http://www.mariagrist.net/dev/motors/bodyshop.htm
    >>
    >> It should look just like the box at the bottom of
    the main page
    >>
    http://www.mariagrist.net/dev/motors/default.html
    but with content
    >> centered.
    >> I copied the divs from the default.htm but am
    changing them in order to
    >> try to center the content. So far I have only made
    it worse because now
    >> the columns are all on top of each other.
    >> Thanks
    > First off you need to change all thress <div
    class="address_item_content
    > divided"> to <div class="address_item_content">
    Just drop the 'divided'
    > part.
    >
    > Next you need to wrap the three newly nmed <divs>
    'address_item_content'
    > <divs> in another wrapper. See the code below
    (scroll down) I've named it
    > 'addressHolder'
    >
    > Find your .address_item_content css and make sure it
    looks the same as
    > this:
    >
    > .address_item_content {
    > float: left;
    > width: 115px;
    > padding-left: 30px;
    > margin-top: 16px;
    > font-size: 11px;
    > border-left: 1px solid #000;
    > }
    >
    > add the addressHolder css to your stylesheet.
    >
    > #addressHolder {
    > width: 438px;
    > margin: 0 auto;
    > }
    >
    >
    >
    > Heres the section of code starting and ending with the
    > 'address_box_content' <div>
    >
    > Note to get rid of the 1px solid dividing line on the
    left of the first
    > 'address_item_content' <div> use some inline css
    styling
    > 'style="border-left: none;" plus <br style-"clear:
    both;"> has been
    > inserted after the 'addressHolder'<div> to pull
    the 'address_box_content'
    > <div> around the three addresses.
    >
    >
    > CODE
    >
    > <div id="address_box_content">
    > <div id="addressHolder">
    > <div class="address_item_content" style="border-left:
    none;">
    > <div id="content_title">DERWENT PARK</div>
    > 8c Lampton Ave<br>
    > Ph: 03 6211 0660<br>
    > </div>
    >
    > <div class="address_item_content">
    > <div id="content_title">DEVONPORT</div>
    > 6-8 Victoria Pde<br>
    > Ph: 03 6420 4531<br>
    > </div>
    >
    > <div class="address_item_content">
    > <div id="content_title">BURNIE</div>
    > 60-65 Marine Tce<br>
    > Ph :03 6430 2440<br>
    > </div>
    > </div><!-- end addressHolder -->
    > <br style="clear: both;">
    > </div><!-- end address_box_content -->
    >

  • Stacking a Div ontop of another Div inside of a div?

    ok so i am not a programmer, just a designer doing a family a favor building him a website. In using divs i am trying to get a div to overlap another div, while inside another div.  confused? ok in simple: i have a div "wrapper" that holds the website center since the design is off center, inside this div i have another div which holds my body of the website "main", also inside the wrapper div i have a second div called "element" which is to sit top left and overlap the main div. The idea is to have an image cutting into the top left of the website, while keeping the rest of the site centered. I have attached a sample picture, and will post the code. if anyone can help please let me know thank you.
    CODE:
    <body>
    <div id="wrapper">
      <div id="element"><img src="images/Gears.gif" width="305" height="310" alt="gear image" /></div>
      <div id="main">
        <div id="header">
          <h1><img src="" alt="" name="Picture" width="100" height="180" align="right" id="Picture" style="background-color: #00FF00" />Don Pike <span class="eng">B.Sc. P. Eng.</span></h1>
          <h3>text</h3>
          <h3>&nbsp;</h3>
          <h3>phone </h3>
          <h3>email</h3>
          <h3> </h3>
          <h3>address</h3>
          <h3>city</h3>
    </div>
        <div id="content">
          <h2>Lorem ipsum dolor sit amet,</h2>
          <p> consectetur adipiscing elit. Suspendisse vitae pulvinar enim. Nunc eget ipsum diam, quis commodo nisi. Donec blandit mi mi, sit amet facilisis magna. Mauris eget diam est. Sed condimentum, nisi nec volutpat tincidunt, massa elit faucibus arcu, at dignissim purus tellus et velit. Integer at fringilla lacus. Nullam egestas leo vel mauris pretium gravida. </p>
       </div>
        <div id="footer">
          <table width="432" align="center" cellspacing="15">
            <tr>
              <td width="144"><a href="resume.html"><img src="images/Gears_03.gif" width="144" height="144" alt="resume" /></a></td>
              <td width="144"><img src="images/Gears_05.gif" width="144" height="144" alt="portfolio" /></td>
              <td width="122"><img src="images/Gears_07.gif" width="144" height="144" alt="about me" /></td>
            </tr>
          </table>
          <p> </p>
        </div>
      </div>
    </div>
    </body>

    <head>
    <style>
    #page{
        width:100%;
        height:100%;
        text-align:center;
    #wrapper {
        width: 860px;
        position: relative;
        float: none;
        margin: 0px;
        height: auto;
        padding: 0px;
        margin:0 auto;
    #element {
        top:0px;
        left:0px;
        padding: 0px;
        height: 310px;
        width: 305px;
        position: absolute;
        z-index: 100;
    #main {
        background-color: #333;
        height: auto;
        width: 550px;
        border: 1px solid 333333;
        position: absolute;
        float: right;
        padding: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        left: 155px;
        top: 125px;
    #header {
        padding: 0px;
        height: 180px;
        width: 360px;
        float: none;
        position: relative;
        margin-top: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
        margin-left: 170px;
    #content {
        color: 555555;
        background-color: #FFF;
        padding: 20px;
        height: auto;
        width: 470px;
        margin-right: 20px;
        margin-bottom: 20px;
        margin-left: 20px;
    #footer {
        background-color: #FFF;
        padding: 0px;
        height: 180px;
        width: 510px;
        margin-right: 20px;
        margin-bottom: 20px;
        margin-left: 20px;
    body {
        background-color: #CCC;
    h1 {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 25px;
        color: #FFF;
        margin: 0px;
        padding: 0px;
    h3 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #CCC;
        margin: 0px;
        padding: 0px;
    h2 {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 20px;
        color: #000;
        padding: 0px;
        margin: 0px;
    p {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 100%;
        color: #333;
        margin: 0px;
        padding: 0px;
    .eng {
        font-size: 12px;
    ul {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 100%;
        color: #333;
    </style>
    </head>
    <body>
    <div id = "page">
        <div id="wrapper">
          <div id="element"><img src="images/Gears.gif" width="305" height="310" alt="gear image" /></div>
          <div id="main">
            <div id="header">
              <h1><img src="" alt="" name="Picture" width="100" height="180" align="right" id="Picture" style="background-color: #00FF00" />Don Pike <span class="eng">B.Sc. P. Eng.</span></h1>
              <h3>text</h3>
              <h3> </h3>
              <h3>phone </h3>
              <h3>email</h3>
              <h3> </h3>
              <h3>address</h3>
              <h3>city</h3>
        </div>
            <div id="content">
              <h2>Lorem ipsum dolor sit amet,</h2>
              <p> consectetur adipiscing elit. Suspendisse vitae pulvinar enim. Nunc eget ipsum diam, quis commodo nisi. Donec blandit mi mi, sit amet facilisis magna. Mauris eget diam est. Sed condimentum, nisi nec volutpat tincidunt, massa elit faucibus arcu, at dignissim purus tellus et velit. Integer at fringilla lacus. Nullam egestas leo vel mauris pretium gravida. </p>
           </div>
            <div id="footer">
              <table width="432" align="center" cellspacing="15">
                <tr>
                  <td width="144"><a href="resume.html"><img src="images/Gears_03.gif" width="144" height="144" alt="resume" /></a></td>
                  <td width="144"><img src="images/Gears_05.gif" width="144" height="144" alt="portfolio" /></td>
                  <td width="122"><img src="images/Gears_07.gif" width="144" height="144" alt="about me" /></td>
                </tr>
              </table>
              <p> </p>
            </div>
          </div>
        </div>
    </div>
    </body>
    SORTED?

  • I put a Spry Tabbed Panel obj in my site at...how I centered it, to the container div width?

    I put a Spry Tabbed Panel obj in my site at
    http://l-web-dev.net/
    how I centered it, to the container div width?

    Add this to your document:
    <style type="text/css">
    <!--
    #content .story .myTabbedPanels {
        margin-right: auto;
        margin-left: auto;
        width: 550px;
    -->
    </style>
    Then change the following line
      <div class="story" style="width:550px;">
    to
      <div class="story myTabbedPanels">
    At a later stage you could add the style rules for myTabbedPanels to /styles/css-styles.css after having removed it from this document.
    That is it.
    Ben

  • How to move Profit centers from one hierarchy to another.

    Hi All - In Standard hierarchy in our Profit center accounting, we have in KCH6N as below and doing posting to these successfully.
    1. C1470 - 000001470 Profit center
    2. C1472 - 000001472 Profit center
    Now for some Business reason, we need to temporarily move above said profit centers in their hierarchy to another one C1410. So Users could post a journal entry and then move the profit centers back to their current location.
    After we make the change, It should be
    C1410 - 000001470 Profit center
    C1410 - 000001472 Profit center
    Can you please suggest me how to move the Profit centers from one hierarchy to another. Can you please let me know how to make this change.
    Thanks

    Hi Hoysala,
    This is not the best practice, to change profit center hierarchy node to another node, just for the sake of JV.
    If you have to allocate a cost/revenue from one cost center/profit center to another, I would advise you to use manual allocation/distribution  process, as per your business reason (Profit Center Allocation/Cost Center Allocation), rather than changing hierarchy nodes.
    You can use 3KE5-Execute Actual Assessment and 4KE5-Execute Actual Distribution from Profit Center 1470/1472 to the profit center under node C1410, without moving profit center from one node to another.
    http://veritysolutions.com.au/2012/07/03/overhead-allocations-in-sap-new-gl/
    Regards
    Javed

  • How do you keep bottom columns from overlapping another div

    I am using DW CS3 and am following instructions on making first web page everything is fine till I get to positioning the columns at the bottom of page when i try and set a css rule to position left column the column overlaps the previous div the instructions i am using are from adobe http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt2_08.html here is the code that I have up to the point that I put in the rule for the left column for the design page   
    <div id="container">
       <div id="banner"></div>
       <div id="main_image></div>
       <div id="left_column">Content for id"left_column" Goes Here</div>
       <div id="column_container">
           <div id="right_column">Content for id"right_column" Goes Here</div>
           <div id="center_column">Content for id"center_column" Goes Here</div>
       </div>
    </div>
    On the CSS page that is attached to it the code is as follows:
    #container  {
    width:  968 px;
    background:  FFFFFF;
    margin:  0 auto:
    padding-left:  10px:
    padding-right:  10px:
    overflow:  hidden;
    #banner  {
    background-image:  url(images/banner.gif);
    height:  100px;
    width:  968px;
    #main_image  {
    background-image:  url(images/main.jpg);
    height:  376px;
    width:  968px;
    and then I am suppossed to do a box with width of 316 and float left when I do this it floats left and goes down in size but also goes up into the top of my main image why is this happening?

    Zabberwan is correct  :-)   If the basic css is not written correctly, the page will not display as intended.  You are using a colon (:) instead of a semi-coon (;) to close off the style rule... in addition, the #hash tag was missing from the background rule.
    This is what your code should look like before proceeding with the next step of the tutorial:
    <!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>
    <style type="text/css">
    #container {
        width:  968px;
        background: #FFFFFF;
        margin:  0 auto;
        padding-left: 10px;
        padding-right: 10px;
        overflow: hidden;
    #banner {
        background-image: url(images/banner.gif);
        height:  100px;
        width:  968px;
    #main_image {
        background-image: url(images/main.jpg);
        height: 376px;
        width: 968px;
    </style>
    </head>
    <body>
    <div id="container">
      <div id="banner"></div>
      <div id="main_image></div>
       <div id="left_column">Content for id"left_column" Goes Here</div>
      <div id="column_container">
        <div id="right_column">Content for id"right_column" Goes Here</div>
        <div id="center_column">Content for id"center_column" Goes Here</div>
      </div>
    </div>
    </body>
    </html>

  • Help with Positioning a div in relation to another div

    I'm working on this website - http://soleproductions.com/virgilcardin/index.htm
    I want to position the "7 Days a Week" waterdrop image just to the right of "Call Us Today..." text.
    Here is my logic....
    I created a div called "7daysaweek" and placed it inside the "largeimage" div and set the "largeimage" div to Relative so I could use absolute positioning of the "7daysaweek" div and set 7days div to 0 bottom, 0 right but it remains at the top left corner of the largeimage div.  What am I missing?
    Here is my HTML
    <div id="largeimage">
            <div id="7daysaweek"><img src="../images/7-days-a-week.png" width="114" height="178" alt="7 Days a Week" /></div>
        </div>
    Here is my CSS
    #largeimage {
        height: 409px;
        width: 900px;
        background-image: url(images/virgil-cardin-truck1-large.jpg);
        background-repeat: no-repeat;
        position: relative;
    #7daysaweek {
        height: 178px;
        width: 114px;
        right: 0px;
        bottom: 0px;
        position: absolute;

    Design View isn't reliable.  Use Live View or Preview in browsers.
    Leading numbers like "7" are not allowed in CSS selector names. The selector name must begin with a letter. 
    Try this (inline styles used here for expediency):
    <div id="waterDrop" style="position:absolute; top:22px; left: 800px"><img src="images/7-days-a-week.png" alt="7 Days a Week" height="178" width="114">
    </div>
    Nancy O.

  • Move the created (and modified) symbol to another div.

    Hi,
    Let's say i have a container (it's a symbol... sym.container=sym.createChildSymbol("container","containers");)
    1. Created a child symbol "object" in one container.
    sym.object=sym.container.createChildSymbol("object","containerForObject");
    2. Made several changes to it.
    What i want to do now, is to
    1. Create a new container. sym.container2=sym.createChildSymbol("container2","containers");
    2. delete the symbol the "object" was in. sym.container.deleteSymbol().
    3. Put the "object" (without creating it again, just moving it) in the, new, sym.container2's "containerForObject".
    <out of ideas>
    Thanks,
    Dario

    Hi, Dario-
    When you call deleteSymbol, you're actually deleting the entire instance of the symbol.  Is there a reason you want to reparent the symbol that way?  Another way to handle it is to create the symbol attached to the Stage or a dummy object and then create a link to it using a variable on one symbol or another.  That way, you only create the object once but have a reference to it in one symbol or the other.
    Hope that helps,
    -Elaine

  • Ical - moving appointments from one ID to another

    In an attempt to eliminate my second Apple ID / iCloud account (let's refer to the two accounts as KEEP and LOSE), I exported iCal data from LOSE, and tried importing it to KEEP.  I did the import after switching iCal to point to KEEP.  The Import populated iCal correctly, but after a moment there was an error message telling me the calendar couldn't be sync'ed with iCloud.  I checked iCal Preferences to make sure I was still pointing to KEEP, but it was in fact pointing again to LOSE.  So obviously the export file contained some sort of reference to LOSE that the import process had seen.
    So how can I do this?  I assume I don't have to dive into the .icbu bundle and modify all references to my iCloud account, do I?
    Thanks,
    Chap

    I think you might be confusing default calendars with your user (iCloud) accounts.
        1)    Create a new empty calendar from the iCal file menu, select which account you want to create it in.
        2)    If you have only a few appointments you can move them individually by editing them and changing the calendar in the edit options.
        3)    Alternatively you can copy all the appointments in one calendar to another and delete the original.
        4)    To copy a calendar ctrl-click on it from the menu that appears when you select the calendar button (top left corner of iCal) and choose export (export it to your desktop for ease)
        5)    Double click the exported file and choose the new empty calendar to import them into.
        6)    Ctrl-click on the original calendar from the menu that appears when you select the calendar button and choose delete.

  • SSI appears in one page, not another

    In the home stretch on my Dreamweaver web page (thanks for
    all the help so far), I find that the SSI "call" tag that summons
    up the navbar in my index.shtml file does not work in a different
    file ("Advising1"). The navbar (in a file called "navigation.html")
    is in the same (top) directlry as index.shtml. However, when I put
    "Advising1" in the same directory as the index and navigation
    files, the navbar appears just fine in Advising1. I thought that
    putting "virtual" in the SSI tag allowed the "calling" file to find
    the "called" file in any of the folders on the web site, but I
    guess I was wrong. So:
    How do you correctly write the SSI tag so that a file may
    call an SSI file from another folder or directory?
    Here is the mockup of the web page: (click on Advising ->
    English Advising):
    http://s87217786.onlinehome.us/Englishx/
    As always, thank you in advance.

    >
    > Pretty neat trick. What does it mean?
    it's not a trick. it's html code with a WAG Wild A$$ Guess at
    the path the
    include should have.
    this has been complicated because the include contains both a
    flash .swf and
    the xaramenu crap. My next guess if i would try would be
    paths inside the
    include file should be site root relative, and there might be
    some body tag
    trigger for the .js crap.
    here's the source of the page you just uploaded,
    http://s87217786.onlinehome.us/Englishx/Advising/temp.shtml
    <body>
    <p>start one
    <div id="navigation">
    <div id="navimage">
    <object classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
    b#version=7,0,19,0" width="160" height="160"
    title="FlashFaces">
    <param name="movie" value="Graphics/EnglishFaces.swf"
    />
    <param name="quality" value="high" />
    <embed src="Graphics/EnglishFaces.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="160"
    height="160"></embed>
    </object>
    </div>
    <div id="navbar">
    <script webstyle4>document.write('<scr'+'ipt
    src="xaramenu.js">'+'</scr'+'ipt>');document.write('<scr'+'ipt
    src="Graphics/navbargraphics/navgraphics.js">'+'</scr'+'ipt>');/*img
    src="Graphics/navbargraphics/NavGraphics.gif"
    moduleid="navbar
    (Project)\NavGraphics_off.xws"*/</script>
    </div>
    </div>
    end
    one
    </p>
    <p> </p>
    <p>start two <div id="navigation">
    <div id="navimage">
    <object classid="clsid
    27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
    b#version=7,0,19,0" width="160" height="160"
    title="FlashFaces">
    <param name="movie" value="Graphics/EnglishFaces.swf"
    />
    <param name="quality" value="high" />
    <embed src="Graphics/EnglishFaces.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="160"
    height="160"></embed>
    </object>
    </div>
    <div id="navbar">
    <script webstyle4>document.write('<scr'+'ipt
    src="xaramenu.js">'+'</scr'+'ipt>');document.write('<scr'+'ipt
    src="Graphics/navbargraphics/navgraphics.js">'+'</scr'+'ipt>');/*img
    src="Graphics/navbargraphics/NavGraphics.gif"
    moduleid="navbar
    (Project)\NavGraphics_off.xws"*/</script>
    </div>
    </div>
    end two</p>
    <p> </p>
    <p>start
    three[an error occurred while processing this directive]
    end
    three</p>
    <p> </p>
    <p>start four[an error occurred while processing this
    directive]
    end four</p>
    </body>
    </html>
    what that means:
    the SSI include for one and two do work. Three and Four don't
    work. Since
    the site root relative path of test one works, use that:
    <!--#include virtual="/Englishx/navigation.html"-->
    That the included file doesn't display anything in subfolders
    when the ssi
    does work is another problem. And it's not my problem. You
    tired me out.
    goodbye.

  • Fading between two pages & controlling one MC from another.

    Let me see if I can explain this properly. I usually use a motion tween and the alpha channel to fade movie clips in or out. What I am currently trying to do is fade one page out and another in, but it could be one of several MCs. I basically have four "pages" for a website including services, portfolio, about, and contact. I have icons on my navigation bar (which is going to be imported into my XHTML seperately so it can float them according to the users window size). The icons need to navigate between the pages and the pages need to fade in and out (eg. fade in the Services MC when the user clicks on the services icon, and fade out of it and into the Portfolio MC when the user clicks on the portfolio icon). Please keep in mind that the icons and pages are in completely different .fla/.swf files because I couldn't figure out how to float them in Flash after several hours of looking around online, but know I can easily do it using div tags + CSS in XHTML.
    If someone could quickly explain how to "gotoandplay" a label in a different .swf file (communicate between the .swf NavBar and my main .swf) as well as fade out of the current MC (whichever page the user is currently on) before fading into new page (according to the icon the user clicks on), I'm sure I could 'fill in the blanks' from the rest of the AS3 and Flash I already know. The page also needs to fade out of whatever page it's currently on when the user clicks on the hide button (located on the page in the main .swf file). There is also several subpages on each page (which shouldn't be a big deal if I can figure the rest of this out).
    I'm going to be using this same concept for nearly all of the websites I design & develop in the future and really need to know how to do this for the current site I'm working on. I would greatly appreciate any suggestions on how to accomplish these two things.
    P.S. Please keep in mind I'm not an advanced user in AS3, but am very computer savy, and have done my share of programming in the past. I looked around for hours online to try and complete this without using the forum, but have come up with links to dead tutorials and short answers left and right. I'm hoping I won't come across the same here.
    From what I've read so far I believe I can use tweening in ActionScript instead of a motion tween on the timeline to fade in and out of clips and believe that's the method to use to accomplish what I'm trying to do. Correct me if I'm wrong though.

    I'm not looking for a "tutorial created especially for me".... Just perhaps someone that can copy and paste some code from a similar project that they have done so I understand how to do it.
    You could have simply put here's a tutorial for how to use TweenLite to crossfade between four pages, and here's one that will let you pass information between two .swf files. If you recently watched the tutorials then it wouldn't take long to find them (maybe you have them bookmarked) and post a couple links.
    Anyways, I just found an excellent tutorial on how to crossfade using TweenLite (found here) and an article that explains how to pass information from one .swf to another (here). It took some searching and knowing exactly what I was looking for to find them, but that's a much better answer for someone looking to do those two things than I've found here (or elsewhere for that matter).

  • Passing value from one jsp to another?

    how to pass value from one jsp to another? i have a value assigned in the link, i want to pass that value to another jsp page?
    please help with code?

    Instead of the value being passed, i am getting a null value.
    Here is my calendar code:
    <%@page import="java.util.*,java.text.*" %>
    <html>
    <head>
    <title>Print a month page.</title>
    </head>
    <body bgcolor="white">
    <%
                  boolean yyok = false;
                  int yy = 0, mm = 0;
                  String yyString = request.getParameter("year");
                  if (yyString != null && yyString.length() > 0)
                      try
                          yy = Integer.parseInt(yyString);
                                  yyok = true;
                       catch (NumberFormatException e)
                          out.println("Year " + yyString + " invalid" );
                  Calendar c = Calendar.getInstance( );
                  if (!yyok)yy = c.get(Calendar.YEAR);  
                         mm = c.get(Calendar.MONTH);
    %>
                  <table align="center">
                      <tr>
                  <td>
                       <form method=post action="calendar.jsp">
                          Enter Year : <select name="year">
    <%         
                 for(int i= yy;i<=2010;i++)
    %>
                  <OPTION VALUE= <%=i%> > <%=i%> </option>
    <%       
    %>
              </select>
                      <input type=submit value="Display">
                      </form>
                      </td>
                    </tr>
    <tr>
                     <table>
    <%!
    String[] months = {"January","February","March",
                    "April","May","June",
                    "July","August","September",
                    "October","November", "December"
    int dom[] =     {
                        31, 28, 31, 30,
                        31, 30, 31, 31,
                        30, 31, 30, 31
    %>
    <%
                int leadGap =0;
    %>
    <div id="t1" class="tip"><table border="4" cellpadding=3 cellspacing="3" width="250" align="center" bgcolor="lavender">
    <tr>
    <td halign="centre" colgroup span="7" style="color:#FF0000;">
    </colgroup>
    <tr>
    <td>
    <%
              GregorianCalendar calendar =null;
              for(int j=0;j<12;j++)
                        calendar = new GregorianCalendar(yy, j, 1);
                  int row = 1 ;
                  row = row + j;
        %>
              <table>
                <tr>
              <colgroup span="7" style="color:#FF0000;">
              </colgroup>
                </tr>
              <tr align="center">
              <th colspan=7>
                  <%= months[j] %>
                  <%= yy %>
              </th>
              </tr>
    <tr>
    <td>Sun</td><td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td>Sat</td>
    </tr>
    <%
        leadGap = calendar.get(Calendar.DAY_OF_WEEK)-1;
        int daysInMonth = dom[j];
        if ( calendar.isLeapYear( calendar.get(Calendar.YEAR) ) && j == 1)
        ++daysInMonth;
        out.print("<tr>");
        out.print(" ");
          for (int h = 0; h < leadGap; h++)
           out.print("<td>");
          out.print("</td>");
        for (int h = 1; h <= daysInMonth; h++)
          out.print("<td>");
          out.print("<a href=desc.jsp>" + h + "</a>" );
          out.print("</td>");
        if ((leadGap + h) % 7 == 0)
            out.println("</tr>");
    out.println("</tr></table></div>");
    if( row%3 != 0)
    out.println("</td><td>");
    else
    out.println("</td></tr>\n<tr><td>");
    %>
    </html>I need to pass the value in 'h' to the desc.jsp page.
    my code for desc.jsp is :
    <html>
    <head>
    </head>
    <body bgcolor="lightblue">
    <form method=post action="Calenda.jsp">
    <br>
    <%= request.getParameter("h") %>
    <h2> Description of the event <INPUT NAME="description" TYPE=TEXT SIZE=20> </h2>
    <BR> <INPUT TYPE=SUBMIT VALUE="submit">
    </form>
    </body>
    </html>But i am not able to pass the value. The 'h' value contains all the date. i want to pass only a single date, the user clicks to the other page. please help

Maybe you are looking for