Results 1 to 7 of 7

Thread: positioning div layers..

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    positioning div layers..

    I want to use four <div> in my page but dont know how to give an" id "for each div..help me please.

    ..my second question is about positioning an image..ok I can place a background image but I want to use another (second) but not background image...how can I locate the second image in CSS...
    thanks..

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: positioning div layers..

    Originally posted by merhaba
    I want to use four <div> in my page but dont know how to give an" id "for each div..help me please.
    <div id="kefhallak">



    ..my second question is about positioning an image..ok I can place a background image but I want to use another (second) but not background image...how can I locate the second image in CSS...
    thanks..
    You'll have to be a little more clear with this one.

  3. #3

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    two images

    I have two images...I use one of them as a "background-image" and I want to place the second image onto the first one...we use position:100,200; to locate the background image..can we do the same for the second image..how can we place the sdecond image anywhere of our pge? can we use position:50,100; for any image? <img src="aaa.gif"--(50,80------>like this..

  4. #4
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    <div style="position:absolute;left:50;top:80">
    if you choose not to decide you still have made a choice!

    RUSH rocks!

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yes, try this:

    Code:
    <img alt="" src="image.png" style="position: absolute; top: 50px; left: 100px;" />

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Whoops Joe beat me! Remember you need a unit though, otherwise it's likely to only work in IE, so your exampe should be this

    Code:
    <div style="position:absolute;left:50px;top:80px">

  7. #7
    Lively Member
    Join Date
    Dec 2002
    Location
    southwest pennsylvania
    Posts
    65
    stoopid ie-only
    if you choose not to decide you still have made a choice!

    RUSH rocks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width