Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-20-2012, 06:54 AM   PM User | #1
rizzledon
New Coder

 
Join Date: Mar 2012
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
rizzledon is an unknown quantity at this point
Marquee tag has delayed start?

Hi, I''m trying to create a downward scrolling marquee that starts straight away (without using javascript) and for some reason I'm getting a delay before it begins. I've tried adding a scrolldelay but it's not really working.
Anyone know why?

CSS
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<style type="text/css">
body {
    height: 600px;
    width: 1024px;}
#wrapper {
    height: 600px;
    width: 1024px;}
.marquee {
    min-height: 600px; 
    position: absolute;
    font-family: Garamond;
    font-size: 8pt;
    color: #FF00CC;}
</style>
HTML
Code:
<body>
<div id="wrapper">
<marquee class="marquee" direction="down" scrollamount="10">scroll down</marquee>
</div>
</body>
</html>
rizzledon is offline   Reply With Quote
Old 11-20-2012, 06:11 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello rizzledon,
That snippet of code you've posted is invalid. By closing your head to early you have placed your CSS in between the head and body of the document and who knows how that's going to work?

See the links about validation in my signature line below.

Some help with marquee - http://www.hongkiat.com/blog/css-marquee/
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-20-2012, 06:41 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,449
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Also there's no such thing as a marquee tag in HTML because HTML defines the content and JavaScript defines the behaviour and marquee is a behaviour. Some browsers do have a proprietary tag called marquee but a single line of CSS in the user CSS file or inserted into the browser's own default CSS soon negates that.

To implement any marquee properly you should use JavaScript. When you implement a marquee this way you can then control exactly how you want it to work.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is online now   Reply With Quote
Reply

Bookmarks

Tags
delay, marquee

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Advertisement
Log in to turn off these ads.