I can't seem to get my text within my divs to right align. If anyone could throw out a few pointers, errors, or suggestions that would be much appreciated.
Should I instead be using an inline list with floats?
Code:
Code:<style type="text/css"> #accountNav { position: relative; } #accountNav div.accountcontainer { width: 50%; position: absolute; right: 25px; } #accountNav div.accountcontainer div { text-align: right; } #accountNav a { float: left; margin: 5px 10px 0px 10px; white-space: nowrap; font-weight: bold; text-decoration: none; } </style>Code:<div id="accountNav"> <div class="accountcontainer"> <div style=""> <a href="login url">Login</a> </div> <div style="float: left; margin: 5px 2px 0px 2px;"> | </div> <div style=""> <a href="view cart url">View Cart</a> </div> <div style="float: left; margin: 5px 2px 0px 2px;"> | </div> <div style=""> <a href="check out url">Check Out</a> </div> </div> </div>



Reply With Quote


dur de dur. So if I want everything to float to the right I would just USE 'float right' LOL. Makes sense, thanks! 

Bookmarks