Marquee scolling help!, Can't figure out how to set a starting position for the marquee te |
Marquee scolling help!, Can't figure out how to set a starting position for the marquee te |
amc439 |
Dec 26 2020, 03:28 PM
Post
#1
|
Group: Members Posts: 4 Joined: 26-December 20 Member No.: 27,697 |
HI!
I have this code here for marquee scrolling text that scrolls upwards. The only problem is that the scrolling always starts from the bottom of the page but I want it to start from the very top and then continue to scoll upwards. Here is the code: <style type="text/css"> .html-marquee {font-family:Helvetica;font-size:9.5pt;color:000000;border-width:0;border-style:solid;} </style> <marquee class="html-marquee" height="640" direction="up" behavior="scroll" scrollamount="3"> <p>IMMACULATE CONCEPTION CATHOLIC SCHOOL</p> <p>TOP FLOOR PROPERTY MANAGEMENT</p> <p>RE/MAX-NORTH SHORE - JUDY KILLEEN</p> <p>BOSTON PIIZA - COQUITLAM</p> <p>CAMBIE HOTEL AND PUB</p> <p>TD CANADA TRUST - GEORGIA STREET</p> <p>EL FURNITURE WAREHOUSE RESTUARANT</p> <p>THE DIME RESTAURANT - COMMERCIAL</p> <p>THE DIME RESTAURANT - GRANVILLE</p> <p>LOOSE MOOSE RESTAURANT</p> <p>WHITE RESTAURANT</p> <p>BEST BITE DONAIR</p> <p>BOND STREET PHARMACY</p> <p>CHUTNEY VILLA</p> <p>CONTAINER WORLD LOGISTICS - RICHMOND</p> </marquee> PLEASE HELP! THANKS! |
CharlesEF |
Dec 26 2020, 04:08 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I don't use marquee because it's obsolete and could be removed at any time. See this link.
|
pandy |
Dec 27 2020, 12:08 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
That's so funny. They call it obsolete (well, I can sort of buy that, I guess) and even deprecated when it has never been in any standard.
Anyway, I wouldn't use it either, but to answer your question, you could move it up in several ways. The easiest is maybe a negative top margin that's a little less than the height you have given marquee. Something like so. I'm assuming you basically want to see just one line at the time? CODE .html-marquee {font-family:Helvetica;font-size:9.5pt;color:000000;border-width:0;border-style:solid; margin-top: -620px } BTW, don't use pt either. That's a unit for print only. |
amc439 |
Jan 14 2021, 02:38 PM
Post
#4
|
Group: Members Posts: 4 Joined: 26-December 20 Member No.: 27,697 |
That's so funny. They call it obsolete (well, I can sort of buy that, I guess) and even deprecated when it has never been in any standard. Anyway, I wouldn't use it either, but to answer your question, you could move it up in several ways. The easiest is maybe a negative top margin that's a little less than the height you have given marquee. Something like so. I'm assuming you basically want to see just one line at the time? CODE .html-marquee {font-family:Helvetica;font-size:9.5pt;color:000000;border-width:0;border-style:solid; margin-top: -620px } BTW, don't use pt either. That's a unit for print only. Hi Pandy, thanks for your response, I tried that, and although it started from the top, it reduced the size of the marquee area. I still want to be able to see the entire list scroll at the same time, the only thing is that it needs to start from the top of the box and not from the bottom. Here is a link to the website: www.pro-motion.ca If you look to the right side, there is a box for notable clients that I made using marquee. Notice that it looks weird because its empty for a few seconds while it reaches the top of the box from the bottom. The box size needs to be the same, except that I would like the list to start scrolling from the top in the same upward direction. |
pandy |
Jan 14 2021, 02:51 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Do you mean you want it to scroll from the top down, in the other direction from now? Then use direction="down" rather than direction="up".
I you mean you want it to scroll up but you want to see the whole list from start I don't think that's possible with MARQUEE. |
amc439 |
Jan 18 2021, 01:36 PM
Post
#6
|
Group: Members Posts: 4 Joined: 26-December 20 Member No.: 27,697 |
Do you mean you want it to scroll from the top down, in the other direction from now? Then use direction="down" rather than direction="up". I you mean you want it to scroll up but you want to see the whole list from start I don't think that's possible with MARQUEE. Yes, I want it to scroll up, but I want to see the whole list from the start. Wow. I can't believe there is really no way to do that. It's such a simple format. If you know any other way please let me know. Thanks, |
pandy |
Jan 18 2021, 04:21 PM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Not odd at all. MARQUEE is old as hell and has never been accepted. It was invented by MS for IE2. We are now talking 1995-ish. It's not like it's actively maintained.
I'm sure there are other ways, with CSS and JS. |
amc439 |
Jan 24 2021, 07:19 PM
Post
#8
|
Group: Members Posts: 4 Joined: 26-December 20 Member No.: 27,697 |
Not odd at all. MARQUEE is old as hell and has never been accepted. It was invented by MS for IE2. We are now talking 1995-ish. It's not like it's actively maintained. I'm sure there are other ways, with CSS and JS. hey pandy, can i use css or js in my website to re-create it? the only reason I used marquee is because I have an html embedder and I just embedded the html code on my website. Thanks, |
pandy |
Jan 25 2021, 12:15 AM
Post
#9
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
What's an HTML embedder?
Yeah, you can do similar stuff with CSS and Javascript. But it won't be a simple tag. Google for instance "scrolling text css javascript". |
Lo-Fi Version | Time is now: 18th April 2024 - 06:33 AM |