Previous Message
Next Message

<a href=page.html#target> placement question

Sent by Marco Scoffier on 14 July 2004 21:09


On Wed, Jul 14, 2004 at 02:51:15PM -0500, Clinton Pidlubny wrote:
> My thought would be to:
> 
> h2#important_stuf {margin-top:20px;}
> or
> #important_stuf {margin-top:20px;}
> if you don't always want it attributed to the h2 tag.
> 
> This way only that ID uses the spacing.

I was hoping to get away from lots of artificial spacing.  

I have a position: fixed; header across the top of my pages (which
degrades properly in IE).  But when I click on these link targets, they
are often buried under the fixed header.  I have used the margin-top or
padding-top, but this didn't prove all that scalable, because, as you
guessed, sometimes I reference a header, sometimes an image, sometimes a
link.  

I would really love to have the #target just show up offset some
distance from the top, without having to put 70px of white space
everywhere (70px is needed to clear the header and look normal).

Perhaps I have run into yet another impossibility, and I'll come up with
YAWA yet-another-work-around ...

-- 
Marco

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: