A div is not correctly positioned on an image.

a page only for the moment.

http://tdws.azurewebsites.NET/samples/commscaf/

The problem I have is that the box with the red border is supposed to rest on the top of the image instead of resting in the border.

I got to the border there to develop according to the browser.   (a background image comes here eventually.)

sample.jpg

I have absolute and relative positioning together but do not know how to anchor this box in position over the image.

Thanks in advance for any comments.

PS - I put the css code in the document that people can see the code I have.

#banner {}

Width: 960px;

min-height: 300px;

position: relative; / * to control the absolute positioned child elements * /.

}

/ * adjust the values of top, left as Req'd * /.

{#bannerBlock}

position: absolute;

top: 150px;

left: 250px;

border: crete thick #F00;

border-radius: 16px;

background-color: #CCC;

padding: 5px;

Width: 300px;

z-index: 100;

}

Nancy O.

Tags: Dreamweaver

Similar Questions

  • Images do not correctly positioned in Bulk Email

    Hello

    I'm generating HTML files for use with Max Bulk Emailer. I used to do with Freeway Express on an Apple and one or some settings I could copy and paste my HTML index file in the section of the email messages and the 'web page' or a newsletter would work fine.

    I am now using a PC and cannot use the highway so I'm Muse, all is well published the site on my server and the "snapshot" of the site seems well. However when I copy and paste the source code of the HTML directory in the emailer the email puts all the images and text stacked one after the other.

    Any ideas how to solve this problem? I think I need to make a simple change in the index.html file or make changes to the Muse.

    Thank you very much, Steve

    Unfortunately at this time you cannot use Muse to the e-mail templates. Muse uses absolute positioning, which is not supported in e-mail readers.

  • Div not vertically position

    Well, the title is pretty self-explanatory
    Info: I use a demo version of Dreamwiever CS 6 (may be because?)

    I am building a 'demo' of a site I need to do but Divs are not vertical as in this tutorial: http://www.carlosaleman.com/tutorial3.html
    my code is:

    <! doctype html >

    < html >

    < head >

    < meta charset = "utf-8" >

    <!-TemplateBeginEditable name = "doctitle"-->

    < title > Versilia FM 103.5 Radio < /title >

    <! - TemplateEndEditable - >

    <!-TemplateBeginEditable name = "head"->

    <! - TemplateEndEditable - >

    < link href = "Css/Radioversilia.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "header" > content for id "header" goes here < / div >

    < div id = 'menu' > content for id "menu" goes here < / div >

    < div id = 'hand' >

    < div id = "leftcol" > content ID "leftcol" goes here < / div >

    < div id = "rightcol" > content ID "rightcol" goes here < / div >

    < / div >

    < div id = "footer" > content ID "footer" goes here < / div >

    < / div >

    < / body >

    < / html >

    And CSS

    @charset "utf-8";

    {#wrapper}

    Width: 1024px;

    margin: 0 auto;

    }

    {body

    background-color: #000;

    left margin: 0px;

    margin-top: 0px;

    margin-right: 0px;

    margin-bottom: 0px;

    }

    #header {}

    height: 335px;

    Width: 901px;

    background-image: url (.. / immagini/Header.png);

    background-repeat: no-repeat;

    float: left;

    }

    {#menu}

    background-image: url (.. / immagini/Bannerino.png);

    background-repeat: no-repeat;

    float: left;

    height: 90px;

    Width: 901px;

    do-family: "Comic Sans MS", cursive;

    padding-top: 17px;

    Word-spacing: 70px;

    text-align: center;

    color: #FFF;

    }

    #main {}

    height: auto;

    float: left;

    }

    {#leftcol}

    padding: 2px;

    float: left;

    height: auto;

    Width: 301px;

    }

    {#rightcol}

    float: right;

    height: auto;

    Width: 340px;

    margin-right: 0px;

    }

    #footer {}

    height: 10px;

    }

    what I am doing wrong?

    P. S.
    Sorry if I'm feeling a little rough... but my English is very bad

    Try this:

    CSS:

    #footer {}

    Clear: both;

    min-height: 10px;

    }

    HTML:

    Content ID "leftcol" goes here

    Insert here the content of id 'hand '.

    Content ID "rightcol" goes here

    Nancy O.

  • Contact form displays does not correctly?

    Hello

    I have two contact form on this Web page - the two are not display correctly (the box behind the text is only half the size, and the position on the page is not correct).

    Also - the Facebook and twitter as the buttons at the top of the page move move down on 100px when you load the page - no idea why?

    Help!

    My page link is: http://thededdingtons.businesscatalyst.com/index.html

    A big thank you everyone!

    Hello

    Looks like you have solved the problem. Please let us know if you have another question.

  • Parent div is not expanding

    If anyone has a spare moment, please take a look at this code and tell me why the #content div is not expanding to include the div of the child it contains.
    Source code and style sheet below:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 > Index < /title >

    < link href = "global.css" rel = "stylesheet" type = "text/css" / > "

    < / head >

    < body >

    < div id = "container" >

    < div id = "header" >

    < div id = "logo" > < / div >

    <! - end .header - > < / div >

    < / div >

    < div id = "content" >

    < div id = "pagetext" >

    Instructions of < h1 > < / h1 >

    < p > note that the CSS for these schemas is strongly commented. If you do most of your work in Design mode, have a look at the code for advice on the use of CSS for the layout fixed. You can delete these comments before you launch your site. "Learn more about the techniques used in these CSS layouts, read this article on Adobe Developer Center - < a href ="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts< /a >." < /p >

    Compensation method < h2 > < / h2 >

    < p > because all the columns are launched, this layout uses a clear: both declaration in rule .footer.  This technique of compensation, the forces of the .container to understand where the columns end in order to show borders or background colors put you on the .container. If your design requires that you remove the the .container .footer, you will need to use a different compensation method. The most reliable is to add a & lt; BR class = & quot; clearfloat & quot; / & gt; or & lt; div class = & quot; clearfloat & quot; & gt; & lt; / div & gt; After your last floating column (but before the closing of the .container). This will have the same effect compensation. < /p >

    Replacement of the Logo < h3 > < / h3 >

    < p > an image placeholder was used in this provision in the .header where you may want to place a logo. It is recommended that you delete the placeholder and replace it with your own linked logo. < /p >

    < p > < / p >

    < / div >

    < div id = "sidebar1″" >

    < p > the links above demonstrate a basic navigation structure using a style with CSS unordered list. Use it as a starting point and modify properties to produce your own unique look. If you have need of flyouts, create your own by using a Spry menu, a menu widget from Adobe Exchange or a variety of other javascript or CSS solutions. < /p >

    < p > if you want the navigation along the top, simply move the ul.nav to the top of the page and recreate the style. < /p >

    <! - end .sidebar1 - > < / div >

    < div id = "have" > content for id 'have' goes here < / div >

    <! - end content - > < / div >

    < div id = "footer" >

    < p > this .footer contains the statement of position: relative; giving hasLayout in Internet Explorer 6 for the .footer and it erase properly. If you are not required to support IE6, you can remove it. < /p >

    <! - end .footer - > < / div >

    < / body >

    < / html >

    @charset "UTF-8";

    / * CSS document * /.

    {body

    Background: # 42413 repeat;

    margin: 0;

    padding: 0;

    Color: #000;

    do-family: Verdana, Arial, Helvetica, without serif.

    do-size: 90%;

    line-height: 1.4;

    }

    / * ~ ~ Tag of the element selectors ~ ~ *.

    UL, ol, dl {/ * because variations between browsers, its good practices with zero padding and margin on lists # for consistency, you can specify the amounts that you want here, or on the list elements (LI, DT, DD), they contain # do not forget what you are doing here to cascade to the #nav list unless you write a more specific selector # * /}

    padding: 0;

    margin: 0;

    }

    H1, h2, h3, h4, h5, h6 {p}

    margin-top: 0;           / * removing the top margin around a problem gets where margins can escape their div # container margin of the low rest it will take away from all the following # * /.

    padding-right: 15px;

    padding-left: 15px; / * adding padding to the sides of the elements in divs, instead of divs themselves, gets rid of any box model mathematics # div nested with side pads can be used also as an alternative method # * /.

    }

    an img {/ * this switch how to remove the default blue border displayed in some browsers around an image when it is surrounded by a link * /}

    border: none;

    }

    / * ~ ~ Style for your site links must remain in this order - including the Group of selectors that create the hover effect # ~ ~ * /.

    a: link {}

    color: # 42413.

    text-decoration: underline; / * unless you style your links appear to be extremely unique, it is best to predict stresses quick visual identification * /.

    }

    a: visited {}

    color: #6E6C64;

    text-decoration: underline;

    }

    a: hover, a: active, a: focus {/ * this group of selectors will give a browser keyboard the same experience of hovering as the person who uses a mouse # * /}

    text-decoration: none;

    }

    / * ~ ~ This container fixed-width surrounds the other div ~ ~ * /.

    #container {}

    Width: 960px;

    Background: #FFF;

    margin: 0 auto;

    / * [disabled] position: relative; */

    height: 150px;

    }

    / * ~ ~ the header is not given a width # will extend across the width of your layout # it contains an image placeholder to be replaced by your own logo linked ~ ~ * /.

    #header {}

    background: #ccc;

    height: 152px;

    }

    #logo {}

    position: relative;

    height: 460px;

    Width: 300px;

    Background: transparent url (.. / images/logo.png) no repeat 0px 0px;

    Top: 10px;

    float: right;

    / * [disabled] right:-650px; */

    }

    #content {}

    padding: 10px 0;

    Width: 960px;

    margin: 0 auto;

    Background: #fff;

    / * [disabled] position: static; */

    }

    {#pagetext}

    float: left;

    Width: 600px;

    }

    */

    {#sidebar1}

    float: left;

    Width: 300px;

    background: #EADCAE;

    / * [disabled] padding-bottom: 10px; */

    / * margin-top [disabled]: 320px; */

    / * [disabled] clear: left; */

    / * left margin [off]: 60px banner; */

    }

    {#photobar}

    Clear: both;

    float: left;

    height: 50px;

    Width: 100%;

    Background: #666;

    }

    / * ~ ~ This group selector gives the lists in the space of #content area ~ ~ * /.

    ul, ol {} #content #content

    padding: 0 15px 15px 40px; / * This padding reflects good stuffing in titles and paragraph NET above # padding was placed on the bottom, because the space between other items in lists and on the left to create the indentation # these can be set as you wish # * /.

    }

    / * ~ ~ The list of navigation styles (can be removed if you choose to use a contextual menu premade as Spry) ~ ~ * /.

    ul #nav {}

    list-style: none; / * This command deletes the list marker * /.

    border-top: 1px solid #666; / * This creates the top border for the links - all the others are placed using a bottom border on the LI * /.

    margin-bottom: 15px; / * This creates space between the following content browsing * /.

    }

    ul li {} #nav

    border-bottom: 1px solid #666; / * This creates separation button * /.

    }

    #nav UL, the ul #nav: visited {/ * these selectors of grouping allows you to ensure that your links to retain their look button even after the ongoing visit * /}

    padding: 5px 5px 5px 15px;

    display: block; / * Gives the link properties block causing it to fill the whole LI containing TI # this causes the entire area responds to a mouse click # * /.

    Width: 160px;  / * This width makes all the clickable button for IE6 # if you do not need to support IE6, it can be removed # calculate the width by subtracting the padding on this link of the width of your sidebar containing # * /.

    text-decoration: none;

    background: #C6D580;

    }

    ul #nav a: hover, ul #nav a: active, ul #nav a: focus {/ * this changes the color background and text for browsers of keyboard and mouse * /}

    background: #ADB96E;

    color: #FFF;

    }

    / * ~ ~ Footer ~ ~ * /.

    #footer {}

    padding: 10px 0;

    background: #FF0;

    position: relative; / * This gives hasLayout IE6 to well clear * /.

    Clear: both; / * This clear property forces the .container to understand where the columns end up and contain them * /.

    }

    / * ~ ~ various float/clear classes ~ ~ * /.

    .fltrt {/ * this class can be used to float right to the item in your page.} The floating element must precede the element it should be next to the page. */

    float: right;

    left margin: 8px;

    }

    .fltlft {/ * this class can be used to float an element on your page.} The floating element must precede the element it should be next to the page. */

    float: left;

    right margin: 8px;

    }

    .clearfloat {/ * this class can be placed on a < br / > or div empty as the final element after the last div floating (in the #container) if the #footer is removed or put out the #container * /}

    Clear: both;

    height: 0;

    font size: 1px;

    line-height: 0px;

    }

    -Change

    #content {}

    padding: 10px 0;

    Width: 960px;

    margin: 0 auto;

    Background: #fff;

    / * [disabled] position: static; */

    }

    on this subject.

    #content {}

    padding: 10px 0;

    Width: 960px;

    margin: 0 auto;

    Background: #fff;

    overflow: hidden;

    }

  • Once second apDIV is added, it does not hold position

    I'm new to div tags and failed to get the second to stay in place when you add. the first adDIV works very well. originally, the code was:

    < body id = "page1" >

    "< div id ="apDiv3"> < img src =" images/christophers_g.png"alt =" "width ="65"height ="65"/ > < / div >

    "< div id ="Divap2"> < img src =" images/cafe49_g.png"alt =" "width ="65"height ="65"/ > < / div >

    < div id = 'hand' >

    I moved to the top of the fist DIV < div id = 'hand' > and it goes out of whack. everything was fine.

    Thanks in advance for any help.

    Since you mention divs PA, I thought I'd share this other post on divs PA and why they don't work for the General layout. Does not have the validation of the CSS to your page, but most likely, see the page exactly as it is responsible for... but you probably forgot something... a VERY important rule...

    Old post:

    In my opinion, one of the worst features of Dreamweaver is the way in which it promotes the use of divs PA for web page layout.

    It would be a lot less annoying if they had built in a feature film to teach and improve the "Natural Flow" design rather than drag and drop or AP div positioning.

    You have other options. Yes, use Natural Flow, which means that the elements of the page are analyzed by starting at the top of the page, Web browser code, then line two, then three, all the way to the bottom of line.

    Using a stated position as absolute said and browser to take this element out of the natural flow and do something different with it. If you have the browser analysis in order from top to bottom, then throw in some elements that are completely out of traffic... they can be very difficult to control, because there are special rules that apply to items with reported positions.

    Least under standing of these rules is what I call the "rule of the Parent. Giving an element declared as relative or absolute position can have huge differences in the way in which this element appears actually depending on whether or not the PARENT of this element has also a declared position.

    So a div which is position: absolute for example will display a way if it's parent also has a declared position and it will show in a completely different way if it's parent is NOT a declared... position to consider:

    If parent container a div IS NOT also has a declared position, the child

    1 of 2 things will do so.
    If position: relative, he positions himself as you wish but space will remain as if this element was still in the natural flow. So you can move the item 500 X 100 and rollover, but a space of 500 X 100 will be left, as if it was still there.
    If position: absolute, child is positioned against the window of the browser and this position does not change even if the window contracts or expands.

    So don't forget to give a position with the parent and the child

    .

    Failure to follow this rule is the main reason why the use of declared positioning fails.

    Best wishes

    Adninjastrator

  • Div do not stick to the top!

    Hi, I know it must be very very easy, but the layout models DW even generate the same problem! The upper div is not sticky to the top of the page. Here is the code:

    < style type = "text/css" >

    <!--

    {body

    margin: 0;

    background-color: #333333;

    padding: 0;

    text-align: center;

    }

    #left {}

    background-color: #999900;

    float: left;

    width: 300px;

    }

    #right {}

    background-color: #CCCCCC;

    width: 100%;

    width: 300px;

    float: right;

    }

    #centre {}

    margin-left: 300px;

    margin-right: 300px;

    background-color: #FF6633;

    }

    #container {}

    background-color: #CCCC33;

    width: 100%;

    text-align: left;

    margin: 0;

    padding: 0;

    }

    {.clearfloat}

    Clear: both;

    height: 0;

    font size: 1px;

    line-height: 0px;

    }

    ->

    < / style >

    Here is the structure:

    < div id = "container" >

    < div id = "left" > content LEFT < / div >

    < div id = "right" > content RIGHT < / div >

    < div id = "Center" >

    < p > content CENTER < /p >

    < p > Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, Aeacus ipsa quae ab illo inventore veritatis and almost architectural beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos which ratione voluptatem sequi nesciunt. Neque porro quisquam is, that dolorem ipsum quia dolor sit amet, 195kgs, adipisci total, sed quia non numquam eius modi tempora incidunt ut developed and pain magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis so laboriosam, nisi ut aliquid ex ea Conven consequatur? Quis autem vel eum iure SMF in ea voluptate total esse quam nihil not consequatur, vel illum which dolorem eum price quo voluptas nulla pariatur < /p >

    title-under < p > < /p >

    < p > Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, Aeacus ipsa quae ab illo inventore veritatis and almost architectural beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos which ratione voluptatem sequi nesciunt. Neque porro quisquam is, that dolorem ipsum quia dolor sit amet, 195kgs, adipisci total, sed quia non numquam eius modi tempora incidunt ut developed and pain magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis so laboriosam, nisi ut aliquid ex ea Conven consequatur? Quis autem vel eum iure SMF in ea voluptate total esse quam nihil not consequatur, vel illum which dolorem eum price quo voluptas nulla pariatur < /p >

    < p > < / p >

    < div class = "clearfloat" / >

    < / div >

    < / div >

    Here is a screenshot:

    Also, why I have to place the divs like this: LEFT RIGHT CENTER fot to be rendered correctly

    When common sense (and reading) should dictate: CENTRE LEFT?

    Try to add this universal selector rule to your CSS:

    / * put the parameters of the default browser on all zero * /.

    * {margin: 0; padding: 0; line-height: 100 %}}

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • AP DIV will not move on browser resize

    I tried all the suggestions, but I can't get my transparent GIF, on its own

    layer, stay lined up where it is supposed to be positioned, when re-sizing of a browser window.

    I put 0 Automatic margin, relative position, etc., that nothing works

    I have a 1 layer only and is used exclusively for this "special offer" chart which is added

    on my site from time to time. I DO NOT have all my paintings in a DIV element, but I

    my main table, which contains all the others, set CENTER alignment for all rest centered when browser

    window is resized (except the layer AP DIV containing my chart, who refuses to move)

    Thank you

    The second answer worked because the first has a div with relative position, but there is no rule for the absolute position position relate to. When the relative position has been inserted into the table, it worked because it was positioning set (width, margin) and the absolute position refers to the relative position. Since there was nothing to the absolute position pertaining to the first code, that it was not absolutely positioned in the width and margin of the table.

    Hope that helps!

  • The requirements for the universal Clipboard not correct?

    Hello

    The requirements for the universal Clipboard for iMac is not correct. It should work on my iMac mid 2011, but it doesn't. It works on my Macbook Air mid-2013, so I know it works in general.

    You do not discuss Apple in these forums, we are all users like you.

    If you have any questions please ask, however if you have any comments for Apple please leave at www.apple.com/feedback.

  • with firefox 43 yahoo and yahoo mail doesn't work does not correctly

    With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.

    I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.

    Thanks for the help!

  • 10 charts of Thunderbird Windows are not correctly RESOLVED caused by hardware acceleration

    All my Thunderbird 38.0.1 graphics do not correctly display in Windows 10 (10130)

    I found the answer. I had to disable hardware acceleration.

    Options > advanced
    Use hardware acceleration when available.

  • Thunderbird does not accept the user name and password, an error that the user name and password are not correct

    Thunderbird esteem username and password are not correct,

    Gmail account?

  • My site is not correctly appear in the Firefox browser. Can you help me?

    My site is not correctly appear in the Firefox browser. Can you help me?

    My Web site: http://hayro.la

    You can have zoomed pages by accident.
    Reset the zoom of page on pages that are causing problems.

    • View > Zoom > reset (Ctrl / command + 0 (zero))

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Pages of Firefox won't load does not correctly. User name and other action buttons do not respond when clicked. I tried the Java toolkit release, but who doesn't.

    Some sites such as Netvibes and other sites containing columns all of a sudden not correctly displayed. Registration or login buttons do not respond.

    The plugins are up to date.

    You can try the following steps in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • disc eject does not correctly persist

    I get several error messages that my external hard drive was not ejected correctly. I ejected it, turned off, unplugged and then reverse the process. Whenever my screen locks when I open it there are several messages not eject disks does not correctly.

    Restart your Mac, and then drag the disc on the desktop for the external drive to the trash.

Maybe you are looking for