savvy_grafix
11-13-2006, 08:01 AM
I want to display<font color="pink" size="4">Put some text here that will always appear</font><br><font color="purple" size="2">neoHTML</font> but not as text as what it would look like if i typed it but it doesn't look like that, it looks like what i have typed in my css.<p>I want it to look like <font color="pink" size="4">Put some text here that will always appear</font><br><font color="purple" size="2">neoHTML</font>
<br>(if the above is just html ignore that sentence.) how can i make it so that appear as what the html says but without changing my css.
angelic.deception
11-13-2006, 09:03 AM
Well, I could very well be wrong.. but I believe that inline style takes precedence in the cascade.. so if you did this:
<span style="color: pink; font-size: #;">Put some text here that will always appear</span><br><span style="color: purple; font-size: #">neoHTML</span>
That might work. Or, you could assign them a class and then style the class in your CSS.. though you said you didn't want to edit that, so it might not be the best option.
Hope that helps. =)
J to the izzosh
11-14-2006, 01:43 AM
Well, I could very well be wrong.. but I believe that inline style takes precedence in the cascade..
Nope, you're absolutely correct (http://www.w3.org/TR/CSS21/cascade.html#cascade). It's all about specificity, and inline styles are the most specific since they apply directly to a single element.
savvy_grafix
12-02-2006, 12:53 AM
<span style="color: pink; font-size: #;">Put some text here that will always appear</span><br><span style="color: purple; font-size: #">neoHTML</span> it doesn't work, it prevents my page from loading.