Skip to main content
Inspiring
August 27, 2006
Question

Make SELECTED in Select BOLD

  • August 27, 2006
  • 9 replies
  • 548 views
Is there any way of making the Initially Selected Text in a Select List
appear Bold but leave the rest of the text plain?


This topic has been closed for replies.

9 replies

Inspiring
August 27, 2006
Murray *ACE* wrote:
> Not my point....
>
> The bold appearance is not reliable. And, it's not reliable in the most
> widely used browser....

There's no argument that using an attribute selector isn't supported by
IE6. Nor should there any argument about the reliability of a
server-side conditional statement to insert a normal class in the
initially selected item.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Inspiring
August 27, 2006
Not my point....

The bold appearance is not reliable. And, it's not reliable in the most
widely used browser....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:ecsivr$mir$2@forums.macromedia.com...
> Murray *ACE* wrote:
>> In other words, it's not reliable.
>
> Using a server-side conditional to set a class value is very reliable.
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> http://foundationphp.com/


Inspiring
August 27, 2006
Murray *ACE* wrote:
> In other words, it's not reliable.

Using a server-side conditional to set a class value is very reliable.
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Inspiring
August 27, 2006
Murray *ACE* wrote:
> Does this work in IE7?

I don't know. You're the one with IE7.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Inspiring
August 27, 2006
Does this work in IE7?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:ecsa18$dln$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> No.
>
> Yes. :)
>
> The following style rule makes the initially selected item bold in modern
> browsers (IE6 doesn't count as modern):
>
> option[selected] {font-weight:bold;}
>
> In Firefox at least, the font of the selected item is displayed at its
> normal weight when the menu is closed, but bold when open. The style is
> applied only to initially selected items; it doesn't change if another
> item is selected subsequently.
>
> Since this is the appdev forum, it's also likely that the OP is using a
> server-side language. In that case, it's very easy to use a conditional
> statement to apply a class to a menu item that contains the selected
> attribute.
>
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> http://foundationphp.com/


Inspiring
August 27, 2006
In other words, it's not reliable.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"David Powers" <david@example.com> wrote in message
news:ecsa18$dln$1@forums.macromedia.com...
> Murray *ACE* wrote:
>> No.
>
> Yes. :)
>
> The following style rule makes the initially selected item bold in modern
> browsers (IE6 doesn't count as modern):
>
> option[selected] {font-weight:bold;}
>
> In Firefox at least, the font of the selected item is displayed at its
> normal weight when the menu is closed, but bold when open. The style is
> applied only to initially selected items; it doesn't change if another
> item is selected subsequently.
>
> Since this is the appdev forum, it's also likely that the OP is using a
> server-side language. In that case, it's very easy to use a conditional
> statement to apply a class to a menu item that contains the selected
> attribute.
>
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
> http://foundationphp.com/


Inspiring
August 27, 2006
Murray *ACE* wrote:
> No.

Yes. :)

The following style rule makes the initially selected item bold in
modern browsers (IE6 doesn't count as modern):

option[selected] {font-weight:bold;}

In Firefox at least, the font of the selected item is displayed at its
normal weight when the menu is closed, but bold when open. The style is
applied only to initially selected items; it doesn't change if another
item is selected subsequently.

Since this is the appdev forum, it's also likely that the OP is using a
server-side language. In that case, it's very easy to use a conditional
statement to apply a class to a menu item that contains the selected
attribute.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Inspiring
August 27, 2006
Thanks.

"Murray *ACE*" <forums@HAHAgreat-web-sights.com> wrote in message
news:ecs40g$7h2$1@forums.macromedia.com...
> No.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
>
> "JED" <jed1@nomail.co.uk> wrote in message
> news:ecrmde$ndk$1@forums.macromedia.com...
>> Is there any way of making the Initially Selected Text in a Select List
>> appear Bold but leave the rest of the text plain?
>>
>
>


Inspiring
August 27, 2006
No.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"JED" <jed1@nomail.co.uk> wrote in message
news:ecrmde$ndk$1@forums.macromedia.com...
> Is there any way of making the Initially Selected Text in a Select List
> appear Bold but leave the rest of the text plain?
>