I need to put CSS (block in title) with Javascript or JQuery in the title of the current page. Css is in text format like this (it comes from the server):
label { font-family: Verdana, sans-serif; font-size: 12px; display: block; } input { padding: 3px 5px; width: 250px; margin: 0 0 10px; } input[type="file"] { padding-left: 0; } input[type="submit"] { width: auto; }
I want to put this CSS in a header block using JavaScript as follows:
<meta name="author" content="" /> <link rel="stylesheet" type="text/css" href="css/global.css" /> <style type="text/css"> label { font-family: Verdana, sans-serif; font-size: 12px; display: block; } input { padding: 3px 5px; width: 250px; margin: 0 0 10px; } input[type="file"] { padding-left: 0; } input[type="submit"] { width: auto; } </style> </head>
Is it possible?
Thanks!
source share