January 18, 201115 yr <STYLE TYPE="text/css"> <!-- BODY { font-family:ariel; } A:link{color:white} A:visited{color:yellow} --> </STYLE> how do i set that out in the style sheet rather then the html file?
January 18, 201115 yr <STYLE TYPE="text/css"> <!-- BODY { font-family:ariel; } A:link{color:white} A:visited{color:yellow} --> </STYLE> how do i set that out in the style sheet rather then the html file? You create a stylesheet in your text-editor doing so, you open a new file save it and give it a name (style is a common one) save it as style.css, open the file and put in the content in the style content: body { font-family:arial; } A:link{color:white} A:visited{color:yellow} save it and your done, now all you need to do is tell the HTML document that it has to get the stylesheet and use it for your html page. Go back to your HTML page and put this inside the <head> </head> tags <link href="style.css" rel="stylesheet" type="text/css" /> If the style is located in a subfolder you can get it like this: <link href="/stylesheets/style.css" rel="stylesheet" type="text/css" /> If the style is located in a directory a level below your html page you can do this: <link href=".../html/style.css" rel="stylesheet" type="text/css" /> Hope this helps!
January 18, 201115 yr Author I only wanted to know how to move that css into my style sheet lol, thanks anwyays
January 18, 201115 yr I only wanted to know how to move that css into my style sheet lol, thanks anwyays Ctrl + X then Ctrl + V ?
January 18, 201115 yr Author Ctrl + X then Ctrl + V ? i no now lol xzactly what i did, but i wasen sure if u have to put a # behind the body.. or something eles, ive alone ever done it the other way cus dreamweaver does it for u like that
Create an account or sign in to comment