1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
Stomme poes
Last Activity:
Jan 5, 2013
Joined:
Mar 26, 2007
Messages:
3,195
Likes Received:
136
Best Answers:
0
Trophy Points:
0
Location:
Netherlands

Stomme poes

Peon, from Netherlands

Last seen:
Jan 5, 2013
    1. drhowarddrfine
      drhowarddrfine
      Lol! I went away for a while but I'm moving to a new house. I have two months of nothing to do while I'm stuck sitting here waiting for some work to be done. So I thought I'd drive people crazy repeating what they repeat. But it's hard to drive people crazy when, for them, it's such a short walk. :)
    2. My220x
      My220x
      Yeah very, finding it hard to navigate, I think it's the new version of vB not to sure.
    3. My220x
      My220x
      Hey, My220x here from SP. How are things?
    4. LeetPCUser
      LeetPCUser
      No I am not a member of that.
    5. adwebtiser
      adwebtiser
      hehee It's very true indeed!
    6. adwebtiser
      adwebtiser
      hehe very true!
    7. Stomme poes
      Stomme poes
      http://forums.digitalpoint.com/showt...php?p=12262629
      I said:
      "Usually when I hide and show stuff, since I'm building for no-JS anyway (always have a working, functional site with all information available without JS, then use JS to move stuff off-screen... that way those without scripts can also use the site), I start off using my usual centering methods like margin: 0 auto;

      The absolute positioning doesn't come into play until the hovering starts (or in your case, when the JS kicks in)..."

      -continued-
    8. Stomme poes
      Stomme poes
      continued...
      "So start out like this

      #element {
      (is position: static by default when on screen)
      width:;
      margin: 0 auto; (or whatever)
      }

      #element.aNewClass {
      position: absolute;
      left: -9999em;
      whatever else;
      }

      Instead of a new class I have a hover event, but same thing. Since you're using JS you can append the new class onto the div, which will make it absolutely positioned and off-screen.

      Or you can do it the other way around... start out abso-po'd and have adding the class remove that:

      #element {
      position: absolute;
      left: whatever;
      }

      #element.aNewClass {
      position: static;
      other styles;
      margin: 0 auto;
      }

      or whatever."

      So the record is public.
  • Loading...
  • Loading...
  • About

    Location:
    Netherlands
    HTML overlord and CSS nazi

    Signature

    I'm no expert, but I can fake one on teh Internets
    OH POINTY BIRDS!! ANOINT MY HEAD! (evan goer's page)
  • Loading...
  • Loading...
  • Loading...