[SOLVED] Marquee in CSS

This is a discussion on "[SOLVED] Marquee in CSS" within the Web Page Design section. This forum, and the thread "[SOLVED] Marquee in CSS are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 17th, 2007, 04:43
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
[SOLVED] Marquee in CSS

Is there a way i can do a marquee in css?
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote

  #2 (permalink)  
Old Oct 17th, 2007, 07:02
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Marquee in CSS

No, you cannot create a marquee using completely CSS, you need JavaScript... There is however a marquee tag in html although it is depreciated and therefore will give you invalid code.

Oh, by the way, what way do you want it to scroll? Verticle or Horazontal?
Reply With Quote
  #3 (permalink)  
Old Oct 17th, 2007, 13:41
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Marquee in CSS

If you want a scroller, make sure you use one which is cross browser compatiable (did i spell that right?).

www.dynamicdrive.com has some scrollers
Reply With Quote
  #4 (permalink)  
Old Oct 18th, 2007, 01:04
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
Re: Marquee in CSS

hm,mm Css needs to get in teh ball then haha.. or microsoft.. haha..

and it would b e horizontal.
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote
  #5 (permalink)  
Old Oct 18th, 2007, 05:32
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Marquee in CSS

Quote:
Originally Posted by mcdanielnc89 View Post
hm,mm Css needs to get in teh ball then haha.. or microsoft..
NOT! HTML is a markup language --> static. This is what javascript is for....
Reply With Quote
  #6 (permalink)  
Old Oct 18th, 2007, 09:16
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Marquee in CSS

Quote:
Originally Posted by mcdanielnc89 View Post
hm,mm Css needs to get in teh ball then haha.. or microsoft.. haha..

and it would b e horizontal.
What
Reply With Quote
  #7 (permalink)  
Old Oct 30th, 2007, 07:57
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Marquee in CSS

I found this:
Code: Select all
<marquee bgcolor="#cccccc" border="0"  align="middle" scrollamount="3" scrolldelay="60" behavior="scroll"  width="200" height="12" style="font-family: Verdana, Arial, Helvetica,  sans-serif; color: #CC0000; font-size: 10">Wow...Isn't 
this one much  better?</marquee>
and this:
Code: Select all
<marquee bgcolor="#cccccc" border="0" align="middle" scrollamount="3"  scrolldelay="60" behavior="scroll" width="200"  height="12" style="font-family: Verdana, Arial, Helvetica, sans-serif; color:  #CC0000; font-size: 10">Wow...Isn't 
this one much better than the one  above?</marquee>
some of them will only work in IE..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #8 (permalink)  
Old Oct 30th, 2007, 08:04
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Marquee in CSS

Quote:
Originally Posted by mcdanielnc89 View Post
hm,mm Css needs to get in teh ball then haha.. or microsoft.. haha..

and it would b e horizontal.
He's speaking in tongues.
Reply With Quote
  #9 (permalink)  
Old Oct 30th, 2007, 08:49
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Marquee in CSS

Quote:
Originally Posted by monie View Post
I found this:
Code: Select all
<marquee bgcolor="#cccccc" border="0"  align="middle" scrollamount="3" scrolldelay="60" behavior="scroll"  width="200" height="12" style="font-family: Verdana, Arial, Helvetica,  sans-serif; color: #CC0000; font-size: 10">Wow...Isn't 
this one much  better?</marquee>
and this:
Code: Select all
<marquee bgcolor="#cccccc" border="0" align="middle" scrollamount="3"  scrolldelay="60" behavior="scroll" width="200"  height="12" style="font-family: Verdana, Arial, Helvetica, sans-serif; color:  #CC0000; font-size: 10">Wow...Isn't 
this one much better than the one  above?</marquee>
some of them will only work in IE..
Isn't that depricated code?

Personally, I think scrolling marquees like that are pretty outdated. I would prefer a vertical scroller which could display snippets of new articles or something
Reply With Quote
  #10 (permalink)  
Old Oct 30th, 2007, 11:07
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Marquee in CSS

This works in FF, I just tried it.
HTML: Select all
<marquee style="background-color: #000; color: #FFF;">scroller</marquee>
I think you'd be better using JS for this though.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #11 (permalink)  
Old Oct 30th, 2007, 12:24
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Marquee in CSS

Quote:
Originally Posted by alexgeek View Post
This works in FF, I just tried it.
HTML: Select all
<marquee style="background-color: #000; color: #FFF;">scroller</marquee>
I think you'd be better using JS for this though.
But does it validate?
Reply With Quote
  #12 (permalink)  
Old Oct 30th, 2007, 16:38
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Marquee in CSS

Nope - it shouldn't.
Reply With Quote
  #13 (permalink)  
Old Oct 31st, 2007, 02:31
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Marquee in CSS

Ahh... I shouldn't post them! It's an old antique style..
and mcdanielnc89, you should listen to these guys..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #14 (permalink)  
Old Oct 31st, 2007, 04:43
mcdanielnc89's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Missouri
Age: 18
Posts: 231
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mcdanielnc89 Send a message via Yahoo to mcdanielnc89 Send a message via Skype™ to mcdanielnc89
Re: Marquee in CSS

i plan on it, hehe
Last Blog Entry: My blog? (Oct 18th, 2007)
Reply With Quote
  #15 (permalink)  
Old Oct 31st, 2007, 04:48
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Marquee in CSS

Quote:
Originally Posted by AdRock View Post
But does it validate?
Check if it validate..?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #16 (permalink)  
Old Oct 31st, 2007, 12:13
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Marquee in CSS

Code with the <marquee> tags won't validate as it's not a defined element from the W3C

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
</head>

<body>

<marquee bgcolor="#cccccc" border="0" align="middle" scrollamount="3"  scrolldelay="60" behavior="scroll" width="200"  height="12" style="font-family: Verdana, Arial, Helvetica, sans-serif; color:  #CC0000; font-size: 10">Wow...Isn't this one much better than the one  above?</marquee>

</body>
</html>
15 simple lines of code that outputs 11 validation errors
Reply With Quote
  #17 (permalink)  
Old Oct 31st, 2007, 12:36
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Marquee in CSS

Quote:
Originally Posted by karinne View Post
Code with the <marquee> tags won't validate as it's not a defined element from the W3C

HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
 
<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
</head>
 
<body>
 
<marquee bgcolor="#cccccc" border="0" align="middle" scrollamount="3"  scrolldelay="60" behavior="scroll" width="200"  height="12" style="font-family: Verdana, Arial, Helvetica, sans-serif; color:  #CC0000; font-size: 10">Wow...Isn't this one much better than the one  above?</marquee>
 
</body>
</html>
15 simple lines of code that outputs 11 validation errors
My point exactly
Reply With Quote
  #18 (permalink)  
Old Nov 1st, 2007, 00:43
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Marquee in CSS

Quote:
Originally Posted by mcdanielnc89 View Post
i plan on it, hehe
Blame me on it guys.. for posting that example..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #19 (permalink)  
Old Nov 1st, 2007, 04:59
Junior Member
Join Date: Jul 2007
Location: Dallas, TX
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Marquee in CSS

I think I found a CSS example of what you are probably aiming for...AND...it validates!

Try this: http://csszengarden.com/?cssfile=htt...zen/sample.css
Reply With Quote
  #20 (permalink)  
Old Nov 1st, 2007, 05:03
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Marquee in CSS

I didn't see any marque text in that page??
All I see was all that nonsense animation running all over the page!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 1 solved problem causes another delusion Web Page Design 9 Dec 21st, 2007 08:12
Adding "Topic Solved" for solved topics AdRock Webforumz Suggestions and Feedback 21 Oct 4th, 2007 15:08
marquee rss script saltedm8 PHP Forum 3 Jul 6th, 2007 14:53


All times are GMT. The time now is 16:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved