...

View Full Version : CSS border trouble



dmitridb
07-17-2005, 01:26 AM
First, the page and css file:

http://inkyorshaggy.keenspace.com/test/indextemplate.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:



<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



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.

_Aerospace_Eng_
07-17-2005, 02:36 AM
You might not be able since inline styling takes presendence over embedded and external stylesheets. Try

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?

dmitridb
07-17-2005, 04:47 AM
You might not be able since inline styling takes presendence over embedded and external stylesheets. Try

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:



<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.com/test/indexweird.html

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

_Aerospace_Eng_
07-17-2005, 04:54 AM
Umm, it is the CSS
right before your body css you have this

img
{
border: solid;
}
That tells every image to have a border.

dmitridb
07-19-2005, 09:23 AM
Umm, it is the CSS
right before your body css you have this

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.

_Aerospace_Eng_
07-19-2005, 09:32 AM
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

<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

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.

Tristan Gray
07-19-2005, 12:40 PM
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.

dmitridb
09-24-2010, 10:11 AM
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

teedoff
09-24-2010, 08:11 PM
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???

_Aerospace_Eng_
09-24-2010, 11:58 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum