Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
body {
height: 150vh;
margin: 0;
background: radial-gradient( #6dd5ed, pink, #6dd5ed );
background-repeat: repeat;
text-align: center;
}

h1 {
font-family:'Luminari';
color: rgb(0, 0, 255);
font-size: 30px;
}


ul {
list-style-type: none;
}


ol {
font-weight: bold;

}

li {
color: rgb(0, 0, 255);
background-color: lightpink;
text-align: center;
border: 1px solid rgb(255, 0, 0);
padding: 10px;
padding-left: 30px;
border-radius: 10px;
}

img {
height: 200px;
}

body {
font-family: sans-serif;
}

h3 {
text-decoration: underline;
}

p {
padding-top: 20px;
padding-bottom: 20px;
}





29 changes: 28 additions & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,38 @@
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">


<html>
<head>
<link rel="stylesheet" href="about.css">
<script src="changeCSS.js"></script>

</head>
<body>



<html>
<head>
<title>Changing CSS</title>
<link rel="stylesheet" type="text/css" href="empty.css"/>
</head>
<body>
<a href="#" onclick="changeCSS('empty.css', 0);">Remove CSS</a>
<a href="#" onclick="changeCSS('about.css', 0);">Add CSS</a>
</body>
</html>

<!-- <link rel="stylesheet" id="empty" href="empty.css"/> -->


<title>CSS Intro</title>
</head>
<body>

<h1>Your Name Here</h1>

<div>
<p>This is a bunch of information about myself. I'm from here and there and discovered my
love of programming when this happend. When I'm not working I'm busy doing this and that.
Expand Down Expand Up @@ -58,4 +85,4 @@ <h2>Contact Me</h2>
<input type="submit" name="sumbit" value="submit">
</form>
</body>
</html>
</html>
11 changes: 11 additions & 0 deletions changeCSS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function changeCSS(cssFile, cssLinkIndex) {

var oldlink = document.getElementsByTagName("link").item(cssLinkIndex);

var newlink = document.createElement("link");
newlink.setAttribute("rel", "stylesheet");
newlink.setAttribute("type", "text/css");
newlink.setAttribute("href", cssFile);

document.getElementsByTagName("head").item(0).replaceChild(newlink, oldlink);
}
Empty file added empty.css
Empty file.
Loading