Need help with floating div

Discussion in 'CSS' started by gamez4you, Jun 12, 2011.

  1. #1
    Hi,

    I want to add a floating div that will run with the scroll bar on the right. In all the websites I saw it the ID was: "div id="floatdiv" ...
    Can anyone tell me how to use it and what are the CSS attributes for that div?

    Thanks
     
    gamez4you, Jun 12, 2011 IP
  2. Seo Myth

    Seo Myth Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    you can use the same code
    #floatdiv{
    float:right;
    margin: 8px;
    overflow:auto;
    width:320px; /*custom*/
    height:260px;/*custom*/
    }
    you can use position:absolute;z-index:333; add to div for best choice
     
    Seo Myth, Jun 14, 2011 IP
  3. dareknyght

    dareknyght Banned

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    the attributes needed for div positioning are:

    float, position, margin, right, left, top, bottom, and a few more but these are basic ones!

    Search for their values!

    DIV Positioning is a thing which requires separate learning!
     
    dareknyght, Jun 20, 2011 IP
  4. gamez4you

    gamez4you Member

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Thanks everyone. I got what I wanted with your help and already implemented in my websites.
    No need for further replies... :)
     
    gamez4you, Jun 20, 2011 IP