Jump to content

Body:


quackquack

Recommended Posts

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...