Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a scrolling text using marquee but when I add more code or text it flows out of the text box I tried but i couldnt figure out the problem or is there a limit of text that marquee tag can handle?
Help me check the code out

What I have tried:

<!DOCTYPE html>

<html>

<head>
   
<style>
.soon
{display: flex;
justify-content:center;
 
align-items:center;

	
   Background-color:black;
   Padding:50px;
   color:white ;

   width:240px;
   height:50px;
	border-style: double;
   border-color: #080dab;
	border-width: 5px;
   width: 250px;
   height: 100px;
	

}
</style>
</head>
<div class='soon'><p> <span style="font-size :20px; color: yellow ;white-space: nowrap;"><marquee scrollamount="3" direction="up">coming soon </span> <br/>this site is under maintenance by a full stack developer <span style="font-size :15px; color: green ; ">Ambrose!</span> </br> <br> SKILLS 
  <hr> 
  <ul>
    <li>html</li>
    <li>css</li>
    <li>javascript</li>
    <li>sql</li>
    <li>bootstrap</li>
    <li>node.js/Express.js</li>
    </ul>
  CONTACT <HR>
  ambrussio@gmail.com
  
 </marquee></div></html>
<body>

</body>
<html>
Posted
Updated 22-Jan-22 12:52pm
v3
Comments
Richard Deeming 24-Jan-22 8:32am    
NB: The <marquee> element is deprecated, and should not be used in any new development.

<marquee>: The Marquee element - HTML: HyperText Markup Language | MDN[^]

1 solution

Hi,

you want overflow: hidden in .soon

see CSS Overflow[^]

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900