Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2005
    Location
    Milton Keynes, UK
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    FIR Replacement Technique - What am I doing wrong?

    I have my HTML:
    Code:
    <td align="left" id="intro">Welcome to the my website! <a href="http://xxxxx">Click here for more information.</a></td>
    and my CSS:
    Code:
    #intro { display: block; text-indent: -9000px; background: url("welcome.gif") left top no-repeat; background-repeat: no-repeat; height: 80px; width: 480px; }
    
    #intro a { display: block; margin-left: 275px; margin-top: 25px; height: 20px; width: 185px; }
    But I cannot get the intro a to sit over the top of the intro text. Can anyone tell me what I am doing wrong pls?

    At the moment, I have compromised by "positioning" the intro a actually over the URL area on the image, but I just want intro a to cover the whole image.

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    At the moment, I have compromised by "positioning" the intro a actually over the URL area on the image, but I just want intro a to cover the whole image.
    Take out the width… by default a block-level element takes up the entire width of its container, so when you make the link a block-level element, all you need is the height.

  • #3
    New Coder
    Join Date
    Jul 2005
    Location
    Milton Keynes, UK
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This code is actually the compromise, what I really need is a way of specifically telling the intro a code that it has to sit over the intro ID exactly


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •