On Fri, Feb 13, 2009 at 06:51:40PM -0800, David Hucklesby wrote:
> On Fri, 13 Feb 2009 18:57:49 -0500, Rick Pasotto wrote:
> > What styling can be done to <legend></legend>?
> >
> > In certain cases I want to use a background image that should appear to the
> > right of the legend text. However when I specify 'top right no-repeat' the
> > text overlays the image. I can add some to sort of get what I need
> > but
> > that seems quite kludgy.
>
> You can add padding-right.
That sort of works. The problem is that the text length varies so using
padding-right always adds to the text length which means that the images
don't line up.
> FWIW: If you are adding a red star for a required field, I'd use an
> actual image with "required" as ALT text.
Do you mean put the image in the html instead of in the css?
--
"Compromise is always wrong when it means sacrificing a principle."
-- John Perkins 1993 _Malice in Wonderland_ pg 146
Rick Pasotto [email protected] http://www.niof.net
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/