Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAvery Pierce
1,869 PointsCan anyone tell me why my text is not aligning right for my in page nav?
I am trying to install a sidebar nav, can anyone tell me why my text will not align right and sit on the outside of the text.
Avery Pierce
1,869 Points<h1>Events</h1>
<div class="sideright">
<h3>Features</h3>
<ul>
<li><a href="Featured Artist">Featured Artist</a></li>
<li><a href="Items">Items</a></li>
<li><a href="Brands">Brands</a></li>
<li><a href="Up And Coming Events">Up And Coming Events</a></li>
<li><a href="Heavy Rotation">Heavy Rotation</a></li>
</ul>
</div>
Sorry about that
1 Answer
Steven Parker
231,261 PointsI notice your code has a class of "sideright", which I would expect is intended to apply the right-alignment. Normally this would be defined in an external CSS file, but if you don't have one, you can also define it in the head
section of the html document:
<head>
<!-- title and other head items -->
<style>
.sideright { text-align: right; }
</style>
</head>
Michael Hulet
47,913 PointsMichael Hulet
47,913 PointsCould you post your code here? We can't really help without it