SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru dale_burrell's Avatar
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Absolute Positioning

    Using the following doctype means that my absolute positioning doesn't work. So I guess that I'm not doing it correctly. Can someone tell me what I'm doing wrong? Cheers.

    PHP Code:
    <!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <
    html>
    <
    head>
    <
    title>Astratech</title>
    </
    head>
    <
    body>
    <
    div style="width:800px; position:absolute; left:180; top:17;">HR Management System</div>
    <
    div style="position:absolute; left:10; top:70">Welcome Dale Burrell</div>
    <
    div style="position:absolute; left:720; top:70"><a href="login.asp?Login=false" target="mainFrame">Logout</a></div>
    </
    body>
    </
    html
    If you aren't living life on the edge
    - you're taking up too much space
    Creative Dreaming Ltd / Ask The Local / Amanzi Travel

  2. #2
    Object Not Found junjun's Avatar
    Join Date
    Mar 2002
    Location
    northern MI
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    180 elephants?

    In strict it's a good idea to follow the standards strictly. When you set a value you need to define what unit the value uses.

    Try using left: 180px; etc
    Last edited by junjun; Jan 10, 2003 at 09:09.

  3. #3
    SitePoint Guru dale_burrell's Avatar
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 180 elephants?

    Originally posted by junjun
    In strict it's a good idea to follow the standards strictly. When you set a value you need to define what unit the value uses.

    Try using left: 180px; etc
    Doh! And I'd just fixed another problem exactly the same. Thanks.
    If you aren't living life on the edge
    - you're taking up too much space
    Creative Dreaming Ltd / Ask The Local / Amanzi Travel

  4. #4
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    isn't it weird how sometimes one stares at one's own code but can't see the obvious??

    -happens to me all the time!
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


Bookmarks

Posting Permissions

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