css-position

Fixed position misbehaviour in IE11

China☆狼群 提交于 2019-12-04 04:42:39
I am experiencing elements position misbehaviour into my page, in IE(11) only; live link here . The logotext, the menu and the left sidebar text, remain in place doesn't move with the wrapper when the left slider is open (clicking on info+ button). I've read about position: fixed + transition in IE problems. I've tried to apply position: expression(fixed); to the header but something went wrong and the wrapper receive a brake-movement at open/closing slider. (The sidebar didn't work with position: expression(fixed); ) Also I've tried to tweak the css modifying the element position values in

Using fixed position with a grid layout framework

自古美人都是妖i 提交于 2019-12-04 03:38:32
So I am creating a web page, where the menus on the left hand side are fixed (They follow you when you scroll up and down the page). I am currently using The Grid layout: Foundation (by zurb) http://foundation.zurb.com/docs/grid.php . Which uses a twelve column grid. I am having problems positioning the fixed layout and still using the grid at the same time. How can I use a grid layout and fixed elements on a page? <div class="container"> <div class="row"> <div class="four columns relativePosition"> <div class="fixedPosition"> <div class="four columns"> Menu Here </div> </div> </div> <div

Iframe positioning

感情迁移 提交于 2019-12-04 02:58:08
This is iframe code of google translate. <div id="contentframe" style="top: 160px; left: 0px;"> <iframe src="/translate_p?hl=en&ie=UTF8&prev=_t&sl=auto&tl=en&u=http://yahoo.co.jp/&depth=1&usg=ALkJrhjrVT6Mc1tnruB-zgrtu9cyQ1bSeA" name="c" frameborder="0" style="height:100%;width:100%;position:absolute;top:0px;bottom:0px;"></div> </iframe></div> I tried to do something similar with the same div and iframe tags but the html page does not end up like google translate. <div id="contentframe" style="top: 160px; left: 0px;"> <iframe src="http://stackoverflow.com" style="height:100%;width:100%;position

CSS Filter invert rule breaking fixed position on Chrome 68 [duplicate]

蓝咒 提交于 2019-12-04 02:47:18
问题 This question already has an answer here : CSS-Filter on parent breaks child positioning (1 answer) Closed last year . I'm on Chrome 68. Whenever I have filter: invert(xxx); on the <body> , anything positioned as fixed doesn't stick to the screen, it scrolls with everything. Demo with filter: invert(xxx); body{ height: 8000px; filter: invert(0.85); } div{ position: fixed; top: 0; left: 0; height: 100px; width: 100px; border: 1px solid black; } <div></div> Demo without filter: invert(xxx);

Extending position absolute div outside overflow hidden div

偶尔善良 提交于 2019-12-04 01:37:51
I've haven't done css in several month so I might miss something simple, but whatever the solution is, I couldn't figure it out. So here is the problem. Here is simplified version of my code: <div id="wrapper" style="position: fixed; overflow: hidden; height: 100%; width: 200px;"> <div id="test" style="position: absolute; margin-left: -200px;"></div> </div> So basically, I need the inner div test to extend 200px to the left, outside of outer div wrapper. The problem is that my wrapper is overflow:hidden and it won't allow to go outside. I need it to stay overflow:hidden though, due to some js

button position absolute not working as expected

萝らか妹 提交于 2019-12-04 01:18:32
Can anyone explain why this button is not absolute-positioned to the right? I would expect it to be 3px from every edge. HTML: <div class="wrapper"> <button>Hello world</button> </div> CSS: .wrapper { height: 300px; width: 300px; background-color: #f33; position: relative; } .wrapper button { position: absolute; top: 3px; bottom: 3px; left: 3px; right: 3px; } Also, how is it that the button is able to align its contents vertically? button , like most form elements, is a replaced element. Replaced elements behave differently from regular non-replaced elements (such as div ) when absolutely

Fluid width fixed position

∥☆過路亽.° 提交于 2019-12-04 00:21:31
Imagine: <div class="outer"> <div class="inner"> </div> </div> Where: .outer is part of a column structure, and its width is a percentile and therefore fluid. .inner represents a fixed position element that should fill with a 100% width the .outer element. However its position vertically remains the same, therefore fixed . I’ve tried to implement this layout with the following CSS: .outer { position: relative; width: %; } .inner { position: fixed; width: 100%; } However, .inner does not calculate its width as a percentage of its relative parent. Instead it fills the full width of the window

jQuery .position() strangeness while using CSS3 rotate attribute

断了今生、忘了曾经 提交于 2019-12-03 23:51:00
问题 I'm getting absolutely positioned rotated elements position with jQuery .position() method, then setting position-related attributes (top, left) with jQuery .css(pos) , where pos is the data returned by .position() . I think it'll leave the element in it's place, but elements position is changing. How can I use set rotated elements position, so that it'll be placed as expected? Maybe there is a coefficient depended on angle that changes position? I'm testing in Google Chrome v.9, Windows XP.

Make Fixed Header Scroll Horizontal

放肆的年华 提交于 2019-12-03 23:41:51
so guys, if u test the code below, u can see that everything is alright, except if u size down the window, so the flash menu ( red div ) is going out of the page to the right. well if the window is smaller then 900px, there is a HORIZONTAL scrollpane, so far so good, but it just scrolls the content of the page! I want the upper part also to scroll, but only horizontal, cuz I want them to be fixed (stay on top of the site always)... any suggestions? I've tried so many things from google, but no one of them was the right one 4 me... thx & g.r. ace html: <!DOCTYPE> <html> <head> <meta http-equiv=

Is position 'initial' cross-browser - css

こ雲淡風輕ζ 提交于 2019-12-03 22:07:50
I have a css conflict, so I have to go against an absolute positioning property that deals with some class .myclass . But in one case, I want a div with .myclass class to have a no absolute positioning. So I put position: initial , which works in Chrome, but is it cross-browser? I googled it and found nothing really precise. The default for position is position: static; Adrift The initial keyword was introduced in 2011 in the Cascading and Inheritance Module -- it's supported in FF 19 + , Chrome, Safari, Opera 15 + but is currently not supported in any version of IE. Even IE 11 gives me the