+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Need some HTML/CSS help!

  1. #1
    jdmaurer16 is offline x10Hosting Member jdmaurer16 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    34

    Need some HTML/CSS help!

    Okay, so here is my question. When you change an image into a hyperlink and your clicking on it, there is a little dotted border that goes around the image while its active. Is there any way to get rid of this? Any help is appreciated! Thanks a lot!

  2. #2
    mfurqanabid's Avatar
    mfurqanabid is offline x10Hosting Member mfurqanabid is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    37

    Re: Need some HTML/CSS help!

    if you want want to remove the border from image change border width to 0

    here is example

    <img src="http://forums.x10hosting.com/programming-help/soruce.png" border="0" />

    or if you want border around image than use
    a:active {} class

  3. #3
    jdmaurer16 is offline x10Hosting Member jdmaurer16 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    34

    Re: Need some HTML/CSS help!

    I know all that, but what I'm talking about, is when the link is active, or when you are clicking on it. The dotted border only shows up for like a split second, but its just annoying. Any ways to fix this?

  4. #4
    compwhizii is offline Banned compwhizii is an unknown quantity at this point
    Join Date
    May 2008
    Location
    The Moon
    Posts
    779

    Re: Need some HTML/CSS help!

    Quote Originally Posted by jdmaurer16 View Post
    I know all that, but what I'm talking about, is when the link is active, or when you are clicking on it. The dotted border only shows up for like a split second, but its just annoying. Any ways to fix this?
    I see, I don't think there is a way to get rid of this.

  5. #5
    jdmaurer16 is offline x10Hosting Member jdmaurer16 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    34

    Re: Need some HTML/CSS help!

    Darn.

    Ok thanks. If anyone knows of a way to get rid of this, please let me know! Thanks for your help guys!

  6. #6
    supermix is offline x10Hosting Member supermix is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    30

    Re: Need some HTML/CSS help!

    You can do so with javascript. But first is the content you are trying to load in the same page?

    use the onclick event of an image

    HTML Code:
      <img src='image.jpg' onclick='window.top.location="http://site.com/" />
    
      or for text I use span tags
     
      <span onclick='window.top.location="http://site.com/" />go to site.com</span>
    fool around with onmouseover and onmouseout events and you get an almost a-href-link tag look-a-like.
    Edit:
    see http://chinghoe.x10hosting.com/products.php for an example
    Last edited by supermix; 11-25-2008 at 04:28 AM. Reason: Automerged Doublepost

  7. #7
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: Need some HTML/CSS help!

    Can I ask a stupid question?

    Isn't this the a:active .css??

    your .css would be

    Code:
    a:active{
    border:none;
    }
    If you apply this, then surely there won't be any border when its active???

  8. #8
    agroup's Avatar
    agroup is offline x10 Sophmore agroup is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    190

    Thumbs up Re: Need some HTML/CSS help!

    Quote Originally Posted by mfurqanabid View Post
    if you want want to remove the border from image change border width to 0

    here is example

    <img src="http://forums.x10hosting.com/programming-help/soruce.png" border="0" />

    or if you want border around image than use
    a:active {} class
    i think so :nuts:
    Regards:
    Agroup :cool:

    http://FileTube.info - Online File Storage & CMS Scripts
    Islamic-World - All About Islam

  9. #9
    tdltinc is offline x10Hosting Member tdltinc is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    PH, Bulacan, SJDM
    Posts
    32

    Re: Need some HTML/CSS help!

    Here's the right code that I have studied in w3school:

    Make an "id" attribute in your image tag(s).
    HTML Code:
    <html>
    <img
    id="image" scr="http://image.com" />
    </html>
    For making CSS to remove it's border, every id attributes that you will customize in CSS starts with "#" before the name.
    CSS Code:
    #image {
    border: 0px none;
    }
    Quite tough and clean huh? It is Valid in HTML 5. Enjoy that code.

    I think your problem is you see a dotted in you image so Ignore it its your browser... For you know what picture did you click.
    Last edited by tdltinc; 11-25-2008 at 09:53 AM.

  10. #10
    ddc4000 is offline x10Hosting Member ddc4000 is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    3

    Re: Need some HTML/CSS help!

    read some books

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. html/css for a text hover box
    By buddy218 in forum Programming Help
    Replies: 7
    Last Post: 08-09-2008, 04:24 AM
  2. html/css help
    By swantonbomb88 in forum Programming Help
    Replies: 3
    Last Post: 05-01-2008, 09:12 AM
  3. HTML/CSS Help...
    By racoweb in forum Programming Help
    Replies: 3
    Last Post: 04-10-2008, 03:06 PM
  4. Html/css webdesign
    By thezone1 in forum The Marketplace
    Replies: 4
    Last Post: 10-30-2007, 01:21 AM
  5. Html/CSS template (to rip) 1000 points
    By 3aKaT in forum The Marketplace
    Replies: 9
    Last Post: 06-18-2007, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers