I am a novice when it comes to CSS and I am attempting to position my information icon on the right side of my webpage.
Below is the HTML and CSS code that I currently have:
.content > .chat-section > .chat-window > .chat-top-bar {
height: 8%;
width: 100%;
box-shadow: 1px 2px 5px #888888;
background-color: white;
z-index: 10;
}
.content > .chat-section > .chat-window > .chat-top-bar > #room-id {
margin-left: 20px;
font-size: 18px;
float: left;
}
.content > .chat-section > .chat-window > .chat-top-bar > #room-info {
float: right;
}
<div class="chat-top-bar valign-wrapper">
<p id="room-id"><b>Title</b></p>
<i class="material-icons" id="room-info">info</i>
</div>
Additionally, I am utilizing Materialize CSS for my project.
My goal is to have the info icon aligned on the right side like the example image below, but I am having issues with the current CSS:
Complete Code : https://codepen.io/buckydroid/pen/rzRzrN