Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Float : Right problem with display on next line.

Posted on 2006-11-14
3
Medium Priority
?
293 Views
Last Modified: 2008-03-06
<style>
.headingTwo .li-viewall{
               float:right;
}
td.rMod1 .headingTwo {
            font-family: Arial, Helvetica, sans-serif;
            text-transform: uppercase;
            font-size: 8pt;
            display: block;
            margin: 0px;
            background-color: #000000;
            color: #000000;
            height: 25px;
            vertical-align: middle;
            line-height: 145%;
            text-indent: 10px;
            letter-spacing: 0.05em;
            background-image: url(/gaming/gameTab_left.jpg);
            background-repeat: no-repeat;
            background-position: top;
            font-weight: bold;
      }
</style>


<table cellspacing=1 cellpadding=0 border=0 width="100%">
<tr><td class="rMod1" width="100%">
            <div class="headingTwo" >Favorites <a href="/user_bookmarks" class="viewall">Edit</a></div>
       </td>
</tr>
</table>


I'm right to float the "EDIT" to the right but when I do it displays on the next line and messes everything up.
I thought it was because the float puts the text in a block so I placed the div in a block and it's still not working.
can you think of anything?

            



      
0
Comment
Question by:rpong
  • 2
3 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 17940692
Use:

<a href="/user_bookmarks" class="viewall">Edit</a>
<div class="headingTwo" >Favorites </div>

+

td.rMod1 .viewall {float:right;}

-r-
0
 

Author Comment

by:rpong
ID: 17940795
I don't think that works
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 2000 total points
ID: 17941308
For an element to float right of content, the element should be defined in front of all content it should float right to.

-r-
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question