Home > Software engineering >  Making Html Tags Visible on Website To Make It Look Good
Making Html Tags Visible on Website To Make It Look Good

Time:10-15

How to make my website look from: Original Look Of Website

To This Look:

What I want To achieve

I'm using CSS, JavaScript And Html, But I don't Know how to achieve that type of look to My website

CodePudding user response:

Add line (div) and use ::before and ::after on it.

#app {
    margin: 40px;
}

.flex {
    display: flex;
}

.line {
    width: 2px;
    background: red;
    position: relative;
    margin-right: 10px;
}

.line::before {
    content: "<h3>";
    position: absolute;
    top: 0;
    transform: translate(-43%, -100%);
}

.line::after {
    content: "</h3>";
    position: absolute;
    bottom: 0;
    transform: translate(-45%, 100%);
}
<div id="app">
   <div >
      <div ></div>
      <h1>Simpfey <br>
         Simpfey
      </h1>
   </div>
</div>

CodePudding user response:

CSS and images

.main {
  height: 100vh;
  width: 100vw;
  display: flex;
  background-color: #0F0E0E;
}

.side {
  width: 125px;
  height: auto;
  min-width: 125px;
  background-image: url(https://i.stack.imgur.com/B6aic.png);
  background-repeat: no-repeat;
}

.content {
  font-family: "Bahnschrift light", "sans-serif";
  font-size: 5em;
  color: white;
  padding-top: 5%;
}
<div >
  <div > </div>
  <div >Simpfey</div>
</div>

  • Related