HighDots Forums  

Colored Buttons?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Colored Buttons? in the Macromedia Dreamweaver forum.



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

Default Colored Buttons? - 05-20-2004 , 02:17 PM






Is it possible to specify a color for Dreamweaver buttons other than the standard gray? I don't want to have to create all the buttons in Fireworks -- a simple color would suffice.

Shelly

Reply With Quote
  #2  
Old   
mzanime.com
 
Posts: n/a

Default Re: Colored Buttons? - 05-20-2004 , 02:48 PM






You can color the input buttons with CSS, here is a nice dark blue color. You
can modify it as you please.

In your header:

<style type="text/css">
.buu {
background-color:#0099CC; font-family:Arial;
font-size:3mm; font-weight:bold;
color:#FFFFFF;
}
</style>

In your code:

<input type="text" class="buu">


Reply With Quote
  #3  
Old   
Scooter32
 
Posts: n/a

Default Re: Colored Buttons? - 05-20-2004 , 04:58 PM



Thanks Mike! I'll give that a try.

Reply With Quote
  #4  
Old   
Scooter32
 
Posts: n/a

Default Re: Colored Buttons? - 08-18-2004 , 01:02 PM



I just found an even simpler method by using the style attribute within the
button link itself (no CSS required in the Head). Here is an example for a
green (009966) button with white text:

<input type="submit" style="color:white; background:#009966" name="Name"
value="Value">


Reply With Quote
  #5  
Old   
mzanime.com
 
Posts: n/a

Default Re: Colored Buttons? - 08-24-2004 , 06:54 PM



You can do it that way too, but the absolute best way is to have your code in
an external CSS file.

That way if you ever decide to globally change the color of all your buttons
you can edit one line of code in one file, and dynamically update all pages
that way.


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.