CSS Font Formatting

I am trying to format text via CSS but it doesnt seem to be applying.  I am looking for bold white text and I am getting plain black test.  Here is the HTML

<div class="bars">
    <img id="but1" class="blue">Account Remover</img>
    </div>

Open in new window


The CSS
.blue{
	font-family:Arial, Helvetica, sans-serif;
	font-size:18px; 
	font-weight:bold;
	color:#FFFFFF;
}

Open in new window


It should be centered on the blue bars.
the site:  www.mediascrubber.com
DS928Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Scott Fell, EE MVEConnect With a Mentor DeveloperCommented:
YOur html was a bit off

<div class="bars blue">
    <img id="but1">Account Remover
    </div>

Open in new window

0
 
Scott Fell, EE MVEDeveloperCommented:
0
 
DS928Author Commented:
Works great!  except the alignment is still off.

.blue{
	font-family:Arial, Helvetica, sans-serif;
	font-size:18px; 
	font-weight:bold;
	color:#FFFFFF;
	text-align:left;
}

Open in new window


This did it!  Thank you!

vertical-align: middle
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
DS928Author Commented:
Thank you.
0
 
Scott Fell, EE MVEDeveloperCommented:
If you are having alignment issues, you should open another question.  Alignment was not part of your original question.  

I do see you have added, "text-align:left;" to your css and that will make the text go to the left like this http://jsbin.com/EwasIZU/1/edit?html,css,output although the left align is the default.  You probably have other css that is taking over.   When you ask your next question, post a link to your page so experts can view what is going on.
0
 
Scott Fell, EE MVEDeveloperCommented:
Great! Thank you!
0
All Courses

From novice to tech pro — start learning today.