At 10:55 AM 3/6/2006, Keith Sader wrote:
>I've got a link I'd like to align at the top right of an 80% width
>table such that the link's right edge is always in alignment with the
>table's right edge.
...
><a class="printLink" href="/print">Printable Report</a>
><table id="detailTable">
><tbody>
>...
>This gets the link pretty close the right edge of the table for most
>browser widths but doesn't really 'stick' the link to the correct
>place.


Keith,

I would shrinkwrap both the link and the table in a div so that I 
could align the anchor right and know that it wasn't going to extend 
past the table.

Numerous techniques:
http://google.com/search?q=css+%28shrinkwrap+%22shrink+wrap%22+shrink-wrap%29

My own tendency would be to float the wrapper left, then clear the 
float afterward:

         <div id="wrapper">
                 <a href=...
                 <table...
         </div>
         <div id="nextItem">

         #wrapper
         {
                 float: left;
         }

         #wrapper a
         {
                 text-align: right;
         }

         #nextItem
         {
                 clear: left;
         }

Regards,
Paul 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to