SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    not flash, div constant position on web page

    hi guys
    i just wanted to know how to
    make a div
    constantly in the same position
    on the page using either css or javascript
    independent of scrolling

    oh and also
    what does a hash mean in front of a style
    eg. #myStyleName{ sdfsdf; }

    thanks

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1) position: fixed

    How to do fixed divs.
    (workaround for IE/Win's lack of support

    There are javascript alternatives, but they don't work so cleanly and are more prone to buggy behaviour in a number of browsers.

    2) The # (hash) is simply the indentifying marker that announces to the browser/parser that the next string of characters is either going to be a name, class name, id or a color code in hexadecimal format (#ffcc00)
    (http://www.sitepointforums.com/showt...hreadid=108773)
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


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
  •