I have an HTML page with references to css file.
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="https://fonts.googleapis.com/css?family=Limelight|Flamenco|Federo|Yesteryear|Josefin Sans|Spinnaker|Sansita One|Handlee|Droid Sans|Oswald:400,300,700" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/bootstrap-responsive.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/common.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/fontawesome.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/project.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/funny-positions.css" media="screen" rel="stylesheet" type="text/css" />
In the stylesheets/funny-positions.css file I have the follwoing definition:
.container .row-fluid .span12 .div-1 .page-header h1 {
font-family:"handlee";
font-weight: normal;
font-size: 42px;
color: #555555;
}
How can I control the font-size via the html URL? In other words, How can I pass parameters to the HTML via URL and read these parameters in the css file?
something like: http://www.mywebpage.com/index.html/?font-size=50
Edit1
I'm not a web developer so I will need "answer for dummies". I not sure which language I'm using since I created the page using "html online editor" (Easel). You can find me page here: http://www.insites-m.com/articals/funny_sex_positions/
I tried the following and it didn't worked:
.container .row-fluid .span12 .div-1 .page-header h1 {
id:"myH1";
font-family:"handlee";
font-weight: normal;
font-size: 42px;
color: #555555;
}
Then in the html:
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="https://fonts.googleapis.com/css?family=Limelight|Flamenco|Federo|Yesteryear|Josefin Sans|Spinnaker|Sansita One|Handlee|Droid Sans|Oswald:400,300,700" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/bootstrap-responsive.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/common.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/fontawesome.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/project.css" media="screen" rel="stylesheet" type="text/css" />
<link href="stylesheets/funny-sex-positions.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript">document.getElementById("myH1").style.fontSize=window.location.href.split("?")[1].replace("font-size=","")+"px";</script>
<title>funny_sex_positions</title>
</head>
<body>
<div class="container">
<div class="row-fluid">
.....
Thanks.