Issue
as the title states,
I am having trouble displaying my webpage properly on other screen resolutions.
I am not certain why it looks so bad on other screen resolutions and not scaling to the device itself.
I don't know exactly where to start, I would think that it has something to do with the way that I positioned my div containers but I am not too sure...
and would like a more experienced person to answer my question before I started messing with the code.
below is my HTML, CSS code:
body {
margin: 0px 140px 0px 140px;
font-family: Rockwell;
}
#left_border {
position: relative;
height: 100%;
border-left: 70px solid orange;
padding-left: 50px;
}
#right_border {
position: relative;
height: 220%;
border-right: 70px solid orange;
padding-right: 50px;
}
#header {
background-color: Black;
padding-bottom: 6%;
}
h1 {
color: orange;
font-size: 30px;
font-family: Rockwell;
position: absolute;
left: 45%;
}
h2 {
color: white;
text-align: center;
}
h3 {
font-weight: bold;
color: orange;
text-align: center;
}
#positioning_a {
position: absolute;
left: 65%;
top: 3.5%;
color: orange;
font-size: 21px;
font-family: Rockwell;
}
#positioning_b {
position: absolute;
left: 70.5%;
top: 3.5%;
font-size: 21px;
font-family: Rockwell;
}
#positioning_c {
position: absolute;
top: 3.1%;
left: 15.5%;
color: orange;
font-size: 21px;
font-family: Rockwell;
}
#positioning_d {
position: absolute;
top: 3.3%;
left: 29.5%;
font-size: 21px;
font-family: Rockwell;
}
a[href^="mailto:"] {
color: white;
text-decoration: none;
}
img {
position: relative;
width: 110px;
height: auto;
left: 90%;
margin-top: 30px;
}
footer {
background-color: Black;
padding-bottom: 70px;
margin-top: 50px;
margin-top: 60px;
}
.Right_Side {
margin-left: 80%;
}
.Upwards {
position: relative;
bottom: 20px;
}
.pretty {
background-color: #0e76a8;
color: White;
padding: 20px 20px 20px 20px;
text-align: center;
position: relative;
left: 42.5%;
top: 25px;
text-decoration: none;
}
#footer {
background-color: Black;
padding-bottom: 70px;
border: 1px solid black;
}
.weight {
font-weight: bold;
}
.Counter {
position: relative;
top: 60px;
left: 25px;
color: white;
}
<!DOCTYPE.html>
<html dir="ltr" lang="en-US">
<head>
<script src="myScript.js"></script>
<title> Online Resume </title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<header id="header">
<h1> Noah Harris </h1>
<h2>
<div id="positioning_a"> Email: </div>
<div id="positioning_b"> <a href="mailto:harrisspeed@gmail.com"> harrisspeed@gmail.com </a> </div>
<div id="positioning_c"> Phone Number: </div>
<div id="positioning_d"> 703-400-5998 </div>
</h2>
</div>
</header>
<div id="right_border">
<div id="left_border">
<img src="Badge.jpg" alt="Badge">
<h3> About Me </h3>
<p> Hello readers My name is Noah and I am partaking in the Cloud Resume Challenge <a href="https://cloudresumechallenge.dev/instructions/">To learn more about the challenge click here</a>. I have been studying Information Technology since i graduated
highschool although I was not sure exactly what field I wanted to get into. I was able to get a IT helpdesk job which help me understand the fundamentals but i knew that i wanted to learn more. I later discovered the cloud and was intrigued by
the freedom and creativity that could be expressed in the cloud. I began to get curious and that drove me to get my AWS Solutions Architect Associate. I am now working on more projects so that i can score real world experience and even have some
fun with it. </p>
<h3> Skills </h3>
<ul>
<li>
<div class="weight">Software:</div> Windows 7, 8 and 10; HTML and CSS knowledge. Experience using IDE’s with C++ and Python. Virtualization troubleshooting of virtual machines and VDI’s.</li>
<br>
<li>
<div class="weight">Hardware:</div> Troubleshooting HP printers; general computer builds and repairs; hardware installations and swaps. RAID Arrays, RAM and CPU replacement. Ability to troubleshoot and narrow down problems regarding hardware </li>
<br>
<li>
<div class="weight">Networking:</div> Networking experience (running cables, troubleshooting connections, activating ports, basic router configuration, switches, Wi-Fi router) Familiar with different cabling types such as CAT 5, CAT6, twisted pairs, fiber optic
cables. </li>
<br>
<li>
<div class="weight">Support:</div> Helpdesk: escalation and documentation on ticketing system, customer service support (email, phone, and in person). Assisting 40 customers per day. </li>
<br>
<li>
<div class="weight">Cloud Computing:</div> Amazon Web Services, Cloud Architecture, Cloud Infrastructure. </li>
</ul>
<h3> Experience </h3>
<div class="weight"> Navy Federal Credit Union </div>
<div class="Right_Side Upwards weight"> Service Desk Member </div>
<div class="weight"> Vienna, VA </div>
<div class="Right_Side Upwards weight"> Feb 2018 - January 2021 </div>
<ul>
<li> Provided customer service to 30 customers a day. Talked to customers who needed technical support for their computers and active directory accounts. </li>
<br>
<li> Alerted management team when a technical outage in the credit union occurred to ensure that the issue gets patched as efficiently as possible. </li>
<br>
<li> Worked with colleagues in the event of a technical outage to minimize the call queue and effectively troubleshoot for a solution. </li>
</ul>
<h3> Education </h3>
<p class="weight"> George Mason University </p>
<div class="Right_Side Upwards weight"> Fairfax, Va </div>
<div class="weight"> Information Technology </div>
<div class="Right_Side Upwards weight" id="Upwards"> August 2017 - Present </div>
<ul>
<li> Year Up is a leading one-year career development program with 250 corporate partners around the country; the program includes college-level courses, professional training, and a six-month internship. </li>
<br>
<li> Earned an Associate Degree from Northern Virginia Community in Information Technology with 67 credits. </li>
<br>
<li> Working towards a bachelor's degree in Information Technology with 120 credits. </li>
</ul>
<h3> AWS Solutions Architecture </h3>
<div class="weight"> Cloud Computing </div>
<div class="Right_Side Upwards weight"> April 2021 </div>
<ul>
<li> Understands cloud architecture and how to host a highly available website. Able to write simple bash scripts on EC2 instances. </li>
<br>
<li> Able to execute best practices on security such as private subnets, firewalls, and security groups. </li>
<br>
<li> Understanding routing on Route 53 latency-based routing geolocation-based routing etc. </li>
<br>
<li> able to host a static website on S3. </li>
</ul>
</div>
</div>
<div id="footer">
<div class="Counter">
</div>
<a href="https://www.linkedin.com/in/noah-harris-947b38152/" class="pretty"> Check me out on Linkedin</a>
</div>
</body>
</html>
Solution
I advise you to follow many good techniques when developing a responsive webpage, here I explain to you:
- Replacing in your CSS absolute units such as px for percentages or em. It is always much better to work with relative measurements rather than absolute ones. From my experience, I always try to work with em, here is a conversion from px to em.
- Using responsive layouts like flex or grid.
- Adding metadata related to the viewport in the HTML head tag. I can see you haven't written it. As we can read in W3Schools viewport is the user's visible area of a web page. It varies with the device so it will be smaller on a mobile phone than on a computer screen. You should include the following element in all your web pages:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
In conclusion, try to avoid absolute positioning because it is not the best option. Try to follow this advice and I am sure your webpage will turn so much better. :D.
Answered By - diegogs_
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.