Help - Search - Members - Calendar
Full Version: Marquee
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Bumblebee
Hey I wanted to make a marquee
but in front of it I want non moving text

for example:

Good day: scrolling text here

CODE
<div>Goodday: <marquee>scrolling text here</marquee></div>


is the code i have but it displays good day on one line and the scrolling text here on another line...
so I guess I'll have to use a table in order to make it work? Or is there a way to not use tables and make this work?
pandy
God help me...
HTML
<div><span style="float: left">Goodday:</span> <marquee style="float: left">scrolling text here</marquee></div>


You should not use MARQUEE at all and you should avoid SPAN and inline style if possible. blush.gif
Bumblebee
QUOTE(pandy @ Oct 29 2007, 09:01 PM) *


You should not use MARQUEE at all and you should avoid SPAN and inline style if possible. blush.gif


Thx and why should I not use those?
Darin McGrew
QUOTE(pandy @ Oct 29 2007, 09:01 PM) *
You should not use MARQUEE at all and you should avoid SPAN and inline style if possible. blush.gif
QUOTE(Bumblebee @ Oct 29 2007, 07:21 PM) *
Thx and why should I not use those?
For MARQUEE and the like, see item #7 in Jakob Nielsen's Alertbox article Top Ten Mistakes in Web Design.

Markup with meaning should be used rather than meaningless SPANs and DIVs whenever possible. And rather than inline style, use CLASS and ID attributes with a separate style sheet.
Brian Chandler
QUOTE(Darin McGrew @ Oct 30 2007, 11:48 AM) *

Markup with meaning should be used rather than meaningless SPANs and DIVs whenever possible. And rather than inline style, use CLASS and ID attributes with a separate style sheet.


Obviously, being sensible is a good idea. But when bits of text do not naturally fall into any of the (extremely patchy set of) HTM element categories, what should one do?

Obviously, when a style applies to a general category throughout a document, it should go in a stylesheet, but when bits of CSS are generated for individual elements, how does it help to put them somewhere else (inducing the Fortran 'FORMAT' statement problem)?

Comments made in response to the question at hand should be used rather than meaningless incantation of mantras.
pandy
Do you think the OPs page is "gererated"? I don't. Putting it in a linked style sheet makes it easier to edit if nothing else, especielly if the margeee occurs on more than one page.
Brian Chandler
QUOTE(pandy @ Oct 30 2007, 11:27 PM) *

Do you think the OPs page is "gererated"? I don't. Putting it in a linked style sheet makes it easier to edit if nothing else, especielly if the margeee occurs on more than one page.


Of course if it's used in many places it should go in a style sheet. But this immediately makes it extra troublesome to look at the source of the page to see what's going on.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.