Centering the div 'container' does not not despite the good CSS coding

In fact, it is the container in the container.

It's been a while since I've posted, because I was without a problem for a long time (or at least have been able to resolve myself) to get a good idea of my problem, it is visualized here.

I decided to put it online already because the problem is not necessarily so dire. Don't take away the fact he annoys me and is not just look right.

This is an updated version of the language selection screen I used to have, where it all used to work perfectly. The div container only has a specified background color and within the container is another div 'container' that inherits all the images and buttons.

The encoding is as follows:

"< div id="container">".

"< div id="langscreen">."

"" < div id= "fclogo" > < img src= "images/Talenkeuze/nieuw/fclogo.png" width= "148" height= "102" / > < / div > "

"" "" < div class= "dkbutton" > < a href= "dk/home.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image2','','images/Talenkeuze/nieuw/dkbuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/dkbutton.png" name= "Image2" width= "36" height= "36" border= "0" id= "Image2" / > < /a > < / div >

"" "" < div id= "sebutton" > < a href= "is / index.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image3','','images/Talenkeuze/nieuw/sebuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/sebutton.png" name= "Image3" width= "36" height= "36" border= "0" id= "Image3" / > < /a > < / div >

"" "" < div id= "nlbutton" > < a href= "nl/home.html" onmouseout= "MM_swapImgRestore()" onmouseover= "MM_swapImage('Image4','','images/Talenkeuze/nieuw/nlbuttonover.png',1)" > < img src= "images/Talenkeuze/nieuw/nlbutton.png" name= "Image4" width= "36" height= "36" border= "0" id= "Image4" / > < /a > < / div >

"" "" < div id= "esbutton" > < a href= '/ index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/Talenkeuze/nieuw/esbuttonover.png',1)"> < img src="images/Talenkeuze/nieuw/esbutton.png" name="picture5" width="36" height="36" border="0" id="picture5"/ > < /a > < / div >
"" < div id= "bitesnew" > < img src= "images/Talenkeuze/nieuw/applebitesnew.png" width= "840" height= "200
" /> < / div >
< / div >

Some might say don't not to use the divs so much, and I might agree with them. The only thing is that this has been work best for me and my way of thinking (this using entire dreamweaver was a self-taught), and in the end, the results are generally the same. The CSS for the div in question is the "langscreen" div, and its exact codification is the following:

{#langscreen}

Width: 919px;

margin-right: auto;

left margin: auto;

All the images that are on the page have been placed using absolute positioning. I guess that it is the main cause of my problem of centering, because CSS coding to center the div "langscreen" is correct, that I don't know a way around. Also, in the old version it Center, despite the use of absolute placement in the legacy divs.

Any ideas would be great! Thank you in advance!

Hello

Set the div #langscreen relative position and it'll work.

{#langscreen}

Width: 919px;

margin-right: auto;

left margin: auto;

position: relative;

}

David

Tags: Dreamweaver

Similar Questions

  • Why the tool completely slice does NOT despite the fact that the layer is NOT locked, or 'Lock Slices' accidentally on is checked in the menu 'View' Illustrator CS6?

    Well want to can someone help pointing at me - why the tool cuts (for a simple in CS6 path) totally does NOT despite the fact that the layer is NOT locked, OR 'Lock Slices' accidentally on is checked in the menu 'View' Illustrator CS6?

    It is the slice tool you are trying. The only wrong.

    Use a knife or scissors.

  • I have works suite 2005-but my laptop does not read so good

    but my laptop does not read if good, Cd is in gd condition, how can I get better results when need to use it?

    Clean the cd with water / use it on another machine to test his condition. Try a different brand cd to test the drive.

  • graph XY on the TAB container does not update

    Hello

    I have attached a simple VI, and I understand why I see this behavior:

    When I run the VI then the first tab is visible (where the xygraph is located), I get what I expect: I calculate the offsets, and I redraw the graph with the property node.

    But if I run the VI during the second page of the TAB is visible, I get a wrong result, the graph does not the calculation of the compensation and modification on the chart. (Table gives zero element)

    This means that, if my graphic is in a TAB page which is not displayed, I can't use its property nodes?

    Thanks for the help!

    Are yous because this for any node property or specifically the sliders?  You see the same behavior if you do the invisible Grpah XY but leave on tab 1.  It seems that the properties of cursors do not work correctly if the XY graph is not visible.  I consider cela a bug.

    How do you determine the values of the cursor?  A user highlights them, or their calculation and setting in?  If hardset or calculated at a given time, store the values of cursor and use them instead of watching the cursor property.

    If the user selects the, use the structure of the event to trigger an event when the user releases the cursor.  Get slider right there, store them and use these values.

  • Number of features in the CONTAINER does not work

    Hi all
    I was working on a simple word processor for the local language using JTextPane and RTF. The program works fine in Netbeans. But the JAR file does not work. For example, the program should save on the hard drive but also to read the file. The JAR version does not work so that it works correctly in Netbeans. The JAR is created using Netbeans. Can you help me?

    Thank you.

    (1) we have no idea what class instance "editor" made reference.
    (2) always specify the character encoding when reading and writing the characters or you plan to use the encoding that may or may not support characters to work of characters by default. You can use OutputStreamWriter and InputStreamReader in order to be able to specify the character encoding. I suggest that you use "utf-8", given that it will work for all UNICODE characters.
    (3) your exception handling throws away most of the useful information. Most of the logging system to pass an exception without having to convert to a string.
    (4) Please use

     tags to make code readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • Div positioning does not work in Firefox w ApEx 4.0.1

    I have a page that has been developed with ApEx 3.2. It shows a dynamically generated report in which there are several elements of apex_item.text. Each element becomes a unique ID by concatenating a name with the row ID. Each line has number (SKU) of information. When the text qty item gets javascript focus causes the item availability div to appear just below the qty selected text element.

    We write a similar application of ApEx 4.0.1. When I run the page that it works as expected. When I run it in Firefox (3.6) div availability is displayed in the same location, left and top, regardless of how much of the field is selected.

    Here's the javascript code:
      function showAvailability( pThis ) {
        var l_ndx = pThis.id.substring(4);
        var gAvail = new htmldb_Get(null,$v('pFlowId'),
                                  'APPLICATION_PROCESS=PQ_GET_AVAILABILITY', 0);
        gAvail.addParam('x01', $v('item_nbr_' + l_ndx));
        gReturn = gAvail.get();
    
        var locateThisTop = 42;
        var locateThisLft = -48;
        var node = pThis;
    
        while( node != null ) {
          locateThisTop += node.offsetTop;
          locateThisLft += node.offsetLeft;
          node = node.offsetParent;
        }
        $s('availability', gReturn);
        $x('availability').style.top = locateThisTop;
        $x('availability').style.left = locateThisLft;
        $x('availability').style.display = 'block';
      } /* end function showAvailability */
    Summary: It works on Firefox 3.2 apex. It works in ApEx 4.0.1 on I.E. It does NOT work in the ApEx 4.0.1 on Firefox.

    No idea why? More importantly, any ideas how to fix?

    Thank you
    Gregory

    CSS dimensions must include a unit of length. Prior to version 4.0, built-in themes APEX were designed to render in quirks mode, accepting any old HTML, CSS and JS tag soup. The new APEX 4.0 themes are designed to operate in standard mode, in which will be Firefox - correctly - ignore an invalid style rule. (In this case, it's IE that is non-compliant.)

    This new application uses a new theme of APEX 4.0? If so, try:

    $x('availability').style.top = locateThisTop + 'px';
    $x('availability').style.left = locateThisLft + 'px';
    
  • Vertical scroll bar in div table does not

    On this page with Spry tabs

    http://www.wiseye.org/wisEye_programming/campaign10/campaign2010newtabs-3.html

    On the second tab, I have a table next door I have to scroll about half right (more content).

    Scrolling displays grayed out, does not work. On the third tab, it works very well, who has stacked horizontally.

    Did anyone see anything in the code that it does not?

    < div style = "overflow-x: hidden; '. Overflow-y: scroll; Width: 290px; ">
    < table width = "100%" valign = "top" border = "1" cellspacing = "0" cellpadding = "1" >
    < b >
    < td width = "32%" rowspan = "4" > < span style = "do-size: small;" color: #9E2D1F; "> < a href =" link.pdf"target ="_blank"> District 1 < /a > < / span > < table >"
    < td width = "68%" > < table >
    < b >

    Also, it is not as tight to the edge like scrolling running the thrid tab, which is how I like it.

    Thank you very much!

    Inline styles should be avoided on web sites.

    Most of your CSS should be in external stylesheet (s) of your site.

    If you have a main.css you are using for the text, etc., put it there.

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

  • Container color does not "showing through" background CSS?

    Hi all -

    I know that this is perhaps a fundamental question of CSS, but as I'm just now to enter the make by hand, I look closer how things work (or are not) and do not find this one.

    Here is the example:

    http://www.turnerdesign.com/testsite/

    and the css:

    http://www.turnerdesign.com/testsite/test.CSS

    I have #container as a green color, but it does not show in the space to the right of the #rightColumn.

    I think it has something to do with the floats work... uh... or something

    Any help is appreciated!

    Thank you

    Andrew

    How Murray?  I've always used car and to date have not had any problems of cross browser...  (it is true that I don't have to use it that often :-)

    PS: after having a quick read of this: http://www.w3.org/TR/CSS21/visufx.html

    I guess that in some cases, the car can cause an overflow of the box?  Whereas it is 'hidden' will not...?

  • DIV scrollbar does not work in IE 6

    Posted yesterday, no response. Since then, I've discovered that this seems to be a problem in IE 6. Suggestions?

    Using a DIV set to overflow. I so scroll bars appear if the text is addded. Works fine on my three PC with IE and FF, but the client says that it does not work on his 3 computers at all (AOL, IE 6). I tested with IE 6 and she was right... the scroll bar does not just move.

    Here is the page: http://www.starkovichreporting.com/default.htm

    Here's the CSS:
    http://www.starkovichreporting.com/stylesheets/styles.CSS

    Suggestions?

    -Jesse

    Thank you. I found something similar too. But I found myself just to see the page a bit, so there is no need for a scroll bar. At the easy way. :-)

  • Firefox does not, despite having worked before, and I can not install or uninstall upgrades.

    Using Windows 7 Home Premium - have not had a problem prior to the opening of Firefox, but now it does not open. When I try to uninstall or install the update I get the message that I need to first close Firefox - it does not run and I rebooted and use management tasks without success. FAQ solutions all seem to require that you be in Firefox, which is not possible under these conditions.

    You are welcome.

    Could you please click on the button "Solved" so that your message is taken out of the loop?

    Thank you.

  • property to a div Panel does not appear

    I have my Web page open in Design view.  I clicked in the area that contains the Div.  I see it at the bottom of the screen.  When I click it, I normally get the Panel CSS containing the tag DIV, but nothing is there and the property div Panel you want on the right so I could change something in it.  I have the CSS designer selected Panel.  I clicked on current and no CSS panel for the div.  I then clicked on the buttons of all.  When I on the whole, I don't see the desired Div name when I scroll the list.  I have to do something wrong.  Your help would be much appreciated.

    Don

    You have the right selected style sheet?

    Nancy O.

  • vSphere 5.5 using the uplink of LBT group that does not have a good way

    We use LBT since our recent deployment, which is new for us.  Everything seemed fine and dandy, until recently the VMs began dropping their connectivity to what looked like at random times.  The first fix out the door had to disconnect and reconnect the vNIC for each virtual computer.  Sometimes, it took a few tries before it worked.  We discovered that LBT moved VMS to the other group of uplink, which was a physical affair.  Unfortunately, someone didn't configure the port correctly on the remote switch, so while link came, he could not access the VLAN correct.  My question is, why the LBT would move virtual machines to an uplink group which did not have a good way?  He seeks only a physical link?  Looks like this problem waiting to happen.  Or, more likely, we have something misconfigured.  Any help would be wonderful, I don't like the idea to return to etherchannel or LACP with IP hash with blades chassis.  Thank you!

    My question is, why the LBT would move virtual machines to an uplink group which did not have a good way?

    Is that a "good path" can mean many different things in different circumstances of different points of view, if it's out of reach for LBT. It will be only on the physics of the status of the link. There is beacon probing too which can detect switch upstream outages but it can be used only with at least 3 vmnic uplinks and it has a few disadvantages, see:

    http://virtechgeek.com/2013/05/06/beacon-probing-vSphere-network-policy/

    http://thomaslowblog.blogspot.de/2011/10/vswitch-network-failover-detection.html

    You can use the dvSwitch health check feature to make sure that all the natachasery of all the hosts connected to a dvSwitch can access the same VLAN. It will not prevent LBT to move virtual machines, but it will at least raise an alarm if a bear cannot access a VIRTUAL LAN. Take a look at this article:

    http://wahlnetwork.com/2012/08/27/new-5-1-distributed-switch-features-part-1-network-health-check/

  • my printer does not print in good clolour even after new ink cartridges install clean nossles p

    my printer does not print good color, even after you installed new ink cleaned nossles new cartridges cartridges still print does not correctly

    Learn the steps in the document located here. The document includes steps to help solve the problems of print quality in a B110a. Hope this helps, Peter.

  • Query does not allow for good compilation of trigger

    I move some tables to test on my PC (ms access) to a server (oracle). Instead of typing these in hand in SQL * PLUS, I used CFQUERY to create my fields of data and tables. As Oracle requires a sequence and a trigger to reproduce the AutoNumber function, I also used CFQUERY to create triggers and sequences. The table and the sequence work very well. The trigger is my problem. When I use the code below and then try to insert a record into the table, I get an error: "MIKETEST_TRG is not valid and does not re-validation". If I go back and retype the creation of trigger through SQL * PLUS, everything works fine. I guess it has something to do with the compilation of the trigger and the slash at the end of my query below.

    Looking for suggestions how to fix or other means to recreate my access on my server oracle tables. Thanks in advance.

    < cfquery name = "crΘer" datasource = "datadrill_custom" >
    create or replace trigger miketest_trg
    Before Insert on miketest
    for each line
    Start
    Select miketest_seq.nextval in: double new.project_id;
    end;
    /
    < / cfquery >

    I've seen this before when you try to create triggers or still run anonymous PL/SQL blocks. The bad news is that it inserts the characters corrupt after each line. The good news is that you can get this by placing your set create statement "inline", i.e. all on one line, without line breaks. I just tested this with MX 7 and Oracle 9i and it worked. (Oh and leave the rear / as for SQL more.)

    Phil

  • CS5 after update to bld 4964: drag the divs PA does not work

    Now, noticing with some divs PA, I can't drag them into position in Design view. What is happening is the shaking of the div and jumps outside the relative container. I have to go to the code view to the div in place correctly.

    Not a huge thing, but you know how a mouse can drag and drop something... Well, the real problem is that I can't "Undo" everything that's happened.

    So, if intentionally or by accident is not serious... by dragging an AP div in design mode (regardless of distance) will remove its relative container and paste it into the measure. And command-z don't revert to the last State.

    Has occurred after update to get HTML5 integration.

    I'm on the Macintosh version.

    Does anyone else have this problem?

    Is it possible that you have checked the option "Prevent overlaps" displayed on the Panel Elements PA?

Maybe you are looking for

  • Correct procedure to change the Windows password

    This is similar to the post http://forums.lenovo.com/lnv/board/message?board=SpecialInterestsUtilities&message=3111&query.id=101... but I'm not looking for a workaround solution. I'm looking for the right way to avoid the problem. When I changed my W

  • Error 0 x 80070241

    Dear HP, I have a Hp pavilion g6 2288ca A10 AMD vision windows 8 and has error 0 x 80070241 and says "Windows cannot verify the digital signature for this file. A recent change in material or sofeware may have installed a file that is signed incorrec

  • Should I upgrade XP to Windows 7 or Vista, why & the one who?

    Appears XP becomes quickly extinguished what operating system do and why?  When I change I upgrade or install the new system?

  • Taking USB Flash drive supported Mass Storage Class Ver 1.1

    Hello I would like to know if the 128GB sandisk USB MSC Version 1.1 compatible player USB flash? If supported, is what model? Thank you very much for your advice. Kind regards Hong

  • Pop - up prevents access to the e-mail DellDock.exe

    After you install a systematic update, I discovered that when I tried to access my mail a pop - up of DellDock said that "the parameter is incorrect."  -What it means and how to fix it?