Ok guys I am starting to feel hopeless. I have been trying to figure this out for the last 2 days. Here is my site: http://www.getbackexgirlfriendadvice.com/ I am trying to get the "Got Dumped?" advertisement image in my sidebar without any borders or background. What I did so far was insert it using a html text box and I added a background of the same color as the rest of my website so it blends. The problem is there are still white borders around the whole box. This is because of the settings in my .css file. I was able to remove them but this also removed the borders for all my other boxes and I dont want that. Is there a way to remove the borders of only this box? Thank You very much for suggestions +Rep to anoyone who figures this out This is the HTML code I am using for my banner box: And here are the settings for boxes from the .css file:
Browsers automatically add borders to images with a link. Have you tried removing this? Here's the code to kill it, add it to the CSS style sheet: PM me if it still doesn't work and i'll have closer look for you
you can apply an id for that particular div, then using css, throw that border away.. So it will affect only you particular div.. not all the boxes..
Thanks for suggestions guys! I dont think its a problem of the border of the image. I set the border of the image to 0 already. The border thats causing problems is the border of the whole text box. This is defined in this line: Have a look at my site now. I changed the padding to .0em 0em .0em 0em; Now the banner looks as I want it to look but my other boxes dont have borders So I am trying to figure out how to change the padding only for the box containing the banner. How do I do that?
maybe you can try this <div id="the_box"> <a href="http://9546bju7she38wbitgpcqo6xfb.hop.clickbank.net/"><img title="Banner" src="http://getbackexgirlfriendadvice.com/wp-content/uploads/2009/08/EBG_Banner1.gif" alt="Banner" width="120" height="600" /></a> </div> and in the css #the_box{ padding: 0em;
Thanks Just tried it, doesnt work. Seems like the right way to go though, maybe something wrong with the coding?
You dont see them because I set the paddings of all boxes to 0. But now the boxes look ugly. I set it to default. Have a look now.
since u put that as widget (i supposed), i dont there isnt an easy way to fix this since the box is generated for each widget.
Yes im using a simple text-box widget with html code. Its so hard to so the easiest things on wordpress Thanks for trying though Rep added