CSS Working in FF, not in IE problem :)

Thread Solved

Join Date: Oct 2006
Posts: 2
Reputation: felonee63 is an unknown quantity at this point 
Solved Threads: 0
felonee63 felonee63 is offline Offline
Newbie Poster

CSS Working in FF, not in IE problem :)

 
0
  #1
Oct 26th, 2006
Here's my problem

I'm working on some stuff for our website, that is about 900 pages in Word, and having to code it in HTML. To make it faster for myself, I've created two text styles <command> and <order>
Here's my stylesheet:

HTML and CSS Syntax (Toggle Plain Text)
  1. command {
  2. color: c30000;
  3. font-style: italic;
  4. }
  5.  
  6. order {
  7. color: c30000;
  8. font-style: bold;
  9. }
Here's my html:

HTML and CSS Syntax (Toggle Plain Text)
  1. <li>Facings to the right or left will be executed in one <i>time</i>, or pause.
  2.  
  3. The instructor will
  4. command:<br><br>
  5. 1. <command>Squad</command>. 2. <command>Right (or left)</command><order> -
  6.  
  7. FACE</order>.</li><br><br>
Firefox is interpreting all of this correctly. IE is not showing the italics, OR the colors, OR the bolding.

Can someone please assist?

I've tried changing my CSS to:


HTML and CSS Syntax (Toggle Plain Text)
  1. command {
  2. color: #c30000;
  3. font-style: italic;
  4. }
  5.  
  6. order {
  7. color: #c30000;
  8. font-style: bold;
  9. }

This still does not work. The page in question is at http://www.18thtexasinfantry.org/tra...ain_V_3_B.html if anyone wants to see the page in question.

Thanks in advance!
Last edited by felonee63; Oct 26th, 2006 at 2:31 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: CSS Working in FF, not in IE problem :)

 
0
  #2
Oct 26th, 2006
the first problem with that is that u r not using correct css property
so use
HTML and CSS Syntax (Toggle Plain Text)
  1. command {
  2. color: #c30000;
  3. font-style: italic;
  4. }
  5.  
  6. order {
  7. color: #c30000;
  8. font-weight: bold; // for making text bold
  9. }
however u must use classes ans id's instead. since the tags u using are not valid html tags, they could be ignored by the browser.
Last edited by vishesh; Oct 26th, 2006 at 3:54 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2
Reputation: felonee63 is an unknown quantity at this point 
Solved Threads: 0
felonee63 felonee63 is offline Offline
Newbie Poster

Re: CSS Working in FF, not in IE problem :)

 
0
  #3
Oct 26th, 2006
Thanks for taking the time to respond. Your response didn't give me the answer that I needed, but it did spark a memory of having this issue before.

I forgot about using <span class=""> and my problem is corrected now!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 1816 | Replies: 2
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC