Prefer [tag:position-fixed] or [tag:fixed-point]

learn more… | top users | synonyms

81
votes
14answers
61k views

Fixed Position but Relative to Container

I am trying to fix a div such that it is always parked at the top of the screen, using: position: fixed; top: 0px; right: 0px; However, the div is inside a container that is centered. When I use ...
16
votes
3answers
18k views

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 ...
12
votes
7answers
9k views

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 ...
12
votes
3answers
17k views

C#:How can I fixed a form size in win application and not to let user changes its size?

C#:How can I fix a form size in win application and not to let user changes its size?
12
votes
3answers
950 views

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 ...
11
votes
6answers
10k views

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 ...
11
votes
1answer
307 views

iOS input focused inside fixed parent stops position update of fixed elements

The following happens on Mobile Safari iOS 6.1.2 Steps to reproduce Create a position: fixed element with an <input type="text"> element inside it. Actual result Input - not focused The ...
10
votes
4answers
6k views

Simulate position:fixed in jQuery

I have a header that is larger than the width of the page so that I can't use position:fixed to set him on top of the page, because I absolutely need to be able to scroll horizontally. I don't think ...
10
votes
8answers
1k views

Is it wise to use a Fluid Layout?

Google Labs Browser Size I've always preferred fixed-width layouts over fluid-width layouts, one of the main reasons is that I'm able to better understand how the whole picture will be without ...
10
votes
1answer
1k views

JQuery Mobile scrollable list inside position:fixed element? (Sencha Touch behavior)

A typical use case would be a page with two columns: The standard behavior in JQuery Mobile is the content scrolls together with page. Is it possible to build an app with JQM using a different ...
8
votes
1answer
1k views

Why is a fixed size buffers (arrays) must be 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; ...
7
votes
2answers
6k views

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 ...
7
votes
2answers
1k views

Fixed size buffer cannot be directly used from “this” object

I am used a structure to represent pure data. One of the fields is a fixed-size buffer, as shown below. [StructLayout(LayoutKind.Sequential, Pack=2)] unsafe struct ImageDosHeader { ... ...
7
votes
1answer
541 views

Advanced jQuery “Sticky Bottom” and also Scrolling Sidebar Issue

this is my first post so please bear with me a bit. Having searched everywhere for a solution to this problem, and attempting to use a few plugins like jQuery Way-points, to no degree of success, I ...
6
votes
5answers
984 views

Java fixed memory map

Is there a simple, efficient Map implementation that allows a limit on the memory to be used by the map. My use case is that I want to allocate dynamically most of the memory available at the time of ...

1 2 3 4 5 44
15 30 50 per page