Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    18
    Member #
    7848
    ok, so i'm attempting to build a website for the upteenth time. anyway, i'm using an external css (border set to none) with strict xhtml. and i keep getting a border around my images when i view with firefox/netscape. (no border appears in explorer). if i add the inline border="0" attribute the thing (the border not the image) goes away, but then it's no longer strict xhtml.

    so is there an extra code or something that i have to add for firefox/netscape.

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    What is your code?
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    18
    Member #
    7848
    my code

    external css =
    image
    {
    border:none
    }

    html head = <link rel="stylesheet" type="text/css" href="hxxxxx" />

    html body = <img class="image" src="xxxx" alt="words" />

    it's linked fine since other stuff works.
    validated both html and css with w3.org

  5. #4
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Well image isn't a tag.

    img is.

    Change that CSS to:
    img{ border:none; }
    And it will work
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  6. #5
    Junior Member
    Join Date
    Oct 2004
    Posts
    18
    Member #
    7848
    thx

    haha, thx, i knew it was going to be some silly syntax problem.
    ~computers are dumb. people are smart.


Remove Ads

Posting Permissions

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

Search tags for this page

adding border in external images css

Click on a term to search for related topics.
All times are GMT -6. The time now is 11:16 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com