Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    25

    Question css absolute position

    Im sure this has a very simple awnser, but i cant seem to get to div tags to apear right next to each other. I need a menue that is next to something, but my css script wont work. I am not very experienced with css, so mabe i am using the right and left properties the wrong way.
    Could someone help me with the syntax.

    I had something like:

    div.menu {
    position: absolute;
    right: 0px;
    }
    div.something {
    position: absolute;
    right: 500px;
    }

    Any help would be nice thnx.

  2. #2
    Join Date
    Jan 2005
    Posts
    25
    Never mind, figured it out. I guess left and top are the most secure way to position stuff since the origin wont change, although if any one has any tips about positioning stuff a better please post them. thnx.

  3. #3
    Join Date
    Dec 2004
    Posts
    5
    For most of my need I use one div that hold everything on my page, that makes it easiyer to center and position every thing were i want to. So for this I would use somthing like

    div#container {
    padding: 0;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: auto;
    margin-left: auto;
    position:absolute;
    width:600px;
    }

    div#menu {
    float:right;
    width:150px;
    }

    div#other_stuff{
    float:left;
    widht:450px;
    }

    Hope it works for you, and that I made some point here. I´m getting tierd. But hope it helps.

Posting Permissions

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