Challenges with Span Positioning in CSS
Currently, I am encountering difficulties while working on the index.html.erb file for an example Rails website. Below is a snippet of the HTML code I am struggling with (please note that this is simply a fabricated example site and not based on any real service):
</center>
<span class="socialnet">
Aol
Google+<br>
MySpace<br>
Orkut<br>
Twitter<br>
Facebook<br>
</span>
</aside>
<span class="servsmadebyus">
Free Web Hosting<br>
Cloud Storage<br>
Paid Web Hosting<br>
FleetFile Free FTP Client<br>
FleetFile Premium<br>
</span>
The associated CSS styling:
.socialnet {
text-align: left;
color: #000000;
background-color: red; }
.servsmadebyus {
text-align: right;
color: red;
background-color:blue;
}
Despite specifying 'text-align:right;' in the CSS for .servsmadebyus, the span remains positioned on the left side instead of the desired right alignment.