HTML Editor and image links have an unwanted border

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

HTML Editor and image links have an unwanted border

Post by AbleMods » Sat Oct 11, 2008 10:17 pm

I'm having issues with image links I create on my AbleMods.com site.

They always have a purple border around them. I have no clue where to fix this, but I'm assuming it's in the style sheet somewhere. I'm allergic to CSS :shock:

Thoughts?

Examples:
http://www.AbleMods.com/default.aspx the little RSS feed icons shouldn't have that purple border.
http://www.ablemods.com/Downloads.aspx The problem is much more noticeable on my downloads page.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: HTML Editor and image links have an unwanted border

Post by Robbie@FireFold » Sat Oct 11, 2008 10:45 pm

I'm a CSS noob, but I googled to attempt to find you a solution.

Only thing I could come up with: http://archivist.incutio.com/viewlist/css-discuss/62225
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: HTML Editor and image links have an unwanted border

Post by jmestep » Sun Oct 12, 2008 9:33 am

Try putting a .img{border:0;} in your style.css. At the top would be good. If that doesn't work, you would need to put it also in the section that has the image, like #leftPanel .img{border:0;}
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: HTML Editor and image links have an unwanted border

Post by afm » Sun Oct 12, 2008 2:10 pm

I like to use Firebug for things this like this (Firebug is a plugin for FireFox). Here's a 30 second movie (made with Jing) showing how I can use Inspect to find the HTML and CSS that are used to render the element. In this case I found an img inside of an anchor and the style being applied was an anchor style. Then I turned on CSS editing (after a bit of fumbling) and added a nested anchor style:

a img { border: none}

The selector (a img) will select any img tag inside of an anchor tag. Then the style turns off the border. Notice that as soon as I type the closing brace, Firebug applies the style and the borders disappear. Now that we know what style works, you can add it to one of your style sheets.

click to watch the movie
Last edited by afm on Mon Oct 13, 2008 3:50 am, edited 1 time in total.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

User avatar
Road Rider
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 26, 2008 12:43 pm
Contact:

Re: HTML Editor and image links have an unwanted border

Post by Road Rider » Sun Oct 12, 2008 3:27 pm

Joe:

If you have not solved your problem call me and I will help you out.
Doug Morrison
Director of Marketing and eCommerce
Bike Authority
http://www.bikeauthority.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: HTML Editor and image links have an unwanted border

Post by mazhar » Mon Oct 13, 2008 1:46 am

I second the Andy's idea.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: HTML Editor and image links have an unwanted border

Post by AbleMods » Mon Oct 13, 2008 5:09 am

afm wrote:a img { border: none}
Hey that worked perfectly.

Thanks Andy!!
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply