Being a beginner in the world of html and css, I have encountered an issue while creating a responsive web page. At the top of my page, there is a text within a div which gets cut off from the right side as I decrease the browser width. Initially, I considered using marquee to solve this problem, but I've been informed that it's now obsolete. Can someone please provide me with a solution to fix this issue? Any help or suggestions would be greatly appreciated.
#topdiv {
position: fixed;
top: 0;
width: 100%;
height: 20px;
}
#topdiv p {
position: relative;
color: #FFF;
float: right;
}