Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 14398 invoked from network); 22 May 2006 02:33:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 May 2006 02:33:56 -0000 Received: (qmail 74676 invoked by uid 500); 22 May 2006 02:33:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 74661 invoked by uid 500); 22 May 2006 02:33:45 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 74644 invoked by uid 99); 22 May 2006 02:33:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 19:33:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gludington@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 19:33:43 -0700 Received: by wr-out-0506.google.com with SMTP id 70so1479818wra for ; Sun, 21 May 2006 19:33:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TklArpQmzUUXm8R/KR59m4z5PGXUISNRzHAJVFwpji3lLeaUAhOBgZvfiQZAO9DxokcIXCS15Lew7G3HgKt5phzy6OcbF4i1JCKldB3P9R2D5VfR0WL0czfhazz/J18q5Gw0OGopwt0MaIG3tTKjXxmb36Ecbq06vsTQ9ozIwiY= Received: by 10.65.112.4 with SMTP id p4mr380533qbm; Sun, 21 May 2006 19:33:20 -0700 (PDT) Received: by 10.65.110.18 with HTTP; Sun, 21 May 2006 19:33:20 -0700 (PDT) Message-ID: <6d3e79160605211933m7820c9ffy6d616af58a36bae3@mail.gmail.com> Date: Sun, 21 May 2006 19:33:20 -0700 From: "Greg Ludington" To: "Struts Users Mailing List" Subject: Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag. In-Reply-To: <852ed41d0605211641x1bf289ecu37077b346ee8b9bb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <852ed41d0605192025r393cece7i4c63bba21c7faa3d@mail.gmail.com> <852ed41d0605200315sa10844eo58b6d1b576b2b074@mail.gmail.com> <6d3e79160605200828s1ed71182p91bfe3fd6f1a165d@mail.gmail.com> <852ed41d0605211641x1bf289ecu37077b346ee8b9bb@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You are not going to adjust the scope of a css file, but you will have to change your HTML to give the browser some means of telling your two tables apart, and then adjust your css accordingly. Most often, this is done by putting a class on the html, e.g. . Then, your css could be: td.menuClass {this style would only be applied to the menu td} td.displayTagClass {this style would only be applied to the display tag= td} I have not used either Struts-Menu or DisplayTag, so I do not know if you can specify css classes to use in the HTML they generate. I am guessing that you can, but, even if you cannot, you can still apply css to precise areas by containing them in other elements, and writing your css accordingly. Here is a quick example:
I am red arial
I am green arial
In this page, all tables are arial,hevetica, but only tables inside the "foo" element are red, and only tables inside the "bar" element are green. You have to alter your HTML to give css knoweldge of where to apply rules, and then change your css in ways like these so that they only apply to the areas of the page that you need. There are other methods, as well, but a full discussion of css inheritance is beyond the scope of this list, and probably my abilities as well :) Here is a good link as a starting point: http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html hth, Greg On 5/21/06, M.Liang Liu wrote: > Greg Ludington,you've got the point. > I tested many times to find it is the CSS file that made the strange rim.= The > CSS files apply to all the pages using display-tag.I do NOT know > how to limit the scope of the CSS files' application areas. > > I am trying eXtremeComponents following *David G. Friedman's *advice*. > > *And,David G. Friedman,I've got another question for you: > > How can you limit the scope of the CSS files ?Any table(including the tab= le > which is not the display-tag table) will be applied to the same CSS if I > use display-tag's CSS file as following: > > ...... > > > > > > > > > > > > > > > **....... > > > Thanks a lot. > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org