Sorry that sould be padding not margin:

h1 {
position:relative;
padding-right:11em;
}

h1 a {
position:absolute;
top:0;
right:0;
width:10em;
}

- Matt =)


Matthew James Taylor
http://matthewjamestaylor.com



> Hi Nikos,
>
> Try positioning the a tag to the absolute top right corner of the heading
> block instead. Here's how that's done:
>
> h1 {
> position:relative;
> }
>
> h1 a {
> position:absolute;
> top:0;
> right:0;
> }
>
> Of course if your heading is long or your page is narrow then the two
> headings may run into each other. If that's a problem then perhaps try
> giving the a tag an em width then limit the width of the main heading with 
> a
> right padding like this:
>
> h1 {
> position:relative;
> margin-right:11em;
> }
>
> h1 a {
> position:absolute;
> top:0;
> right:0;
> width:10em;
> }
>
> You may have to fiddle with the widths to get it to look right. I hope 
> that
> helps.
>
>
> - Matt =)
>
>
> Matthew James Taylor
> http://matthewjamestaylor.com

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to