Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How does tabbing affect position and display
- bryan rasmussen
March 25, 2014, 9:40 am
rate this thread
I have an application the code of which I am unfortunately not allowed to put out on the net, but hopefully you can help me anyway because I think this is just a part of the html/css stack where I am not as knowledgeable as I would like.
The application is in an iframe.
In the application we have a #logo div, positioned absolutely at the top of the page, followed by a div #boxtop with an iframe in it with a margin-top they same as the height of the logo div, followed by a div #content with some form fields.
overflow on the document as a whole is set to hidden, however both #boxtop and #content have overflow auto, in smaller sizes of iframe they overflow.
When I tab through the form elements it seems that the #content div expands in size, pushing the #boxtop div up, so that part of it is hidden under the #logo.
Why does this happen? From various experiments it seems intrinsic to tabbing. The problem is if I set a tabindex on my #boxtop I can get focus on the element but it is not moved down so that the top is visible again. Is there a way to force this?
Re: How does tabbing affect position and display
You should construct a demo, with all confidential data stripped off of
course, upload it on a server, and post a URL. Without something
tangible, this is just shooting in the dark.
Is that relevant? Does the problem manifest itself when the code is
tested as a standalone document? Try to isolate the issue to a minimal case.
Well, does it expand? What do the browser’s developer tools say about
Well, the obvious guess is that you have a style sheet that uses the
:focus pseudo-class, or an onfocus event handler that changes something
on the page. Can’t really guess more accurately... or should I say “Oh,
I think it’s on line 8961”?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum