Questions tagged [fixed]

Please don't use; the more specific [css-position] or [fixed-point] tags are preferred.

(review to be retagged or , remove otherwise)


1909 questions
35
votes
8 answers

Chrome issue with background-attachment fixed and position fixed elements

I've had this issue for a while and it seems to be a Chrome redraw bug that hasn't been fixed. So I'm looking for any stop-gap fixes. The main issue is that when an element on the page has a background image that uses: background-attachment:…
Alex
  • 824
  • 2
  • 14
  • 29
34
votes
7 answers

C# Unsafe/Fixed Code

Can someone give an example of a good time to actually use "unsafe" and "fixed" in C# code? I've played with it before, but never actually found a good use for it. Consider this code... fixed (byte* pSrc = src, pDst = dst) { //Code that copies…
HB
33
votes
2 answers

Only in Safari - position:fixed child cut off when parent is position:fixed and overflow:hidden

I'm only seeing this issue in Safari (6.1 os x) When a parent element is set to position:fixed; overflow:hidden and a child element is set to position:fixed and part of it overflows the parent, it gets cut off. Check out this jsfiddle in Chrome and…
Throne Creative
  • 343
  • 1
  • 3
  • 6
32
votes
11 answers

Fixed positioned div within a relative parent div

I am currently building a responsive website and need a menu to be fixed, thus not scrolling when the rest of the site scrolls. the issue is that it is a fluid layout and i want the "fixed positioned" menu item to be fixed relative to the containing…
Gavin Wood
  • 955
  • 3
  • 14
  • 28
32
votes
13 answers

Hide scrollable content behind transparent fixed position divs when scrolling the page?

I have a div called header that is set up with a fixed position. The problem is when I scroll the page the content of the page shows up behind the header (the header is transparent). I know a lot about css, but cannot seem to figure this one out. I…
mtlca401
  • 1,413
  • 4
  • 16
  • 24
32
votes
2 answers

Why must fixed size buffers (arrays) be declared unsafe?

Let's say I want to have a value type of 7 bytes (or 3 or 777). I can define it like that: public struct Buffer71 { public byte b0; public byte b1; public byte b2; public byte b3; public byte b4; public byte b5; public…
brickner
  • 6,595
  • 3
  • 41
  • 54
31
votes
4 answers

Print header/footer on all pages (Print Mode)

content spanning several pages...
I want to print #header and #footer on every page in print mode. I searched a lot but…
eozzy
  • 66,048
  • 104
  • 272
  • 428
31
votes
3 answers

How do I get a fixed position div to scroll horizontally with the content? Using jQuery

I have a div.scroll_fixed with the following CSS .scroll_fixed { position:absolute top:210px } .scroll_fixed.fixed { position:fixed; top:0; } I'm using the following jQuery code to set the .fixed class when the div reaches the top…
jfeust
  • 845
  • 1
  • 9
  • 19
27
votes
5 answers

Scrolling issue on position fixed element on iOS

I am bulding a mobile project which has a number of modules having elements positioned as fixed. The issue which am facing is only on browsers running on iOS. The exact issue is that whenever I tr to scroll over the body of the page having , say…
Aman Pandey
  • 336
  • 1
  • 3
  • 12
25
votes
3 answers

What are the implications of using unsafe code

Aside from the fact that the code itself can access memory directly. What are the other implications of using the "/unsafe" compiler flag and the "fixed" keyword? Are there any knock on effects related to code signing and deployment of my .exe (my…
Matt Warren
  • 10,279
  • 7
  • 48
  • 63
23
votes
8 answers

Bootstrap - navbar-fixed-top covers content

I have a question about navbar-fixed-top. Well, I have a simple problem with it. My fixed navbar covers content, for example in "About us" page, it covers row with "About us" title. I have no idea how can I fix it, because when I resize website…
testerius
  • 391
  • 4
  • 6
  • 16
19
votes
4 answers

IOS - Creating & Using Interval Specific Timers

I am a newbie IOS developer, but I have a good amount of experience in Android development. My question is regarding the creating and use of interval specific timers. In android I could easily make a timer like this: timedTimer = new Timer(); …
user879702
  • 211
  • 1
  • 2
  • 5
19
votes
9 answers

How to resolve position:fixed for a bottom toolbar on iOS (iPhone/iPad)

I have a bar that is fixed to the bottom of every page on my website by using position:fixed. The problem is that on devices like iPhone or iPad this property is not respected. I tried to use javascript to detec the screen height, scroll position,…
Wes Souza
  • 601
  • 2
  • 8
  • 17
19
votes
4 answers

Fixed Position Background on iOS

I have a website that has a full-image fixed background that the content "floats" above. It works fine in desktop browsers, but the fixed background ends up scrolling on iPads and other tablets. This seems to be a common issue, but then I ran across…
JeremyE
  • 1,368
  • 4
  • 20
  • 40
18
votes
5 answers

How to fix background image inside div

I've discovered a rather odd problem, which I think I know how to explain; i just don't know how to fix it! I have a page with a div#container (a div with 100% min-height (height for IE)) containing a header, a "page-content" and a footer. The…
Latze
  • 1,843
  • 7
  • 22
  • 29