I want to access the css of * with JavaScript. I tried to access it the same way that I use for -
body{...} /css/ Can be accessed as
document.body.style.overlfow = hidden; but
*{...} /css/ is not accessible when using
document.*.style.overlfow = hidden; /JS/ doesn't work for the *. So how can i change its css?
function myFunction() {
document.getElementById("Intro").innerHTML= ('');
// document.*.style.overflow ="visible";
}
*{
overflow: hidden;
}
.IntroText{
position: absolute;
}
.IntroText{
color: blue;
margin: 20% auto 10% 10%;
z-index: 100;
}
.button {
border: 5px solid blue;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
position: absolute;
color: white;
margin: 43% 40% 5% 40%;
z-index: 100;
}
.IntroImg{
position: relative;
width: 110%;
height: 110%;
}
h1,h3,h4,h5{
color: blue;
position: relative;
text-transform: none;
text-align: left;
font-weight:lighter;
font-family: 'Aria';
font-size-adjust: 10%;
}
br{
display: block;
margin: 10000000px 0;
}
.Section{
font-size: 100%;
text-align: center;
margin-left: 20%;
margin-right: 20%;
}
.navbar{
height: 3em;
width: 100%;
z-index: 200;
background: #BBBBBB;
position: fixed;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>Intro</title>
<link href="Style.css" rel="stylesheet">
<link href="Intro.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/jquery.bxslider.css" rel="stylesheet" />
<link href="css/nav.css" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="img/w3-favicon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="footer, contact, form, icons" />
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/footer-distributed-with-contact-form.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<script src="js/jquery-1.11.2.min.js">
</script>
<script src="js/main.js">
</script>
<body>
<!-- Navbar-->
<div class="navbar">
JJJJJ
</div>
<!-- Simple Intro-->
<div class="IntroNeeded">
<div id= "Intro">
<div class="IntroText">
<h2 style="font-size: 700%; font-weight: bolder; padding-bottom: 0; font-family: 'Arial'; margin-bottom: -0.3em;"> asdf. </h2>
<h6> Untertext </h6>
<p id="demo"></p>
</div>
<a class = "button" onclick="myFunction()" href="#bottom">Bottom</a>
<img class="IntroImg" src="Stock.png" alt="Intro">
</div>
</div>
<div class="MainBody">
<br>
<div id="bottom">
<a href="bottom" style="font-size: 300%; text-align: center; text-transform: uppercase;">
Welcome
</a>
</div>
<h3 class="Section" style="margin-left: 5%; margin-right: 5%; color: black;"> Lorem ipsum dolor sit Lorem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor rem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor sitLorem ipsum dolor sit</h3>
</div>
</body>
</html>