• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

fgpfgp
#1 Posted : Sunday, May 20, 2007 5:59:12 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

Hi,


I Am using my own theme based on TekGear Redux and on every page, especially the product page, every image has the attibute 'style="border-width:0px'. For the life of me, I can't find where this is forced and therefore where to remove/override it (I bet Cliff knows).



Thanks for any help.

frank
Cliff
#2 Posted : Monday, May 21, 2007 4:07:44 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

I don't have time to look right now, but it might be something that .Net is doing, or maybe BV is using the border=0 attribute and .Net is translating it to CSS. Either way, yes, it isn't needed since this should be set in the stylesheet, not inline. But you can override in your stylesheet it like this:
Code:
img { border-width: 5px !important; }

As long as you have !important in there, it should override the inline style.
fgpfgp
#3 Posted : Tuesday, May 22, 2007 12:27:13 PM(UTC)
fgpfgp

Rank: Member

Joined: 5/3/2004(UTC)
Posts: 101

Thanks Cliff. !important did the trick.

frank
BMFResposio
#4 Posted : Sunday, July 29, 2007 6:42:26 AM(UTC)
BMFResposio

Rank: Member

Joined: 3/15/2007(UTC)
Posts: 126

BY default .net does add in a few in-line styles. You may never see them in the code. They are inserted when the site compiles.

Brendon
Cliff
#5 Posted : Monday, July 30, 2007 3:02:54 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Annoying as hell, too. Not to mention pointless.
scott.mech
#6 Posted : Saturday, August 11, 2007 3:22:13 PM(UTC)
scott.mech

Rank: Member

Joined: 4/4/2004(UTC)
Posts: 670

An easy way to change that behavior is a control adapter. In BVC2004, we just modify the UI control and do not use System.Web.UI.WebControls.Image. Obviously, you cannot validate at xhtml 1.0 strict without doing something here.

one could argue that this behavior is not pointless if you consider the image as a link, but that is just to argue with Cliff. I agree it is annoying, but trivial in comparison to the overall spaghetti of tables and divs that is rendered by bv.

Scott Mech
Cliff
#7 Posted : Sunday, August 12, 2007 1:10:23 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Originally Posted by: "Scott" Go to Quoted Post
but that is just to argue with Cliff.


That's the same reason my wife uses.

I don't even think that argument works. An image as a link is marked with a border by default in all browsers that I'm aware of. No framework should try to override that and designer styles just to add pointless weight to the page. Especially on top of all that spaghetti. That's where the meatballs go.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012