Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS border trouble

    First, the page and css file:

    http://inkyorshaggy.keenspace.com/te...xtemplate.html
    http://inkyorshaggy.keenspace.com/test/main.css

    So here's my scandal. The tracker I want on that page is making an annoying border around a little image, and I can't seem to get rid of it:

    Code:
    <div style="border-color: #769d00;">
    <img alt="" src="http://e0.extreme-dm.com/s9.g?login=dmitridb&amp;j=n&amp;jv=n" />
    </div>
    I've tried <div style="border: none"> and a few other things like making it into a link in order to make it go away using the

    Code:
    a img
    {
    border: none;
    }
    in my CSS file, but none of them are working. What gives? How can I get rid of this annoying little border? Thanks in advance for your help.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You might not be able since inline styling takes presendence over embedded and external stylesheets. Try
    Code:
    img {
    border:0;
    }
    But this will now make all images not have borders, but it works. Why not take the counter out of the div?
    Last edited by _Aerospace_Eng_; 07-17-2005 at 02:51 AM.

  • #3
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    You might not be able since inline styling takes presendence over embedded and external stylesheets. Try
    Code:
    img {
    border:0;
    }
    But this will now make all images not have borders, but it works. Why not take the counter out of the div?
    Taking the borders out of all the images isn't an option because that's the only real way to give the comic a border without messing up rendering. Also, I just realized something... if I remove the image tag from the code, the border is still there! It appears that the image must not be the problem, then.

    I'll post the trouble code in it's entirety here:

    Code:
    <a href="http://t.extreme-dm.com/?login=dmitridb"
    target="_top"><img src="http://t1.extreme-dm.com/i.gif"
    name="EXim" border="0" height="38" width="41"
    alt="eXTReMe Tracker"></img></a>
    <script type="text/javascript" language="javascript1.2"><!--
    EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
    EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
    </script><script type="text/javascript"><!--
    var EXlogin='dmitridb' // Login
    var EXvsrv='s9' // VServer
    navigator.javaEnabled()==1?EXjv="y":EXjv="n";
    EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
    EXd.write("<img src=\"http://e0.extreme-dm.com",
    "/"+EXvsrv+".g?login="+EXlogin+"&amp;",
    "jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
    "l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
    </script><noscript>
    <img alt="" src="http://e0.extreme-dm.com/s9.g?login=dmitridb&amp;j=n&amp;jv=n" />
    </noscript>
    And the page sans image to show you what's going down:

    http://www.inkyorshaggy.keenspace.co...ndexweird.html

    Maybe it's not even a CSS border. That would be odd.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Umm, it is the CSS
    right before your body css you have this
    Code:
    img
    {
    border: solid;
    }
    That tells every image to have a border.

  • #5
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    Umm, it is the CSS
    right before your body css you have this
    Code:
    img
    {
    border: solid;
    }
    That tells every image to have a border.
    You missed my point completley. If i remove the image from the code, the border is still there.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Okay but there still was a div that had an inline style that told it to have a border. When I viewed your page and took away those previous lines I mentioned the border went away. This was the original code posted
    Code:
    <div style="border-color: #769d00;">
    <img alt="" src="http://e0.extreme-dm.com/s9.g?login=dmitridb&amp;j=n&amp;jv=n" />
    </div>
    Do you see the inline style in the div telling the div to have a border color? Now if you take the image out of the div, you still get the border. Want to know why? I've already told you why. Its these lines in your CSS
    Code:
    img
    {
    border: solid;
    }
    Read what I type. That CSS tells ALL (got it ALL) images to have a solid border, and plus the border-color inside the div that surrounds it.
    Last edited by _Aerospace_Eng_; 07-19-2005 at 09:37 AM.

  • #7
    Regular Coder
    Join Date
    Jul 2005
    Location
    Halifax, Nova Scotia, Canada
    Posts
    392
    Thanks
    1
    Thanked 0 Times in 0 Posts
    We all get frustrated, but let's try to show some appreciation for those who are trying to help you. And I'm quite sure that that will solve your problem.
    Once I thought I was wrong but I was mistaken.

  • #8
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So I'm googling back on my namesakes and finding some amusing stuff like this.

    Anyone who may be reading anything they've found googling 'dmitridb'... keep in mind some of the stuff you may find (Like this) is from when I was like 14 years old. Yep. So in a way, not really representative of me now. Just something to laugh with me at. Also seems I can't delete this stuff, so I guess this post is making up for that, hahahahahaha

  • #9
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by dmitridb View Post
    so i'm googling back on my namesakes and finding some amusing stuff like this.

    Anyone who may be reading anything they've found googling 'dmitridb'... Keep in mind some of the stuff you may find (like this) is from when i was like 14 years old. Yep. So in a way, not really representative of me now. Just something to laugh with me at. Also seems i can't delete this stuff, so i guess this post is making up for that, hahahahahaha


    huh???

  • #10
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    He is saying that when he was 14 he was inconsiderate and wasn't nice to the people who helped him and now he has changed. Although I think it was worth dragging up an old thread just to say it.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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