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
0
votes
2 answers

In c++ does it start at the decimal or the whole # setprecision

In the below example the output is 3.1 so it starts at the first value. double y = 3.14784; cout << setprecision(2) << y; in the following example the output precision starts at the decimal value int x = 2; double y = 3.0; cout <<…
YelizavetaYR
  • 1,611
  • 6
  • 21
  • 37
0
votes
1 answer

Fixed on top sidebar prevent bottom hover

I've fixed the position of my sidebar when the scroll arrive to a certain point from top. But I've a problem when I arrive to the bottom of the page, the sidebar is on the footer (https://i.stack.imgur.com/ZwjDK.jpg). I need to fixed the sidebar…
Alex
  • 81
  • 1
  • 10
0
votes
1 answer

fixed element outside of the central content

I am designing a web page with a little toggle menu icon for navigation purposes. My problem is that whenever the window is resized under the width of the main container (.story, which only has max-width defined), the menu icon overlaps the…
Ordinaly
  • 69
  • 1
  • 9
0
votes
1 answer

Why Using attribute fixed the element changes its size?

I have a table which has the same width but i need the header fixed so I use this attribute (fixed) at header but oh surprise! when I use this attribute the header changes it size and now is smaller than the other part of the table...It's like if it…
Carlos Mtz
  • 151
  • 1
  • 1
  • 14
0
votes
1 answer

How can I get the nav-bar into the header?

I'm trying to get the navigation bar inside of the header but it only stays below it. How can I fix this? The nav divs are inside of the
so I'm not sure why the entire nav-bar is set below the header. Here's the JSFIDDLE link. HTML…
Anthony726
  • 75
  • 2
  • 4
  • 10
0
votes
1 answer

Ideal fixed background image size?

I'm playing around with a fixed background image for a container to make a cool effect, but I'm in doubt what size the background image should be to not repeat itself. The image is centered and scaled to occupy the container. In this example my…
McKeene
  • 285
  • 1
  • 6
  • 15
0
votes
1 answer

Semantic-UI with fixed right menu and grid

I am trying to fixed the menu in the template, but every time when I use the fixed function in the menu, an error occurs because the menu is misplaced to the right off the page. The example is here: http://jsfiddle.net/ecram/ddbvg532/1/ Reviewing…
ecram
  • 31
  • 7
0
votes
1 answer

Fixed header stays on top of wrapper

I'm trying to build a Wordpress site with a fixed header. So far so good. The header is ok, but the wrapper is the problem now. When I give the wrapper a margin-top: 100px the header wil go down 100px and header will stay above the wrapper (See…
user2586633
  • 19
  • 1
  • 6
0
votes
1 answer

How to convert a fixed height/width-fixed layout to elastic?

I used the same software used here http://us.gn.bartal.org/ to create a fixed width/height treemap in HTML + CSS. I would like to make it elastic by having a JavaScript function to convert all pixels absolute positions and sizes to percentages. How…
phretor
  • 57
  • 2
  • 9
0
votes
1 answer

jQuery scrollTo offset height

I have a website with a static (fixed) top navigation. Because of the scrollto I need to specify a offset of 100px, but I really don't know how to change it in this line: Home I allready…
robin S
  • 3
  • 1
  • 2
0
votes
1 answer

fixed sidebar should get margin when reach footer

I am developing a website which has a fixed footer, Fixed navbar and a fixed sidebar. As i scroll > 70 sidebar become fixed. but as i reach the bottom of the page the fixed sidebar is overlapping the footer area which is also fixed, My Concern is i…
Harman Preet
  • 207
  • 3
  • 11
0
votes
1 answer

Keep a div at top of page, but beneath other divs

I want to have a div with a background image at the top of my website. But when the page is scrolled the div should go underneath the other divs (while still at the top of the page) and not on top of them (as fixed positioning would). I guess its…
Mac Luc
  • 971
  • 5
  • 14
  • 31
0
votes
1 answer

How to fix every element on the same position, when browser is resized?

Anyone tell me that how to fix all elements with css, means whatever we do with the browser's height and width then elements should not move? or elements should not move relative to the browser' height and width and page should also be scroll able?
0
votes
2 answers

How do i get my fixed element to stand alone without going on top of the other content?

I have at the top of my page a div dedicated as a top bar. I want the position to be fixed so that it stays in the same place when scrolling. BUT.. once I apply the fixed positioning, all of the content moves up by about 30px (the size of the bar)…
Eben Hafkamp
  • 155
  • 1
  • 1
  • 10
0
votes
3 answers

How to "fixed" menu only when it get to the top?

I want my top menu to be fixed and scroll with the page, but only when it get to the top of the screen. Like here: http://en.miui.com/forum.php anybody knows how? tnx :)
Sahar
  • 13
  • 1
  • 8