Problem with css. <br> being added to text.

I'm creating a restaurant menu.  I would like the entree name in one font/color and the price on the same line with a different font/color.
I'm using a table but the problem is after the entree name, the price drops to the 2nd line.

This is the code in question:
<table id="Appps" border="0" cellspacing="0" cellpadding="2" width="100%" style="height: 25px;">
	<tr>
	<td>
	<div id="Green_Text" align ="center">
    Appetizers and Soups
	</div>
	</td>
	</tr>
<tr>
	<td width = 50%><div id = "Entree">Millie's Chili</div><div "Price"> crock 6 </div>
    Topped with chopped onions & melted pepper jack cheese, served with Nacho chips
  </td> 

Open in new window


The css is
#Entree
{
 	font-size: 18px;
	color: #BF5940;
}

#Price
{
 	font-size: 18px;
	color: #FFFFFF;
}

Open in new window


Only other question is how do I bold the price?

Thanks
breeze351Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technical NinjaCommented:
Something like this?
http://jsfiddle.net/v5cns6eu/

HTML
<table id="Appps" border="0" cellspacing="0" cellpadding="2" width="100%" style="height: 25px;">
  <tr>
    <td>
      <div id="Green_Text" align="center">
        Appetizers and Soups
      </div>
    </td>
  </tr>
  <tr>
    <td width=50%>
      <div id="Entree">Millie's Chili</div>
    </td>
    <td>
      <div id="Price"> crock 6 </div>
    </td>
    <tr>
      <td>
        Topped with chopped onions & melted pepper jack cheese, served with Nacho chips
      </td>
    </tr>

Open in new window


CSS
#Entree {
  font-size: 18px;
  color: #BF5940;
}

#Price {
  font-size: 18px;
  color: #FF0000;
  font-weight:bold;
}

Open in new window

0
Julian HansenCommented:
Either change your <div>'s to <span>'s
OR
Declare your <div> classes display: inline;

<span> would be my preference
Your code has several problems though
1. You are using an id for your Entree - if this page is going to have more than one row with an Entree in it then this is INVALID. ID's MUST be unique - only one per page. Rather use a class
2. Your second <div> just has "Price" with no attribute name - assuming that should be a class
Corrected code using <span>
<td width = 50%>
   <span class= "Entree">Millie's Chili</span> <span class="Price"> crock 6 </span>
    Topped with chopped onions & melted pepper jack cheese, served with Nacho chips
</td>

Open in new window

Change ID's to classes

.Entree
{
 	font-size: 18px;
	color: #BF5940;
}
.Price
{
 	font-size: 18px;
	color: #FFFFFF;
}

Open in new window

If you need the Entree / Price to be on its own line then simply wrap them in a <div> like this
<td width = 50%>
    <div><span class= "Entree">Millie's Chili</span> <span class="Price"> crock 6 </span></div>
    Topped with chopped onions & melted pepper jack cheese, served with Nacho chips
</td>

Open in new window

0
breeze351Author Commented:
Julian
I followed your suggestions, but the "crock 6" disappears.

I changed the source to read:
<td width = 50%><span class= "Entree">Millie's Chili</span><span class="Price"> crock 6 </span><br>
    Topped with chopped onions & melted pepper jack cheese, served with Nacho chips

Open in new window


I changed the css to read
.Entree
{
 	font-size: 18px;
	color: #BF5940;
}

.Price
{
 	font-size: 18px;
	color: #FFFFFF;
}

Open in new window


If you want to look the url is:
http://seabreezesoftware.com/Joes/Menu.php
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

JoeWeb Application DeveloperCommented:
It's still on the page but hard to see because you've defined a white font on a light background. change the color: #000000 in .price to something that sticks out more.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
breeze351Author Commented:
Joe thanks, I always get white and black backwards.
0
JoeWeb Application DeveloperCommented:
Glad you solved the problem! I don't know if you can but please accept Julian's answer. I just saw this and chimed in. Perhaps you can just mark my comment as useful. I don't want to hijack somebody's original useful answer. Thanks.
0
Julian HansenCommented:
Just checking in here.

Based on the link you posted you appear to have used the <span> solution and yet did not mark that post as a solution?

I am confused.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.