Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CSS: Possible to do position:fixed offset center div?
  2. background: url(foo) top center repeat;
  3. position: fixed;
  4. width: 100%;
  5. height: 100%;
  6.        
  7. #photo_bg{
  8. background: url(foo.jpg) top right no-repeat;
  9. overflow: visible;
  10. position: fixed;
  11. right: 50%;
  12. top: 0;
  13. width: 1014px;
  14. z-index: 2;
  15. }
  16.        
  17. #stripes {
  18.     background: url("images/bg_striped_repeat.jpg") repeat scroll center top transparent;
  19.     height: 9999px;
  20.     left: 0;
  21.     overflow: visible;
  22.     position: fixed;
  23.     top: 0;
  24.     width: 100%;
  25.     z-index: 1;
  26. }