HighDots Forums  

How to set focus to a div?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss How to set focus to a div? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Amir Michail
 
Posts: n/a

Default How to set focus to a div? - 02-28-2008 , 12:40 PM






Hi,

Under Firefox, you can't scroll using the keyboard on this links page
unless you click on the div first:

http://numbrosia.com/?cmd=links

Is there a way to automatically set focus to a div?

Amir

Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 01:13 PM






..oO(Amir Michail)

Quote:
Under Firefox, you can't scroll using the keyboard on this links page
unless you click on the div first:

http://numbrosia.com/?cmd=links

Is there a way to automatically set focus to a div?
What about fixing the site? I can't scroll there at all, neither
keyboard nor mouse wheel are working. I have to turn off CSS in order to
make the site usable. Really broken.

Micha


Reply With Quote
  #3  
Old   
Amir Michail
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 01:35 PM



On Feb 28, 2:21 pm, "Beauregard T. Shagnasty"
<a.nony.m... (AT) example (DOT) invalid> wrote:
Quote:
Amir Michail wrote:
Under Firefox, you can't scroll using the keyboard on this links page
unless you click on the div first:

http://numbrosia.com/?cmd=links

Eww.

Why - if I scroll to the right (a no-no itself) do I find an extra
scrollbar lodged inside my own vertical scrollbar?
This is not a problem under Firefox. I don't know how to fix this
under IE7.

Quote:
Why: "Please enable JavaScript." So I can see your Google ads?
(obtrusive ads are one big reason a lot of people surf with JavaScript
disabled)

Is there a way to automatically set focus to a div?

div id="somename"> ... content ... </div

and with a link of: http://example.com/mypage.html#somename

Yes, that works, thanks.

Amir


Quote:
--
-bts
-Motorcycles defy gravity; cars just suck


Reply With Quote
  #4  
Old   
Amir Michail
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 02:44 PM



On Feb 28, 3:05 pm, "Beauregard T. Shagnasty"
<a.nony.m... (AT) example (DOT) invalid> wrote:
Quote:
Beauregard T. Shagnasty replied to hisself:

I would use the blue sun as a body background image, set to no-repeat,
and just place that long menu in the content. Seems simple enough.

This would also greatly reduce the scrolling lag .. to 'none'.

Oh wait. The blue sun image is actual size of 1024x576 but you have
1037x628 in your code. So every time someone scrolls, the image is
trying to resize itself. Change either the code to the image size, or
resize the image to what you want on the page. Exactly.

I wanted to resize the image to the current window size. So I used a
hack I found on the web to do that.

Amir

Quote:
--
-bts
-Friends don't let friends drive Vista


Reply With Quote
  #5  
Old   
Bergamot
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 03:36 PM



Amir Michail wrote:
Quote:
I wanted to resize the image to the current window size. So I used a
hack I found on the web to do that.
Just because you can, doesn't mean you should.

--
Berg


Reply With Quote
  #6  
Old   
Amir Michail
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 04:04 PM



On Feb 28, 4:36 pm, Bergamot <berga... (AT) visi (DOT) com> wrote:
Quote:
Amir Michail wrote:

I wanted to resize the image to the current window size. So I used a
hack I found on the web to do that.

Just because you can, doesn't mean you should.

Why not? One would expect a non-repeating puzzle/game background to
scale to the window size.

Amir

Quote:
--
Berg


Reply With Quote
  #7  
Old   
Michael Fesser
 
Posts: n/a

Default Re: How to set focus to a div? - 02-28-2008 , 04:31 PM



..oO(Amir Michail)

Quote:
On Feb 28, 4:36 pm, Bergamot <berga... (AT) visi (DOT) com> wrote:
Amir Michail wrote:

I wanted to resize the image to the current window size. So I used a
hack I found on the web to do that.

Just because you can, doesn't mean you should.


Why not? One would expect a non-repeating puzzle/game background to
scale to the window size.
Not really. Or maybe it's just me who finds such distorted images ugly?
At first it wasn't even clear to me what this blue egg was supposed to
be (my browser viewport is almost a square at the moment) ...

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.