Simple CSS Positin Question !

Discussion in 'CSS' started by redhits, Mar 14, 2008.

  1. #1
    Hello

    I am having a div , that's having like


    700x700 pixels

    now ... i want to add another div or <span> in that div


    how i can set the second div, to be position on 1x1 of the first div?!


    the only problem is i will never known if the browser it's at 640 x 480 or at 1800x1600 ...
     
    redhits, Mar 14, 2008 IP
  2. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #2
    and i am puting the first div after a center


    so

    <center>

    <div class=div1>

    <div class=second_div>I want this to be at the 1x1 of the div1!</div>

    </div>
     
    redhits, Mar 14, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What's 1x1? 1px by 1px? 10px by 10px?
     
    Stomme poes, Mar 14, 2008 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    I'm with SP on this - was that even a question? Am I two arrume rangruage rarrier?
     
    deathshadow, Mar 14, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ruh roh, Raggy.
     
    Stomme poes, Mar 14, 2008 IP
  6. slaydragon

    slaydragon Banned

    Messages:
    1,403
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    try setting the margin for the first div container to 0
     
    slaydragon, Mar 14, 2008 IP