+1 for adding something to the default skin to disable the
browser "feature" of borders around images in links.
-- Adam
On 7/5/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:
Hi Jeanne,
AFAIK yes, it's up to the user agent to provide a default value for
the border attribute (see also [1]). I read somewhere that Gecko and
IE browsers render a border by default on images within links, which
is my case.
By now, I resolved adding this rule in the skin CSS file:
a img {
border-style: none;
}
I had already tried this but for some reason it didn't work, so I
thought that "simple" css rules like that were not allowed in skin css
files. Probably it was just my browser cache :)
Anyway I'd prefer using a skin-aware css rule, if there will be one
like you're suggesting.
Thanks
Cosma
[1]http://www.w3.org/TR/REC-html40/struct/objects.html#adef-border-IMG
2006/7/5, Jeanne Waldman <[EMAIL PROTECTED]>:
> What is causing the borders anyway? Is it the browser default?
> If so, we can create a skinning hook for these, and even default it in
> the simple skin to border-width:0px.
>
> Cosma Colanicchia wrote:
>
> > Ok, this is a solution.. but I think that 99.9% of people using
> > af:objectImage out there don't want those ugly borders, maybe we could
> > create a skinning hook for this component.
> >
> > If you agree I can create a JIRA for this.
> >
> > Cosma
> >
> >
> >
> > 2006/7/4, Jeanne Waldman <[EMAIL PROTECTED]>:
> >
> >> Hello,
> >>
> >> There are no specific skinning hooks for the objectImage component,
> >> which is why you don't see it documented.
> >>
> >> Are you trying to remove the image borders of the objectImage
component?
> >>
> >> If so, you can use the styleClass or inlineStyle attributes.
> >> If you use inlineStyle, it would look like this:
> >>
> >> <af:objectImage inlineStyle="border-width:0px"/>
> >>
> >> - Jeanne
> >>
> >> Cosma Colanicchia wrote:
> >>
> >> > Hi,
> >> >
> >> > I'm trying to remove the image borders using a Trinidad skin, but I
> >> can't
> >> > find a component named objectImage in the adf-faces-skins-doc.xml.
I
> >> > would
> >> > like to do this in the skin, instead of loading a separate css with
a
> >> > generic .image { border-width: 0px } style.
> >> >
> >> > This should be an easy one, but still can't find where I'm wrong.
> >> > Anyone can
> >> > help?
> >> >
> >> > Thank you
> >> > Cosma
> >> >
> >>
> >>
> >
>
>