Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Html Problem

  • 02-05-2007 11:07am
    #1
    Registered Users, Registered Users 2 Posts: 7,123 ✭✭✭


    I am trying to put a link in this picture but every time I do the pictures move,I use the standard was of linking a picture.

    <img style = "position:absolute; top:50px; left:600px;
    width:100px; height:100px"
    src = "intel.jpg">

    I want to keep this loction and have a link in the picture any ideas?

    James


Comments

  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    A link in the picture? Are you talking about placing an <a> tag around it?

    Have you got some CSS code for your 'a' tag that might be causing it to move?

    Have you switched off borders for images links? (add border : 0px; to your CSS code for <img>)


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    <snip> Goodshape seems to have beaten me to it.

    And a link in the picture, do you mean the picture is a link or a section of the picture is a link. If the former just wrap the img tag in an anchor. e.g.

    [HTML]<a href="http://www.awebsite.com/"><img src="intel.jpg"></a>[/HTML]


  • Registered Users, Registered Users 2 Posts: 7,123 ✭✭✭the whole year inn


    Yes sorry the picture is a link,.I was meant to say the picture is a .gif that is hardly a problem.I am not entirely sure what you mean about adding border : 0px; to the css .I have changed it to

    img {
    border: 0px;
    }

    Any other ideas?

    thanks
    James


  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    I am not entirely sure what you mean about adding border : 0px; to the css .I have changed it to

    img {
    border: 0px;
    }
    Yes, that's what I meant. Just wanted to eliminate the possibility that an image border was causing the image to 'move' slightly. Unless otherwise stated (by 'border : 0px;'), adding a link to an image will add a 1px border around it.
    Any other ideas?
    I'd need to see more of your code. Post the full HTML and CSS of the page if you can.


  • Registered Users, Registered Users 2 Posts: 7,123 ✭✭✭the whole year inn


    I have upload the project to this web site

    http://www.sharebigfile.com/file/158316/project--pres-rar.htmle

    Thanks for the help.

    james


  • Advertisement
Advertisement