39 users online (1 members and 38 guests)  


  Results 1 to 12 of 12

Related

  1. Replies: 1
  2. Using an image as a border    Forum: HTML Forum
    Replies: 1
  3. one image three links    Forum: HTML Forum
    Replies: 9
  4. Replies: 3
  5. image border help plz    Forum: Graphics Forum
    Replies: 5
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    Lightbulb border on image links

    as everyone knows, when u put up an image link, there's usually a border around the image. i learned dat by putting 'border="0"' , i could remove dat border. but wat if i want the border , however , in the color of black?

  2. #2
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    The border color, by default, is the link color you specified in the BODY tag. I think you would be able to change the border color of an image link using CSS.

  3. #3
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    in my head section, i wrote:
    edit: edited to remove the first and last <> brackets (certain code likes to play nasty tricks on the front page )

    (style type="text/css")
    <!--
    A:link {color:black}
    A:visited {color:black}
    A:hover {color:#0066CC}
    A.unique:hover {color:black}
    -->
    (/style)




    but ,still, the border colour is blue

    Last edited by HTML; 07-25-2002 at 03:37 PM.

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    I am curious about the comment tags (<!-- and -->)you have in the code. If you actually are using these comment tags in the document they should be removed.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  5. #5
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    but i use the code and it works on normal text links, so....



    u can actualy chek out my web page at

    http://rostation.tripod.com/links.html

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    I clicked the link and it returns a 404 error(file not found)

    Anticipating your response that you see the page just fine, I would suggest clearing your cache and you will see it is not there

    Dave

    edit: I also went to removed the links.html to visit your front page and tried to follow the link from there, still got a 404 error.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  7. #7
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    sorry, i put something wrong b4, dat's y u got an 404 error page.


    it's actually:

    http://rostation.tripod.com/links/links.html

  8. #8
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    This link worked, be sure to correct the link on your index page also. I looked at your CSS and the comment tags are there. Also, you only need 1 opening and closing style tag, a new set of tags are not needed for each element.

    The best thing to do is to visit http://css.somepeople.net I have a feeling dean is going to give me a reason that the comment tags are ok.

    Dean, if I may go off topic for a minute, http://www.quietdean.com/?page=css
    cool page

    Dave
    Last edited by HTML; 07-25-2002 at 08:19 PM.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  9. #9
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    so.....how DO u get borders in color black?

  10. #10
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Talking

    Thanks Dave. I got the hang of my referral id, lol.

    The comment tags are good. They stop the css code being displayed as text in older browsers that do not understand the style tag.

    Daves right, the tutorial covers borders quite well.

    heres a shortcut -

    Code:
    <a href="mylink.html"><img src="myimage.jpg" style="border: 4px dashed black;"></a>
    Other values for border style include solid, dotted, ridged . check out the tutorial.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  11. #11
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    thx , i tried to go into dean's site, and couldn't find it the first time, now i could. thx

  12. #12
    Nfx1's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    6
    its quite simple->

    eg <size="1" color="#000000">

    if it hasnt worked, press F5 to refresh ur cache

    Nfx1



Tags for this Thread