I have a website where I've set a div to 100% width;
On either side of the div I've put in links that touches both left and right side inside the div.
So when I resize the window to it's smallest size I have the links right next eachother.
This works in IE9 and Chrome but in Firefox the right link disappears like an overflow hidden at around 600-650px (same as the min-width of the actual browserwindow depending on the toolbar icons I think).
Does anyone know how to disable the min-width of the browserwindow in firefox?
Thanks
Related
I have bxslider on my php file that is loaded with ajax. and when i open page slider is hidden, nothing is shown, but when i resize window or click on inspect element slider appears and works correctly.
The reason for this is that the moment the function is called it does not find the element or even if it doesn find it, its not able to calculate height properly because the element might be getting loaded AFTER the bxSlider call or maybe hidden or something like that. But when you resize the window (or inspect element, they both fire window.resize) bxSlider is coded to respond to that and readjust its height and width, thus displaying your slider.
I hope it helps you.
I have tried to change the default arrow in drop down.
By adding this in css,
background-image:url("downArrow.jpg") no-repeat scroll right center transparent;
but the default arrow of drop down is not get replace in firefox, but in chrome its coming correctly.
How to fix this in firefox. Thanks in advance.
<SELECT> elements are not rendered by HTML, they're rendered by the browser/OS and styling them is quite limited. You cannot replace the arrow. All you can do is place an element on top of it and use script to fire the click as if it were part of the real drop-down.
Here is a facetious cat site..
http://jsfiddle.net/Spunkgraffiti/ruxLs/embedded/result/
Go ahead and click on some blank space, stay clicked (mousedown), and drag your mouse down to the bottom of the window, it scroll's down! Every time!
The issue is that no matter what I do I can't disable scrolling when you click and drag to the bottom of the screen..
I have disabled the scroll wheels, tried to disable highlighting (cause I thought perhaps it was not "scrolling" per se but actually highlighting more and more content moving the page down), and tried a css disable of scrolling. Nothing works..
Overflow hidden doesn't help here either :/
How do I stop the scroll caused by clicking and dragging your mouse down to the bottom of the window (already fully expanded window).
I'm trying to write up a drag and drop bar at the bottom of the screen, but every time I drag a picture and try to drop it, the whole page moves.. I just want the whole page not to move when I begin to drag a picture..
Thank you everyone who takes the time to read this!
$(function() {
$(document).scroll(function() {
$(document).scrollTop(0);
});
});
See http://jsfiddle.net/ffy2x/5/
It is rock solid (doesn't scroll at all) on recent (as of this post's date) versions of Firefox, Chrome and WebKit in Qt. Internet Explorer scrolls a bit then bounces back. If it's for an embedded application using one of the first three, then this isn't a problem.
I am using TextArea tags in my web project, that shall never show scrollbars.
This can easily be accomplished using
TEXTAREA { overflow: hidden }
All browsers that I need (IE, FF, Chrome) hide the scrollbars, as intended.
However Internet Explorer and Chrome will scroll to the current cursor position anyway, while Firefox does not scroll anymore at all. You can move the cursor into the invisible area and type, but you will not see, what you are doing.
Can this be solved?
Regards,
Steffen
EDIT: Because I have not found the source of the problem and I would really like to solve this, I leave this question open. However I found a really bad workaround: We now use overflow: scroll on that TEXTAREA, put it into a DIV, measure the width and height of the horizonal and vertical scrollbars, increase the size of the TEXTAREA by that values and set overflow:hidden to the DIV effectivly clipping away the scrollbars. They get invisible to the user but Firefox still scrolls. Not nice but working.
As far as I can tell, Firefox is behaving as I'd expect given the semantics behind overflow:hidden.
That said, and having read your comments above, you can quite easily mimick the behaviour you want with a small bit of jQuery.
Here's the code I've written:
$('textarea').bind("focus keyup", function(){
var $current = $(this);
$current.scrollTop(
$current[0].scrollHeight - $current.height()
);
});
This will basically scroll the textarea to the bottom when you focus on it and as you type. It may need tweaking to account for edits being done further up in the content.
Here's a Working Demo
I fixed the way the content was being pushed down with using the +position:absolute !important; hack that i've found. But now my question is no matter how i style the top (in the jqmWindow in IE it still seems to popup the window in the middle of the page. In FF however i've gotten the page to be more towards the top. The reason why i need to move this jqm window is that there is more info on the div (jqm) then will fit on the screen. Is there a way just to make the window a certain size and have scroll bars on the side if the content is larger? Thanks for the help.
you should be able to wrap the contents of the window in a div and set it's height, as well as overflow
div.wrap{
height:220px;
overflow:scroll;
}