Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 9980042

@User 9980042
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A Margin for Error - in CSS
    U User 9980042

    First off, I must say I've been enjoying your wit. Like you, I've also a web developer - in my case, WAMP (also without a net), for the last seven or so years. I'd say, since your DIVS are absolutely positioned anyway, you could trap the 'resize' event and, using the innerWidth/Height (or IE's equivalent), write a function to put things EXACTLY WHERE YOU WANT THEM - DOWN TO THE PIXEL. Of course, you'd have to manage the whole layout in code. I do this for a picture puzzle app I'm writing. Tables didn't work because, regardless of shrinking all metrics to zero, they always left a gap. I even figured out how to determine if there's a vertical or horizontal scrollbar IN ALL BROWSERS. The trick: place a 1x1 div in the bottom right corner. You can even set display='none'. Compare it's offsetTop/Left with the innerWidthHeight/Width. With no scrollbars there'll be a diff of 1. With 'em the diff is 17. Then remove the DIV. Easy peasy?

    The Lounge css help javascript php
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups