What's the advantage of using @import over link?  Is it just for
readability, or is there another reason for it?... As from what I can
remember @import doesn't work with Netscape 4.x.

Tim Christopher

On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:
> I prefer this method better:
> 
> <style type="text/css" media="screen">
>  @import url(<html:rewrite page="/stylesheets/foo.css" />);
> </style>
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> ----- Original Message -----
> From: "Tim Christopher" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Friday, March 04, 2005 11:43 PM
> Subject: Re: Using a CSS file
> 
> >>> <html:link style="cssStyle" href="/include/filename.css" />
> >
> > Off the top of my head I don't remember style being an attribute for
> > the html:link tag...  I'd recommend you included a 'cssStyle' global
> > forward in your Struts config file then use something like:
> >
> > JSP:
> > <link rel="stylesheet" type="text/css" href="<html:rewrite
> > forward='cssStyle'/>"/>
> >
> > Struts-config.xml:
> >  <global-forwards>
> >    <forward name="cssStyle" path="/assets/styles/filename.css"/>
> >  </global-forwards>
> >
> > Tim Christopher
> >
> > On Fri, 4 Mar 2005 16:16:33 -0700, Hyrum <[EMAIL PROTECTED]> wrote:
> >> I can't get my struts application to recognize my Style Sheet.  Here is
> >> the
> >> link I am using:
> >>
> >> <html:link style="cssStyle" href="/include/filename.css" />
> >>
> >> My filename.css is simple:
> >>
> >> a.menu
> >> {
> >>        font-size: 115%;
> >>        text-decoration: none;
> >>        color: Brown
> >> }
> >>
> >> I'm trying to use the css to create a style for some menu links.  It
> >> works
> >> if I use the <style> tags within the jsp, but if I use the <html:link>
> >> tag,
> >> it doesn't see it.  What am I doing wrong??
> >>
> >> Hyrum Ward
> >> Software Developer
> >> T&R Tax Services
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to