on-internet
← Community

Moving text with CSS

Stack Overflow ·

I'm trying to move a line of text back and forth inside a colored background box. I can do this beautifully with the marquee tag, but as I heard its usage is not recommended so I decided to use CSS instead. Although I copied the form of the animation function from CSS tutorials but I can't figure out why the line doesn't move. Could you show me what's wrong with my code? My HTML code: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html" charset="UTF-8"> <title>Part 1</title> <link rel="stylesheet" content="text/css" href="part1-2.css"> </head> <body> <div class="ba

Comments

Sign in or sign up to comment and upvote.

No comments yet.