Is there anyone there know how to transfer css code finto external file without having the problem of changing background color and text style?
To make that valid: <link rel="stylesheet" type="text/css" href="style.css"> Code (markup): Alternatively, you can use <style> and @import: <style type="text/css">@import 'style.css';</style> Code (markup):
This sounds very odd to me; if such strange things happen, I would check the validity of your markup and CSS using the W3C validators. http://validator.w3.org/ http://jigsaw.w3.org/css-validator/ Link tag is preferable to @import: it's more meaningful and allows you to specify media, which you should be doing: <link rel="stylesheet" media="screen, projection" type="text/css" href="screen.css" /> <link rel="stylesheet" media="print" type="text/css" href="print.css" /> HTML: Remove / for HTML.
You got to do that on all pages where you want to use the style sheet. Hope I understood you right...
That's an acronym that means Cascading Style Sheets. CSS allows web designers to attache styles (fonts, colors, size, margins, etc.) to HTML documents. It works like a template allowing web developers to define a style for an HTML element and then apply it to as many web pages as they want/need. We can also use styles to display different elements for different media (screen, printers). It simplifies web site maintenance and also helps the way a page displays content for Search Engine robots on the Internet (and that's a good thing!). Regards