Register   Login
     
  Latest Posts  
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
  Forums  
Subject: Hard-coded border-width over-rides css class
Prev Next
You are not authorized to post a reply.

Author Messages
Robert AxfordUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:748


4/21/2007 7:02 PM  

In the plain photo view.. the one not in the pop-up and not in Lightbox, the image seems to have a hard-coded zero width border. This makes it difficult (impossible?) to set it to anything else.

I normally make use of the .photo_198 class to style the image borders and whilst this works for the thumbnails, it does not work with the main image. The correct class is being applied, but it is being over-ridden by the hard-coded style (in bold below).. can this be removed somewhere?

"DSC_0261"border-width:0px;" />

Regards,

Rob

Larry DanieleUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:2

2/22/2008 2:25 PM  
I too an experiencing this same problem. I don't see where in the code this 'style="..." string is being generated and how to keep the "border-width" portion out of the string.

For example, I want to style the border of this img item:

img id="dnn_ctr394_Gallery_SlideShow_imgPhoto" class="photo_198" src="/Portals/1/Gallery/Album/2/1000%20-%20Erin.jpg" alt="Pastel 26 x 36" style="height:480px;width:317px;border-width:0px;"

Any work-arounds or a solution?
Larry DanieleUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:2

2/22/2008 2:39 PM  

I found a CSS-based solution to the 'border-width:0px;' problem. In your CSS style sheet, add the "!important" declaration to the CSS rule. This overrides a more specific "unimportant" rule.

For example:

img.photo_198
{
    border-style: solid;
    border-width: 3px !important;
    border-color: rgb(95,95,95); /* photo border color */ /* dark gray */
}

You are not authorized to post a reply.
Forums > Modules > Simple Gallery > Hard-coded border-width over-rides css class



ActiveForums 3.7