position: absolute

Last post 08-27-2009, 5:59 AM by PeterDK. 3 replies.
Sort Posts: Previous Next
  •  08-27-2009, 4:27 AM 55092

    position: absolute

    Hi.
     
    When i set a picture or layerbox to on a absolute position, then the position is on the screen, and not where the text is. If positon is 10,10 then the image is shown in the upper left corner of the screen, and not together with the text.
     
    How to set the image the rigt place? Has it something to do with my html code?
     
    I'm placing my editor text indside a label, with asp.net vb.
     
    In short, the x position shoul add a x amount of pixels to be placed the right place.
     
    Kindly Peter
     
  •  08-27-2009, 4:38 AM 55094 in reply to 55092

    Re: position: absolute

    Hi PeterDK,
     
    If you need the picture together with the text, put them in  one div and try position:relative
     
    Regards,
     
    ken
  •  08-27-2009, 5:32 AM 55095 in reply to 55094

    Re: position: absolute

    Thats not the problem. I just want to place a picture or layerbox anywhere.
  •  08-27-2009, 5:59 AM 55098 in reply to 55095

    Re: position: absolute

    When the posisition is set without a x and y cordinate, then there is no problems, like this:
     
    <img style="position: absolute" border="0" alt="" src="http://www.cutesoft.net/x/x/x.png" width="300" height="368" />
     
    Then it's posisonate in the upper left corner of the label, and not in the upper left corner of the screen.
     
    Kindly Peter
View as RSS news feed in XML