quackquack Posted December 5, 2006 Share Posted December 5, 2006 I am at a difficulty in css. Check the code and post replies . . . <style type="text/css">body{background-color: black;font-family: verdana;font-color: white;scrollbar-face-color: antiquewhite;scrollbar-highlight-color: red;scrollbar-3dlight-color: orange;scrollbar-darkshadow-color: brown;scrollbar-shadow-color: pink;scrollbar-arrow-color: red;scrollbar-track-color: ivory;}a:link {color: blue;}a:visited {color: chartreuse;} a:hover {background: violet;} a:active {color: aquamarine;}}font {color: white;}}h1 {font-size: 29px; color: red}h2 {font-size: 25px; color: green}h3 {font-color: white}h4 {font-color: white}h5 {font-color: white}h6 {font-color: white}}</style> ---------------------------------Any corrections? Link to comment Share on other sites More sharing options...
vchris Posted December 5, 2006 Share Posted December 5, 2006 What trouble are you having? Oh yeah and h3, h4, h5, h6 can all be done on one line, like so: h3, h4, h5, h6 { font-color: #000000; } Link to comment Share on other sites More sharing options...
pulpfiction Posted December 5, 2006 Share Posted December 5, 2006 Are you having problem with font color, cos use color:white; instead of font-color:white.body{background-color: black;font-family: verdana;color: white; /* font-color: white; */............ Link to comment Share on other sites More sharing options...
ZeRgII Posted December 5, 2006 Share Posted December 5, 2006 h1 {font-size: 29px; color: red} h2 {font-size: 25px; color: green} That would be h1 {font-size: 29px; font-color: red}h2 {font-size: 25px; font-color: green} (you had "color" it's "font-color")Also, I believe those extra "}" are not needed.From the looks of it you copy pasted your code from a different page and tried editing certain things with out the knowledge. Read some tutorials from w3schools.com, did me a world of good ;] Link to comment Share on other sites More sharing options...
jesh Posted December 5, 2006 Share Posted December 5, 2006 h1 {font-size: 29px; color: red} h2 {font-size: 25px; color: green} That would be h1 {font-size: 29px; font-color: red}h2 {font-size: 25px; font-color: green} Really, it's color, not font-color. Check out this page: http://www.w3schools.com/css/css_text.aspThis is the correct way to do it:h1 { font-size: 29px; color: red; } Link to comment Share on other sites More sharing options...
pulpfiction Posted December 5, 2006 Share Posted December 5, 2006 There are few places with extra brackets, rempve those,[marked in code below] <style type="text/css">body{background-color: black;font-family: verdana;font-color: white;scrollbar-face-color: antiquewhite;scrollbar-highlight-color: red;scrollbar-3dlight-color: orange;scrollbar-darkshadow-color: brown;scrollbar-shadow-color: pink;scrollbar-arrow-color: red;scrollbar-track-color: ivory;}a:link {color: blue;}a:visited {color: chartreuse;} a:hover {background: violet;} a:active {color: aquamarine;}}/*extra bracket - remove*/font {color: white;}} /*extra bracket - remove*/h1 {font-size: 29px; color: red}h2 {font-size: 25px; color: green}h3 {font-color: white}h4 {font-color: white}h5 {font-color: white}h6 {font-color: white}} /*extra bracket - remove*/</style> ........................(you had "color" it's "font-color")I think it should remain color: colorname or hex_value; im not sure about "font-color" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now