Dreamweaver Issues

Discussion in 'HTML & Website Design' started by FreelanceCMS, Dec 17, 2007.

  1. #1
    I've only just started using Dreamweaver to construct a site of mine and whenever i try to make an image a link, i get a [for those photoshop designers] what appears to be a a stroke or a blue hyperlink attribute around the entire shape of the image...how do i get rid of it?

    Regards,
    Nick
     
    FreelanceCMS, Dec 17, 2007 IP
  2. snigster

    snigster Peon

    Messages:
    88
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you need to set the border to 0.

    before:

    
    <img src="pathtoimage" />
    
    Code (markup):
    After:

    
    <img src="pathtoimage" [B]border="0"[/B] />
    
    Code (markup):
     
    snigster, Dec 17, 2007 IP
  3. FreelanceCMS

    FreelanceCMS Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Worked well....thanks champ
     
    FreelanceCMS, Dec 17, 2007 IP
  4. hajer

    hajer Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's better to use CSS code for that. Just put something like this in your css file

    img {
    border: 0;
    }

    And it will work for all the images in your html files. It saves time and some bites :). If you would like to use border for one of images just give it a class name in css or use structured issues.

    img.border1px {
    border: 1px solid #fff; /* white border */
    }

    than you use it in html like this
    <img src="someimage.jpg" width="" height="" alt="" class="border1px" />
     
    hajer, Dec 17, 2007 IP