The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Is it Possible?

  • # July 23, 2008 at 4:58 am

    Is it possible to make a marquee with a image in the background of my site. I also want to do with with my sites MySpace


    (ABOVE CODE)I cant make this the background of my site… I want to make it go in the top left corner

    body{background: transparent url(;
    background-color: 1b1b1b;
    background-position: top left;
    background-repeat: no-repeat;

    this is the static image…it just stays on the top left even when scrolling but i want it to move like a marquee.

    if anyone is wondering why i am doing this, i am trying to make it look like the moon is moving across the sky during the time visitors are on my site.

    hope someone could help

    thanks :D

    # July 23, 2008 at 5:09 am

    This reply has been reported for inappropriate content.

    marquee is a deprecated HTML element, so its use is frowned upon. It’s both a styling element and behavioural and has no place in modern HTML mark-up.
    You could use an animated gif? Or a flash animation which, given that it’s purely a design feature I don’t see any problems with accessibility with using flash in this case.
    If you wanted to use coding for such a design, then I would class a moving image as behavioural content so you might look at javascript to move your image across the screen.

    I’d be inclined to use flash in this case – and I don’t say that often :p lol

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed