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/training/train_V_3_B.html if anyone wants to see the page in question.

Thanks in advance!

Recommended Answers

All 2 Replies

Member Avatar for GreenDay2001

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.

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.