Tuesday, December 17, 2019

Portfolio #3: Informal Writing 2

The following is the CSS code used for my website. This code provides the layout and basic color scheme of my website.




body {
  background: #80aaff;
  color: white;
  font-family: Helvetica;
  width:80%;
  margin: auto;
  border: none;
  height:100%;
  font-size: 18px;
}

p {text-align:center;}

body, html {
  height: 100%;
  margin: auto;
}

.hero-image {
  background-image: url("heroi.png");
  height: 40%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

h1 {
  color: white;
  text-shadow: 2px 2px 2px #345cac;
  padding: 3px;
  text-align: center;
}

ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #4d4dff;
}

li{
  float: left;
}

li a{
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #ffad33;
}


.button {
  background-color: #003cb3;
  border: 3px solid #ffad33;
  color: white;
  padding: 15px 25px;
  text-align: center;
  font-size: 23px;
  cursor: pointer;
}

.button:hover {
  background-color: #ffad33;
}

No comments:

Post a Comment