Cannot attack or absolutely position a panel during execution

As far as I see it, I can't do what I want to do in Flex. Am I wrong?

I want to place several panels in an Application to create the structure of an XML tree structure read running.

I need set the position of each new Panel with respect to the previous groups.

This means that I have to read the position of the panels created previously.

To do this, I need their ID in order to remedy.

To do this, I would need to build an ID for each panel when running, but apparently, this can be done in Flex.

Even though it may be, I see no way to specify the absolute positioning with a call to addChild.

So, is this not possible in Flex?

I considered a tree control, but it seems to me that it uses only the icons, not components, such as panels.

And my tree is more rooted, and I don't see how a tree control can handle this.

So it seems that I must do all this in graphic mode and have to rewrite all the goodies of Flex from scratch,

which would vitiate all the benefits of the use of Flex.

Any suggestions?

Hello

You can do what you described.

The first is of about ID. You can set all properties for execution. For example,.

var btn:Button = new Button();

BTN.ID = "myButton1";

this.addChild (btn);

This ['myButton1'] .label = "my button"; How to get a control by ID.

The second is about positioning.

addChild() function is not all parameters of positioning. It depends on the properties of control that you have added and control that you added.

Each control has properties: x, y, up, down, left, right. So you can define what you want.

In some controls, like VBox, HBox, childs place, in a special way. See docs for more details.

Hope this helpful.

Tags: Flex

Similar Questions

  • Cannot change the value of the cells during execution of the VI

    Hello

    I'm changing the values in the table while the VI is on, but without success, can anyone show me please how to do this.

    Thank you

    MGarry

    MGarry,

    something like this:

    Please note that this does not reset the contents of the table if you rerun the VI. You can add code to it.

    Norbert

  • How layer div rather than another without absolute positioning

    Hi again!

    Today, I try to shoot a div containing a SWF inside upward while it is organization layered on another div.

    Web Site: showcase restoration | Homepage

    I don't want to use absolute positioning, because then it goes back only this div and let the rest of the div where they were originally.

    Is it possible that I can exclude the function positioning and just make sure the header div can layer a bit on the empty div, packaging, and cursor?

    Also, I know there are errors with the website that will catch the scanner, I'll be cleaning up those very soon, it's just a matter, that I would get hit first.

    Any help is greatly appreciated!

    You cannot superimpose elements without adding a shape any positioning in combination with top, left, bottom or right attributes. The position "in the stack" (overlay) is normally controlled by the position of the element in the HTML itself, later in the code is closer to the top of the card game if you want. Index-Z must be added to change this default layering, but does nothing without positioning relative, absolute or fixed.

    You just need to understand the differences between a static, absolute and relative positioning (fixed also exists, but would not be used here) and some of its subtleties, to make this work.

    Static positioning is the default when nothing is added to the css. Most of the sites require only never static, as well as the floats, margins and padding to position elements, but because you specifically want an overlap, you will need one of the other three (my guess is on will be the best here).

    Absolute positioning is based on the upper-left corner of the nearest of the positioned element relative (relative, absolute or fixed). If there is no positioned parent, use the top left of the browser view port. Using absolute positioning completely removes the element of the natural flow of the page, leaving no space behind him and it will not interact with other elements on the page.

    Relative positioning is based on the normal position of the element in the document flow. Adding position: relative to an element, without changing what else, will appear to do nothing. Added up, left, down or right: value of attribute sets will move the element this sum of its normal position AND leave the space behind the element normally takes upwards if there is no positioning added. This will be to use very probably, as long as you are not moving your items over long distances (which would create a vacuum away where the element ends upward.)

    Fixed positioning is going to stick an element to something high, low or the adjustment of your use and even few matter how big/small browser view port is or if the page scrolls. You see this most often used with navigation bars "sticky."

  • Why layer handles disappear when I remove the absolute positioning in the style sheet

    Why layer handles disappear when I remove the absolute positioning in the style sheet, and I can't shift the most in the property inspector. Thank you, bryan

    Layers are positioned absolutely. That's what their positioning coordinates
    makes them "layers."

    Once they are positioned absolutely (via the CSS details), they are
    withdrawn from circulation of the code of the page and 'float' on the page, as a
    overlay, which appear when the code indicates to start (from top left
    then, coordinate height x width).
    That's why you can drag the around anywhere you like view creation with
    layer handles - details are updated in the CSS by DW by dragging
    your mouse.

    Once you remove the absolute positioning, they are regular

    elements in
    the flow of the page with a height and width. So DW deletes the handles as well
    they cannot be dragged around because he no longer has all the details to
    update in the CSS.

    --
    Concerning

    John Waller

  • Can layers be RELATIVE, rather than ABSOLUTE position data

    I'll have a chance to find an answer to this in the HELP. I have place of the layer anchor in a table, then position the layer. If I then add (or remove) the lines above the anchor, everything on the page go up (or down), but the rest of the layer where it was, to the page, not the anchor.

    If there are several layers on the page, it means a wholeot of repositioning every time I do an up-page edition.

    Any advice?

    This can help you understand the positioning a little-

    There are 4 different types of positioning:
    Absolute
    Relative
    Fixed
    Static

    Here is a brief explanation of each type of positioning (as of)
    placement of the elements in the page only)...

    Position: absolute (or a / P elements)
    -----------------------
    Does several things-
    1. it "deletes" element of the flow of the code on the page so that
    It can influence is no longer the size or position of any element on the page
    (with the exception of those it contains, of course).

    2. the item to absolute positioning takes its position as the position of the
    his next of KIN * place * element - in the absence of any explicit
    positioned parent, it will be by default to theTag, which is always
    positioned
    at 0,0 in the browser window.

    This means that anywhere in the HTML code of the layer
    appears (betweenand), its location on the screen will not
    change (which means that you have not positioned the A / P element in)
    a table or another A / P element, of course). In addition, the space in
    which
    This item would have seemed if it was not positioned is not preserved
    on the screen. In other words, the absolute position elements do not
    all the space on the page. In fact, they FLOAT on the page.

    Position: relative (or R/P elements)
    ----------------------
    In contrast to absolute positioning, is a relatively positioned page element
    * No * withdrawn from circulation of the code of the page, so it will use the
    Spot
    where it would have seemed based on its position in the code as its
    zero point of reference. If you provide then top, right, bottom or left
    positions
    the style for this element, these values will be used as offsets of
    his
    zero point.

    This means that it any where in the code position relatively
    element appears (, as it will be positioned at this place (it takes into account
    the offsets) on the screen (this is true for any location in the code).
    Is also the space where this element seemed
    preserved on the screen and can therefore affect the implementation of
    succeeding elements. This means that the larger a relatively
    positioned element is the space more force on the page.

    Position: static
    -------------------
    As with the relative position, the static positions also "go with the flow". One
    element with a static position cannot have values for compensation (above, right,
    on the left, downstairs) or if it has them, they will be ignored. Unless explicitly
    positioned, any defect in static positioning div elements.

    Position: fixed
    ------------------
    A page with this style element does not scroll when the page scrolls content.
    Support for this in the elements other than the settings of the page is weird

    There are several other things you need to know:

    1. ANY page can be positioned - paragraphs, images, tables, lists,.
    etc.
    2. the

    tag is a BLOCK-level tag. This means that if it is not
    place or style explicitly otherwise, a) it will always start on a new
    line on the screen and b) she will always force the content to a new line below
    He and c) will always be near the top of the entire width of its container (for example,
    Width: 100%).
    3. the placement of A / P elements * can * affect the BEHAVIOR of others
    elements
    on the page. For example, a 'sex' placed on a hyperlink that will hide
    hyperlink.

    You can see a good example of the difference between the absolute and
    relative positioning here-

    http://www.great-Web-sights.com/g_layersdemo.asp

    You can see a good demonstration of why using layers for a page layout tool
    is dangerous here-

    http://www.great-Web-sights.com/g_layer-overlap.asp

    On this basis, a static div (is no longer a 'sex') would be what you want.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    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
    ==================

    "bwilsonduncan" wrote in message
    News:fai5oe$q8t$1@forums. Macromedia.com...
    > I have no chance to find an answer to this in the HELP. I place the layer
    > anchor in a table, then position the layer. If I add later (or
    (> Delete)
    > all the lines above the anchor on the page moves down (or upwards), but
    > the
    > layer stays where it was, to the page, not the anchor.
    >
    > If there are several layers on the page means a wholeot of
    > repositioning
    > whenever I do a up-page edition.
    >
    > Any advice?
    >

  • absolute position won ' [work t

    I have a card PCI-7332, leading the two cubes of GE Fanuc Stepper.  I'm using LabVIEW 8.5.  I use a joystick to move the two axes manually and it works fine.  When I change the mode of operation to the ABSOLUTE POSITION and try to type in a position for the engine to move, engine moving.  I tried to write a test case using the same code and it does not move the engines.  But, I can refer to move with an offset from an absolute position (movement reference, reset the zero position, move position offset) and it works every time.

    This is the test case that does not work on its own.  Thanks for any help on this.


  • error code (0x000000d) windows vista when I try to print, also cannot open windows updates or control panel

    error code (0x000000d) windows vista when I try to print, also cannot open windows updates or control panel

    Hi lisafuller,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    3. What is the serial number and model of the printer?

    4. what happens when you try to access that Windows update and Control Panel?

    5. do you have security software installed on the computer?

     

    Method 1

    See the below Microsoft article and try the steps mentioned, check if it helps.

    Error message when you try to install a network printer on a Windows Vista-based computer: "Windows cannot connect to the printer operation cannot complete (error 0x0000000d).

    http://support.Microsoft.com/kb/947236

    Method 2

    If the previous step fails, then check out the link below and run them the troubleshooter, check if it helps.

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Due to Windows update run the Windows Update troubleshooting, check if it helps.

    Open the Windows Update troubleshooting tool

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Update-Troubleshooter

    Also check if you can access control panel from safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Restart the computer to return to normal mode

  • How to find the absolute position of the end of the text, it can be one or more,

    How to find the absolute position of the end of the text, it can be one or more,

    in the position I need to inseart the image of the size of the font that it friendly ordinary view sequiential - image as custom image

    Please help us find the position of the text, and even for a function more, I demanded the conclusion the text length

    I want to do we will be right and the other will be left how I can I align is their way to find the width of the label or text?

    Thank you

    This should help align your labels layouts, depending on what you did you do could go with absolute layout, docking station or stack (allows you to align the top to bottom or left to right)

    I'm not too sure that everything, however, to determine the length of the text, I would think that you could store the text in a string and then somehow programmatically count each letter & do return a result... not exactly on how to do it but it's an idea

  • How to catch the absolute position Y field

    Hi all

    There are many field on the screen, he needs to scroll vertically to the browser of the entire domain.

    When the user selects a field, I like to appear a kind of peak near this field.

    However, the problem is that I can't get absolute position in Y field on the screen.

    Here is my source code:

    /*
     * VFMTester.java
     *
     * © , 2003-2008
     * Confidential and proprietary.
     */
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.servicebook.*;
    import net.rim.device.api.ui.container.*;
    
    /**
     *
     */
    public class VFMTester extends UiApplication{
        public static void main(String args[]){
            UiApplication app = new VFMTester();
            app.enterEventDispatcher();
        }
        VFMTester() {
            pushScreen(new AScreen());
        }
    
        class AScreen extends MainScreen
        {
            VerticalFieldManager vfm;
            public AScreen()
            {
                super();
                vfm = new VerticalFieldManager();
                for(int i=0;i<40;i++){
                    vfm.add(new ButtonField("Button" + String.valueOf(i)));
                }
                this.add(vfm);
            }
            public boolean trackwheelClick(int time, int status){
                ButtonField f = (ButtonField)vfm.getLeafFieldWithFocus();
                final int h = f.getContentTop() - f.getManager().getVerticalScroll();
                UiApplication.getUiApplication().invokeLater(new Runnable()
                {
                    public void run()
                    {
                        UiApplication.getUiApplication().pushScreen(new PopupTest(h));
                    }
                 });
               return true;
            }
        }
        class PopupTest extends PopupScreen
        {
            int y;
            PopupTest(int y)
            {
                super(new VerticalFieldManager());
                this.add(new LabelField("Pop up testing"));
                this.y = y;
            }
            public void sublayout(int width, int height){
                 super.sublayout(width, height);
                 setPosition(20,y);
            }
            protected boolean keyChar(char c, int status,int time)
            {
                this.close();
                return true;
            }
        }
    }
    

    Only the first screen, works very well, on the second screen, it will jump to the top of the lower position.

    Thanks in advance.

    Here is my source code:

    Field.getScreen().getFocusRect(XYRect);
    
  • Absolute position and orientation of the camera

    Hey folks, I'm banging my head against the wall trying to figure what I think should be a fairly simple expression.

    I'm trying to get my camera to an animatic of a moderator move offshore, and is not imported correctly on its system at least that the camera is not related to what whether in sequels.

    So, my relatively simple (I thought) solution was to use the term toWorld on a new camera to watch the old one and generate the absolute position and X, Y, Z rotation.  However, nothing I do seems to put the new camera in the right place, and I can't figure out how to make the rotation of key frames work not at all.

    Little information about the project, the camera has separate X, Y and Z position keyframes and rotation keyframes X and Y as well as Orientation (although I want the final device to have X, Y Z rotation keyframes).  The camera is related to a null value which has alterations Y rotation.

    If anyone can help me to collect these expressions I would be so grateful!  Thank you!

    See if this helps:

    position

    C = thisComp.layer ("camera 1");

    C.toWorld ([0,0,0])

    point of interest

    C = thisComp.layer ("camera 1");

    C.toWorld (C.pointOfInterest)

    orientation

    C = thisComp.layer ("camera 1");

    u = C.toWorldVec ([1,0,0]);

    v = C.toWorldVec ([0,1,0]);

    w = C.toWorldVec ([0,0,1]);

    SINB = clamp (w [0], 1, -1);

    b = Math.asin (sinb);

    co. = Math.cos (b);

    If (Math.abs (co.) >. 0005) {}

    c = - Math.atan2 (v [0], u [0]);

    a = - Math.atan2 (w [1], w [2]);

    } else {}

    a = (sinb< 0 ="" -1="" :="">

    c = 0;

    }

    [radiansToDegrees (a), (b) radiansToDegrees, radiansToDegrees (c)]

    Dan

  • Cannot display the results to the database during "Update": SQL statement

    Hello

    I get this error trying to update a VO via the UI or BCBrowser.

    Cannot display the results to the database during "Update": SQL statement

    This is a default single front & right THAT VO creates on the object of the entity (Database Table)

    On the same table and with the same credentials of DB, I could update the record.

    Any guess on what went wrong?

    Thanks in advance for any help.

    p.s Jdev 11.1.1.6

    Journal:

    oracle.jbo.DMLException: Houston-26041: could not publish data from database in "Update": SQL statement "START the CAR UPDATED CarEO SET SEL_ITEM =: 1 WHERE TXN_NO =: 2 AND LOGID =: AND SEQNO = 3: 4 POLL DELIVERY_MODE, CERTIFICATION_REQ, SOFT_COPY_IND, SELITEM IN: 5,: 6,: 7,: 8; END; ».

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)

    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)

    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)

    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)

    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)

    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)

    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)

    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)

    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)

    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)

    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:111)

    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Caused by: java.sql.SQLException: invalid column type

    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:150)

    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:399)

    at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:581)

    at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1765)

    at oracle.jbo.server.OracleSQLBuilderImpl.bindUpdateStatement(OracleSQLBuilderImpl.java:2243)

    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10524)

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:412)

    ... 52 more

    The problem is solved now.

    new columns added to the database table, after the creation of the entity object. Those changes were not picked up in the entity object.

    I found this difference after object entity with the DB Table comparison.

    And when I added these new columns to EO & VO, I don't get this error more.

    Thanks to all who tried to help

  • Absolute positioning is not possible?

    I have an element with a parent. I want to place at the bottom of that parent. I can only this margin with reflow. As soon as I do the elements absolute position Collard (so I can designate postiion it is, using 'down' rather than 'margin-top) the child is released from the parent, feeling low: 0 square at the bottom of the scene. #fail in the real world, I would never top of the margin for it.

    So what do I do in a situation like this?

    The same thing you would do in the browser right? Ensure that the parent is itself relative or static position?  If it's static position so all children are compared to the other next of kin who is the relative or absolute position.

    -C

  • How to force the "absolute positioning"?

    Hello

    I want to ask a question about exporting CCS.

    I read in http://www.adobe.com/devnet/fireworks/articles/export_css_images.html and a few other items, the placement mode is forced to "absolute positioning" where there is overlap of objects (or overlapping slices, which I am not sure of).

    I tried with this and used the trick to manually create a pair of small slices overlapping on a page to force the absolute positioning. However, in doing so, is it definitively settle "absolute positioning" mode, even when there is neither duplication of objects or slices by setting in Fireworks?

    Bob

    I found a way after reading the discussion on the overlapping of text http://www.adobe.com/devnet/fireworks/articles/export_css_images.html:

    1. create two text object.

    2 move them so that they overlap.

    as long as there is overlapping of text, the entire page will be exported using absolute positioning.

    Bob

  • Floating a div with absolute positioning

    Hello, I'm floating a div wrapped around and have another filling of the space to the right. I used absolute positioning to align two div on the bottom of the package, and I think that's what it's a waste. If I remove the bottom: 20px; then the right div takes up 100% of the envelope and executes a push of the div floating left down. If I put the float: located on the div then the div will not develop far enough and will be at the top of the div by default. How can I set these two div so that the right one fills the available space, but the two are aligned vertically at the bottom? Here is the code I have so far:

    < ! 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 "/ >"

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

    < title > embroidery by CJ < /title >

    < script type = "text/javascript" >

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    < /script >

    < / head >

    < body onload = "MM_preloadImages('contact1.png','about1.png','producst1.png','index1.png')" >

    < div class = "header" >

    < div class = 'wrapper' >

    < div class = "logo" >

    < img src = "logo.png" width = "438" height = "56" alt = "Embroidery by CJ" / > "

    < / div >

    < div class = "nav" >

    < div class = "link4" >

    < center >

    "< a href ="contact.html"MM_swapImgRestore" onmouseover ="MM_swapImage ('Contact',", 'contact1.png', 1) "> < img src =" contact.png "alt ="Contact"name = 'Contact' width = height"73"="15"border ="0"id ="Contact"/ > < /a >

    < /Center >

    < / div >

    < div class = "link3" >

    < center >

    "< a href ="about.html"MM_swapImgRestore" onmouseover ="MM_swapImage ('About',", 'about1.png', 1) "> < img src =" about.png "alt ="About"name = 'About' width ="56"height ="16"border ="0"id ="About"/ > < /a >

    < /Center >

    < / div >

    < div class = "link2" >

    < center >

    "< a href ="products.html"MM_swapImgRestore" onmouseover ="MM_swapImage ('Products',", 'producst1.png', 1) "> < img src =" products.png "alt = 'Products' name = 'Products' width ="83"height ="20"border ="0"id ="Products"/ > < /a >

    < /Center >

    < / div >

    < div class = "link1" >

    < center >

    "< a href ="index.html"MM_swapImgRestore" onmouseover ="MM_swapImage ('Home'", 'index1.png', 1) "> < img src =" index.png ' alt = 'Home' name = 'Home' width = "54" height = "16" border = "0" id = "Home" / > < /a >

    < /Center >

    < / div >

    < / div >

    < / div >

    < / div >

    < div class = "container" >

    < div class = "sidebar" >

    < / div >

    < / div >

    < / body >

    < / html >

    And style.css:

    @charset "utf-8";

    / * CSS document * /.

    HTML, body {}

    margin: 0;

    padding: 0;

    background-image: url (bg1.png);

    background-repeat: no-repeat;

    background-color: #F0F0E3;

    }

    / * Header * /.

    . Header {}

    position: relative;

    height: 110px;

    background-image: url (bg.png);

    background-repeat: repeat-x;

    -webkit-box-shadow: 0px 10px 1px #1E1E1E;

    -moz-box-shadow: 0px 10px 1px #1E1E1E;

    -ms-box-shadow: 0px 10px 1px #1E1E1E;

    -o-box-shadow: 0px 10px 1px #1E1E1E;

    box-shadow: 0px 10px 1px #1E1E1E;

    }

    . Wrapper {}

    Width: 960px;

    margin: 0 auto;

    }

    .logo {}

    float: left;

    position: absolute;

    bottom: 20px;

    }

    . NAV {}

    float: right;

    }

    {.link1}

    Width: 25%;

    }

    {.link2}

    float: right;

    Width: 25%;

    }

    {.link3}

    float: right;

    Width: 25%;

    }

    {.link4}

    float: right;

    Width: 25%;

    }

    / * Container * /.

    . Container {}

    Width: 960px;

    margin: auto;

    margin-top: 10px;

    }

    / * Buffer * /.

    . Sidebar {}

    Width: 17.5%;

    padding-top: 3%;

    text-align: right;

    background-image: url (transparent1.png);

    }

    Add a line similar to

    . NAV {}

    Width: 800 p;

    float: right;

    background-color: blue;

    margin: 90px 0 0 0;

    }

    Incidentally, it is the shortcut method to apply a margin. Rule's TRorBLe or top, right, bottom and left. Adjust the function values.

    GRAMPS

  • absolute positioning in IE7 problem

    Hello Dreamweavers,

    I'm having a problem with a new site that I'm working on.

    In the upper left corner, there are two elements to absolute positioning: an image and a H1 title as follows:

    . Primary h1 {}

    position: absolute;

    Left: 20px;

    top: 90px;

    z-index: 100;

    }

    {.masthead}

    position: absolute;

    left: 60px banner;

    top: 20px;

    z index: 101;

    }

    the two elements are in .primary div that has a position: relative.

    Works well in all browsers except IE7

    In the screenshot you can see that the h1 title seems to disappear behind the white square in the show pushing the image down.

    I tried different things, like setting ' display: inline ' to floated elements but no success yet.

    Site is here:

    http://www.productfotografie-fotograaf.nl/

    screenshot is here:

    http://DL.dropbox.com/u/604341/screenshotie7.PNG

    What could this be?

    Bob

    The only thing is that I recently heard say that Matt Cutts saying that you shouldn't br really do that...

    Listen to Matt.

    That was the point. I want the image slightly overlap the H1, since there a reflection that sits on the H1, which gives it a bit of a bright and more of a look "logo".

    OK - do the

    position: relative and include the image of the camera in the

    as well as the text.  Use something like this-

    H1 img {position: absolute; top:-75px ;}}

    and adjust the values of the left/top to overlap anywhere.  In this case, I'll allow you to use absolute positioning.

Maybe you are looking for

  • Mac Book Air 11 2011 - upgrade to El Capitan or not?

    My Mac Book Air 2011 has only 4 GB of memory. Should I move to El Capitan or will it slow down too? I'm on 10.9.5 now and basically good with it. Only complaint is the different version of the page, now that I upgraded my iMac to El Capitan. Thank yo

  • How to use table 1 d of waveform in the Matlab Script

    I use Lavbiew to make the classification of Vibration signal. The first problem I encountered is the form of incorrect data. The output signals are 1 d arrary of waveform. I don't know how to use the Matlab Script. is someone can help me with this? I

  • Initialization of an array to match another size of array using the formula node.

    I want to get a few different pictures of the same length and constants in the formula node and output a table corresponding to their length after some minor calculations. Another post, I discovered that I can simply initialize the table as such: flo

  • Print .pdf documents

    I have a HP Photosmart C5550 all-in-One printer connected to a Dell Dimension E521 desktop computer, I am running Windows XP operating system, printer works fine except when you print .pdf documents. He's going to print and print them properly, but t

  • Reading a .properties file by calling custom?

    Hey experts!I have a custom, component I want to use a standard pot we use that reads some configuration values in a .properties file. But when I try and add the properties file in the class path he does not see it. After a few tests, it seems that W