You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by taj uddin <ta...@yahoo.com> on 2008/12/10 07:28:06 UTC

How to make a textfiled label apper bold in GUI?

Hi,

In my application the textfield label name should appear bold. If i wrap the textfield tag with the td tag, its not working. 
For Example, here is my code:
<tr> <td class="strongtext">
                                                                <s:password label="Password" name="password" size="15" maxlength="15" onkeypress="if(window.event.keyCode == '13') getElement('login').click();"/>
                                                           </td>
                                                        </tr>

I tried even with this modification as shown below:

<tr> <td><b>

                                                              
 <s:password label="Password" name="password" size="15"
maxlength="15" onkeypress="if(window.event.keyCode == '13')
getElement('login').click();"/>

                                                          <b>
                                                        </td>

                                                        </tr>
I tried even with the small modification of above code, shown below:

<tr> <td ><strong>

                                                              
 <s:password label="Password" name="password" size="15"
maxlength="15" onkeypress="if(window.event.keyCode == '13')
getElement('login').click();"/>

</strong>                                                           
</td>

                                                        </tr>

But no use...
Note: Label name in the GUI should appear bold or strong.
Pls help me out in this issue




      

Re: How to make a textfiled label apper bold in GUI?

Posted by taj uddin <ta...@yahoo.com>.
Hi,
 Thanks Mr.Nils-Helge Garli Hegvik. :-)

--- On Wed, 12/10/08, Nils-Helge Garli Hegvik <ni...@gmail.com> wrote:
From: Nils-Helge Garli Hegvik <ni...@gmail.com>
Subject: Re: How to make a textfiled label apper bold in GUI?
To: "Struts Users Mailing List" <us...@struts.apache.org>, tajuddin19@yahoo.com
Date: Wednesday, December 10, 2008, 1:57 AM

Should be pretty simple with some CSS:

label {
	font-weight: bold;
}

Nils-H

On Wed, Dec 10, 2008 at 7:28 AM, taj uddin <ta...@yahoo.com> wrote:
> Hi,
>
> In my application the textfield label name should appear bold. If i wrap
the textfield tag with the td tag, its not working.
> For Example, here is my code:
> <tr> <td class="strongtext">
>                                                                
<s:password label="Password" name="password"
size="15" maxlength="15"
onkeypress="if(window.event.keyCode == '13')
getElement('login').click();"/>
>                                                            </td>
>                                                         </tr>
>
> I tried even with this modification as shown below:
>
> <tr> <td><b>
>
>
>  <s:password label="Password" name="password"
size="15"
> maxlength="15" onkeypress="if(window.event.keyCode ==
'13')
> getElement('login').click();"/>
>
>                                                           <b>
>                                                         </td>
>
>                                                         </tr>
> I tried even with the small modification of above code, shown below:
>
> <tr> <td ><strong>
>
>
>  <s:password label="Password" name="password"
size="15"
> maxlength="15" onkeypress="if(window.event.keyCode ==
'13')
> getElement('login').click();"/>
>
> </strong>
> </td>
>
>                                                         </tr>
>
> But no use...
> Note: Label name in the GUI should appear bold or strong.
> Pls help me out in this issue
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




      

Re: How to make a textfiled label apper bold in GUI?

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Should be pretty simple with some CSS:

label {
	font-weight: bold;
}

Nils-H

On Wed, Dec 10, 2008 at 7:28 AM, taj uddin <ta...@yahoo.com> wrote:
> Hi,
>
> In my application the textfield label name should appear bold. If i wrap the textfield tag with the td tag, its not working.
> For Example, here is my code:
> <tr> <td class="strongtext">
>                                                                 <s:password label="Password" name="password" size="15" maxlength="15" onkeypress="if(window.event.keyCode == '13') getElement('login').click();"/>
>                                                            </td>
>                                                         </tr>
>
> I tried even with this modification as shown below:
>
> <tr> <td><b>
>
>
>  <s:password label="Password" name="password" size="15"
> maxlength="15" onkeypress="if(window.event.keyCode == '13')
> getElement('login').click();"/>
>
>                                                           <b>
>                                                         </td>
>
>                                                         </tr>
> I tried even with the small modification of above code, shown below:
>
> <tr> <td ><strong>
>
>
>  <s:password label="Password" name="password" size="15"
> maxlength="15" onkeypress="if(window.event.keyCode == '13')
> getElement('login').click();"/>
>
> </strong>
> </td>
>
>                                                         </tr>
>
> But no use...
> Note: Label name in the GUI should appear bold or strong.
> Pls help me out in this issue
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org