HighDots Forums  

bolding text w/in list/menu?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss bolding text w/in list/menu? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rachael Caldwell
 
Posts: n/a

Default bolding text w/in list/menu? - 11-10-2004 , 09:40 AM






Is it possible, and if so, how, to bold some text in a list/menu in a form?



Reply With Quote
  #2  
Old   
David Stiller
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 11:25 AM






Do you mean a combo box (in other words, the control rendered by a
form's <select> and <option> tags)? If so, CSS may be your best bet. You
can create styles via Dreamweaver's interface or on your own (they're just
text files, like HTML). You can create an element selector that bolds all
<option> tags or a class selector that styles specifiy <option> tags -- in
which case you'd have to apply the style individually to the <option> tags
you desire. Doing that will put a class attribute into those tags (<option
class="myBoldStyle">).


David
stiller ( at ) quip ( dot ) net



Reply With Quote
  #3  
Old   
Rachael Caldwell
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 01:24 PM



Actually, I meant:

I have a form.

In that form, I have a drop down list of options.

Those options have explanatory text; i.e: Option One: Red

I would like the text "Option One" to be bold.

Any ideas anyone?

"David Stiller" <stiller-NO-SPAM- (AT) quip (DOT) net> wrote

Quote:
Do you mean a combo box (in other words, the control rendered by a
form's <select> and <option> tags)? If so, CSS may be your best bet. You
can create styles via Dreamweaver's interface or on your own (they're just
text files, like HTML). You can create an element selector that bolds all
option> tags or a class selector that styles specifiy <option> tags -- in
which case you'd have to apply the style individually to the <option> tags
you desire. Doing that will put a class attribute into those tags
(<option
class="myBoldStyle">).


David
stiller ( at ) quip ( dot ) net





Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 01:29 PM



You can make Option One: Red be bold, but you cannot make only Option One
be.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

"Rachael Caldwell" <nospam (AT) aol (DOT) com> wrote

Quote:
Actually, I meant:

I have a form.

In that form, I have a drop down list of options.

Those options have explanatory text; i.e: Option One: Red

I would like the text "Option One" to be bold.

Any ideas anyone?

"David Stiller" <stiller-NO-SPAM- (AT) quip (DOT) net> wrote in message
news:cmtfeb$jeh$1 (AT) forums (DOT) macromedia.com...
Do you mean a combo box (in other words, the control rendered by a
form's <select> and <option> tags)? If so, CSS may be your best bet.
You
can create styles via Dreamweaver's interface or on your own (they're
just
text files, like HTML). You can create an element selector that bolds
all
option> tags or a class selector that styles specifiy <option> tags --
in
which case you'd have to apply the style individually to the <option
tags
you desire. Doing that will put a class attribute into those tags
(<option
class="myBoldStyle">).


David
stiller ( at ) quip ( dot ) net







Reply With Quote
  #5  
Old   
David Stiller
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 01:45 PM



Murray,

Sure she can ... using classes. Unless I still don't understand what
"drop down list of options" means. (Not a <select>/<option> block?)


David
stiller ( at ) quip ( dot ) net



Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 02:12 PM



David:

There is no way to style the text within an option other than by stying the
entire option. Geddit?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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 Stiller" <stiller-NO-SPAM- (AT) quip (DOT) net> wrote

Quote:
Murray,

Sure she can ... using classes. Unless I still don't understand what
"drop down list of options" means. (Not a <select>/<option> block?)


David
stiller ( at ) quip ( dot ) net




Reply With Quote
  #7  
Old   
David Stiller
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 02:17 PM



Aha. Thought she meant Option One bold, Option Two italic, Option three
green, etc.

Stand under ya completely now.


David
stiller ( at ) quip ( dot ) net



Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 02:22 PM



<LOOKOUT BELOOOOOOOWWWWWW!!>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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 Stiller" <stiller-NO-SPAM- (AT) quip (DOT) net> wrote

Quote:
Aha. Thought she meant Option One bold, Option Two italic, Option
three green, etc.

Stand under ya completely now.


David
stiller ( at ) quip ( dot ) net




Reply With Quote
  #9  
Old   
Rachael Caldwell
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 04:18 PM



yep, that's it! How can I do it?

"David Stiller" <stiller-NO-SPAM- (AT) quip (DOT) net> wrote

Quote:
Murray,

Sure she can ... using classes. Unless I still don't understand what
"drop down list of options" means. (Not a <select>/<option> block?)


David
stiller ( at ) quip ( dot ) net





Reply With Quote
  #10  
Old   
David Stiller
 
Posts: n/a

Default Re: bolding text w/in list/menu? - 11-10-2004 , 04:24 PM



Sorry, Rachael,

I believe now that I misunderstood what you were looking for. Murray
clarified for me -- unless he read it wrong, too -- that you're hoping to
have some words in a given choice display one style, but other words in the
same choice display another.

Example:
Listbox ...
Choice A: apples
Choice B: pears
Choice C: oranges
.... where "Choice A" appears as bold, say, but "apples" does not.

That scenario is not possible with HTML. If, on the other hand, you
mean ...

Listbox ...
Choice A: apples
Choice B: pears
Choice C: oranges

.... where "Choice A: apples" is bold, "Choice B: pears" is red, and "Choice
C: oranges" is, say, italic, then that is something possible with CSS.


David
stiller ( at ) quip ( dot ) net



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.