PDA

View Full Version : CSS question


Spank
10-24-2007, 09:00 AM
Hi guys and gals, this is probably a simple question so I hope someone is able to help. I never learned css so I'm not able to figure it out.

I've made myself a custom navbar using images as links, but it's using the body css, so it puts a coloured border around the images, how do I remove that?

Thanks :)

Freesteyelz
10-24-2007, 09:07 AM
In Main CSS --> Additional CSS Definitions try:


img (
border:0;
)

Spank
10-24-2007, 09:17 AM
Thanks for your help, but that didn't have any effect.

Freesteyelz
10-24-2007, 09:26 AM
Edited:

Find:


<!-- *******EMPYRON CUSTOM NAV******* -->
<tr> <td>
<div class=".page">



And replace it with:


<!-- *******EMPYRON CUSTOM NAV******* -->
<tr> <td>
<div class="page">

Spank
10-24-2007, 09:40 AM
It does work with both page and .page. I tried it earlier but when I change the values off the css for page background in StyleVars to have link colours as white (so you can't see the borders) it changes all my links white.

Freesteyelz
10-24-2007, 09:43 AM
If you remove the class so it will just be <div> what happens?

The border:0; should work in most cases unless there's an overriding code. I'm in your site now.


Edited:

Replace the border code with this one:


img {
border:0;
}

Spank
10-24-2007, 09:50 AM
tried it just as <div>, still no change. The problem is that it's using the body values.

Freesteyelz
10-24-2007, 09:51 AM
Replace the (first) border code I posted with the new one right above your #7 post under "Edited". It should work now. :)

NM...

I've reposted the code:


img {
border:0;
}



Use that. :)

Spank
10-24-2007, 09:55 AM
Ah fantastic! You're a star! Thanks alot :)

Freesteyelz
10-24-2007, 09:57 AM
Thanks but because I originally posted the wrong character "(" verses the correct "{" you had to go through unnecessary pain. Glad it got sorted. :)