User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,373 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,099 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1285 | Replies: 2 | Solved
Reply
Join Date: Oct 2006
Posts: 2
Reputation: felonee63 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
felonee63 felonee63 is offline Offline
Newbie Poster

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

  #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:

command {
    color: c30000;
    font-style: italic;
}

order {
    color: c30000;
    font-style: bold;
}

Here's my html:

<li>Facings to the right or left will be executed in one <i>time</i>, or pause. 

The instructor will
    command:<br><br>
 1. <command>Squad</command>. 2. <command>Right (or left)</command><order> - 

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:


command {
    color: #c30000;
    font-style: italic;
}

order {
    color: #c30000;
    font-style: bold;
}


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 1:31 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

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

  #2  
Oct 26th, 2006
the first problem with that is that u r not using correct css property
so use
command {
    color: #c30000;
    font-style: italic;
}

order {
    color: #c30000;
    font-weight: bold;  // for making text bold
}

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 2:54 pm.
Reply With Quote  
Join Date: Oct 2006
Posts: 2
Reputation: felonee63 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
felonee63 felonee63 is offline Offline
Newbie Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 12:33 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC