After reverse engineering a web site you may want to dissect it for several reasons:
The basic methodology for doing this is:
We will be using one of the W3school.com template and dissect it.
With /w3images still selected, select Find > Find and Replace in Files, type images in the Replace text field, and then click the Replace All button.
It is helpful to delete content from the template that you don't need before you start to dissect the page so that they will not be a distraction. In this case, we will delete only the My Price section.
Before changing the content (e.g., text and images), it is best to first dissect the page to see how it works and how to modify it to meet your particular needs.
NOTE: For some unknown reason, this page does not have a
head
element like most web pages. We will wrap a
head
element about elements that are normally in the
head
element.
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
/* Set the width of the sidebar to 120px */
.w3-sidebar {width: 120px;background: #222;}
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {margin-left: 120px}
/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {#main {margin-left: 0}}
</style>
<body class="w3-black">
Now that we can see all of the structures of the page, now we need to review each one of this sections to see how they are being used and how the classes work.
<!doctype html>
<html>
<head>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
/* Set the width of the sidebar to 120px */
.w3-sidebar {width: 120px;background: #222;}
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {margin-left: 120px}
/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {#main {margin-left: 0}}
</style>
</head>
<body>
</body>
</html>
<nav class="w3-sidebar w3-bar-block w3-small w3-hide-small w3-center">
<!--<nav class="w3-sidebar w3-bar-block w3-small w3-hide-small w3-center">-->
<nav class="">
<!--<nav class="w3-sidebar w3-bar-block w3-small w3-hide-small w3-center">-->
Below are some comment for each section:
Once you get the web site looking the way you want, it's time to make your own changes: