Solved

CSS Font Formatting

Posted on 2013-12-29
6
297 Views
Last Modified: 2013-12-29
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
0
Comment
Question by:DS928
  • 4
  • 2
6 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39745388
YOur html was a bit off

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

Open in new window

0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39745391
0
 

Author Comment

by:DS928
ID: 39745396
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Closing Comment

by:DS928
ID: 39745406
Thank you.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39745408
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
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39745410
Great! Thank you!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now