|
|
esthera 07-19-2011, 01:47 PM i have a css that defines all paragraphs but if i do
<p><span style=color:#0000ff;>this is a test</span></p>
I would expect it to change the text color but it doesn't
is there a reason why?
Rowsdower! 07-19-2011, 01:51 PM You need to wrap the style settings in parentheses:
<p><span style="color:#0000ff;">this is a test</span></p>
jmlwebdesign 07-19-2011, 01:56 PM You need to wrap the style settings in parentheses:
esthera 07-19-2011, 02:10 PM that made no difference - it's taking the default from what the p is set to
_Aerospace_Eng_ 07-19-2011, 02:24 PM And they meant quotes by the way not parentheses :rolleyes:. Post the rest of your a code.
Rowsdower! 07-19-2011, 02:35 PM And they meant quotes by the way not parentheses :rolleyes:. Post the rest of your a code.
Whoops, yes. It's early here!
alykins 07-19-2011, 02:55 PM it could be that the browser doesn't pick up the color or something... see demo and attached pic (works fine)
<html>
<head>
<title>Starbuzz Coffee</title>
<style type="text/css">
#wrapper{width:400px;}
#one{width:200px; height:200px; float:left; background:blue;}
#two{width:200px; height:200px; float:left; background:black;}
#three{width:200px; height:200px; float:left; background:black;}
#four{width:200px; height:200px; float:left; background:purple;}
p{color:yellow;}
</style>
</head>
<body>
<div id="wrapper">
<div id="one">one</div>
<div id="two"><p>two</p></div>
<div id="three"><p><span style="color:white;">three</span></p></div>
<div id="four">four</div>
</div>
</body>
</html>
|
|
|
|
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.