AusGamers Forums
Show: per page
1
CSS (HTML) Master
Intergage
Brisbane, Queensland
311 posts
Hey all,

I need help from someone that knows their CSS / HTML.
I have done some searching for the problem I am having but with no luck.

I have created a new site (aussiesharking.org) but on the wordpress page I added a logo (Top left) I still need to change it because of how dark it is but, in IE And Firefox there is a white box around the logo. I tried a few things with my limited CSS knowledge, like border: 0px; and stuff. No luck.

In Chrome the page loads perfectly.. I did find something on this problem with wordpress but they say it's something to do with the padding / magrins or it. The only CSS I can find to do with that logo is "#logo{ float: left;}"

I have also tried to change the link part of the CSS.. a{border: none;}
No luck.

Because this is a theme installed onto Wordpress I dont feel I should be playing around in all the code of the theme

Does anyone have any ideas?
(IF you can link me to a site where I Can upload the CSS I'll do so.
01:25pm 11/03/11 Permalink
adBot
ads
Internet
--
ads keep websites free
01:25pm 11/03/11 Permalink
Hogfather
Cairns, Queensland
9109 posts
I don't know anything about WP, but if you add a css rule with:


div#logo a img
{
    border: 0px;
}

It should go away.

Bonus points if you can figure out why that works and your other attempts didn't.
01:42pm 11/03/11 Permalink
Intergage
Brisbane, Queensland
312 posts
It's it's an img link and not the image it's self?
01:45pm 11/03/11 Permalink
Hogfather
Cairns, Queensland
9110 posts
In IE and Firefox, images are given a border automatically when they are inside an anchor (link) tag. Much like text is automatically underlined.

Your rule on the a tag itself doesn't work because the img is a seperate element in the xml dom (whereas text inside the a is content of the a so you can do text-decoration: none on the a and it affects the underline on the text).

Anyway, the rule above says that for images inside anchor tags inside divs with id "logo" please don't do that border thing.
01:49pm 11/03/11 Permalink
Intergage
Brisbane, Queensland
313 posts
Hmm, that is very handy to know.. Thank you! :)

It worked anyway!

http://www.aussiesharking.org
01:53pm 11/03/11 Permalink
adBot
ads
Internet
--
ads keep websites free
01:53pm 11/03/11 Permalink
AusGamers Forums
Show: per page
1
This thread is archived and cannot be replied to.
 

Advertise with Us | Download Media Kit | Privacy Policy | Contact Us
© Copyright 2001-2013 AusGamers™ Pty Ltd. ACN 093 772 242.
A Mammoth Media web development, hosted by Mammoth VPS.