Reply
scroll-moving DIV problem
Old 03-20-2007, 05:34 AM scroll-moving DIV problem
Junior Talker

Posts: 2
Hi!

I have a DIV which must move when scrolling down

http://tlloreti.googlepages.com/network.htm


The problem alignment of the rest of the page has been modified (If you click in top menu Network link you will see the original...) because of this line

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html4...1224/loose.dtd">

(this line is necessary to move DIV when scrolling....)

How can I solve this?
Do you have other way to do this moving DIV?

Thanks!
F
frijolita is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-20-2007, 02:35 PM Re: scroll-moving DIV problem
LadynRed's Avatar
Super Moderator

Posts: 6,539
Location: Tennessee
Your DOCTYPE really hasn't much to do with whether or not the div floats.
You can use javascript to make that div follow down the page.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-20-2007, 02:38 PM Re: scroll-moving DIV problem
Junior Talker

Posts: 2
Honestly I dont understand how it works but if you save locally the html and you delete this line you will see that DIV doesnt move at all ...

Do you have any example of alternative method?

Thanks!

F
frijolita is offline
Reply With Quote
View Public Profile
 
Old 03-20-2007, 02:40 PM Re: scroll-moving DIV problem
LadynRed's Avatar
Super Moderator

Posts: 6,539
Location: Tennessee
Head over to www.dynamicdrive.com and you'll find the scripting for the effect you want.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to scroll-moving DIV problem
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13427 seconds with 12 queries