How can I make the blog grid work on Chrome? - html

This blog list formatting is not working in chrome. It looks fine in Safari (although it wont stack) but I don't know what I'm doing wrong with Chrome. I have attached an image of the blog list in my chrome browser. I have added more css for reference. Please let me know if you can help! Much appreaciated!
<ul class="blog-list">
<li>
<a href="https://bluestoneconstruction.com/why-asheville-is-the-best-place-to-retire-and-become-the-artist-you-always-wanted-to-be/">
<img src="https://bluestoneconstruction.com/wp-content/uploads/2018/11/liveable-cities-where-to-move-if-you-can-live-anywhere-10-1030x579.jpg" alt="">
<h3>Asheville NC Is The Best Place to Retire—And Become the Artist You Always Wanted to Be</h3>
</a>
<p>Retirement is about getting to play, grow, and explore parts of yourself that you were too busy or preoccupied to fully enjoy previously. It’s about having free hours to learn new skills and fully immerse yourself in those “night and weekend” hobbies that are no longer relegated to nights and weekends. For many of us,</p>
</li>
<li>
<a href="https://bluestoneconstruction.com/now-is-the-time-to-build-the-custom-home-you-want-to-live-work-play-in/">
<img src="https://bluestoneconstruction.com/wp-content/uploads/2020/04/Best-Greenville-luxury-home-builder-1.jpg" alt="">
<h3>Now Is The Time To Build The Custom Home You Want To Live, Work & Play In</h3>
</a>
<p>Spending most of your time at home clarifies what works and what doesn’t about your space. We’re all stuck at home, which means that aspects of our space that seemed like mild annoyances a few weeks ago now feel like major inconveniences. Maybe your kitchen felt small when you were eating out multiple times a</p>
</li>
<li>
<a href="https://bluestoneconstruction.com/kevin-reed-on-home-construction-during-coronavirus-via-houzz/">
<img width="1009" height="690" src="https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1-1009x690.jpg" class="img-responsive wp-post-image" alt="" loading="lazy" srcset="https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1-1009x690.jpg 1009w, https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1-300x205.jpg 300w, https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1-1024x700.jpg 1024w, https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1-768x525.jpg 768w, https://bluestoneconstruction.com/wp-content/uploads/2020/03/why-bluestone-construction-is-the-best-custom-builder-in-Asheville-nc-6-1-1500x1026-1.jpg 1500w" sizes="(max-width: 1009px) 100vw, 1009px">
<h3>Kevin Reed on Home Construction During Coronavirus, via Houzz</h3>
</a>
<p>Bluestone founder Kevin Reed was recently featured on Houzz, in an article about how the novel coronavirus is affecting the home building industry and the extra hygiene precautions his teams are taking. Read the entire story here.</p>
</li>
</ul>
.blog-list {
padding: 0 8px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.blog-list li {
padding-bottom: 20px;
}
.blog-list a {
position: relative;
text-decoration: none;
height: 400px;
}
.blog-list h3 {
padding: 20px 0 10px;
font-size: 1.9rem;
font-family: 'Playfair Display', Arial, serif;
color: #c9aa70;
line-height: 1;
}
.blog-list p {
padding-bottom: 1em;
}
.blog-list img {
display: block;
height: auto !important;
width: 100%;
}

the display: grid; css style tag is actually supported on all browser as per the can i use https://caniuse.com/css-grid. I would suggest you take a look at some article about the use of css, that one for example grid https://css-tricks.com/snippets/css/complete-guide-grid/.
If you don't want to bothered yourself with it you can always use a css framework like https://getbootstrap.com/ which has already a pre made built in grid system and is verry friendly to learn. Regards

So reviewing your code, it looks like you specified display: grid and grid-template-columns but forgot to specify which items go into which column in the child elements.
Here is a working jsfiddle that shows it working (yes, I tested in chrome) with some quick style changes to make it look readable: https://jsfiddle.net/tjaLuc7r/29/
I simply added this to the css to make it work:
ul:first-child {
grid-column-start: 1;
}
ul:nth-child(n+1) {
grid-column-start: 2;
}
ul:last-child {
grid-column-start: 3
}
There is great documentation for grids and all things css here: https://css-tricks.com/snippets/css/complete-guide-grid/

Related

Flexbox: Two even columns - big image (with aspect-ratio) and content

I need to create an information section that includes an image and content next to it.
It should look like this:
I have already written a little bit of code, but it does not seem to be the best solution: everything works fine, but code is not graceful.
Please, have a look:
/* Simple reset */
img {
display: block;
max-width: 100%;
}
body {
background-color: black;
}
.information {
display: flex;
gap: clamp(5rem, 10vw, 8rem);
}
.information > * {
width: 50%; /* Using the 'width' property. */
}
.information-content {
align-self: center;
color: white;
}
.information-image {
align-self: flex-start;
object-fit: cover;
aspect-ratio: 1 / 1.10;
border-radius: 5px;
}
<section>
<div class="container">
<div class="information">
<img
class="information-image"
alt="Products for companies & Startups"
src="https://s3-alpha-sig.figma.com/img/6630/3672/40959a0086f9fbb8418c0829b277dd93?Expires=1670198400&Signature=gpQ5NqRXp9omRHkjCl718I9WPLqfx4xPKp1CQSMKbEnRCU7izmQIXkcn6zI6Z17p8Q7Li-wBAXb3P2Jg9qEuJauFeKqErbl4jgW950K35-LeX394hN7fJ7UEPmkgGSqB-drY1QdU7NZVV4QKTrZ0QBuw47xVBPOOfJMQO8NPOpZkx43UbbkS1yGgnxN5tELyriz9e8pH6pXO8AnJx7zvGz4mm3InyHOySUcb3ibVPa9XKJ8fyxPnkBeVoYFvwpiVddEs7uVNqCkCRuN2dJIIQg78FB-6TYX13nQ~NxvhG2059ks2q52a9p0N-DSmSYE-Yt-jedbJ1fEt3cZVnIfzUw__&Key-Pair-Id=APKAINTVSUGEWH5XD5UA"
/>
<div class="information-content">
<h2>
My main goal is to keep my customers satisfied.
</h2>
<p>
Even with skills that are primarily mental, such as
computer programming or speaking a foreign language.
</p>
<p>
Even with skills that are primarily mental, such as
computer programming or speaking a foreign language.
</p>
</div>
</div>
</div>
</section>
My concern is the width property set on each child of my flex parent. As far as I know, using width inside flexbox is not the best idea? However, when I try to use the flex-basis property, everything breaks.
Note: I cannot use display: grid because the image can be after the content - with grid I will have to change the order and the code will become more complicated.

How can I space out the words in my navigation bar as well as turn all the text white?

I've tried to make a bar with not much success. I would like to space each of the three words "Main Page", "About Me" and Bibliography apart with each of them being in the left, center, and right respectively.
I'd also like to change the text of them so that they're white. Here is a sample of what it looks like now and my code below:
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-align: center;
}
h4 {
color: #00008B;
font-size: 2em;
}
h5 {
text-align: center;
}
body {
background-color: #FAFAFA;
}
.navigation {
color: #ffffff;
list-style-position:
box-sizing: border-box;
margin-left: 0;
padding: 0;
background-color: #000000;
}
.middle {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%
}
.footer {
color: #0000FF;
}
</style>
</head>
<body>
<h1>Main Page</h1>
<h5>Osirin bin Osiris</h5>
<nav>
<p class="navigation">
<a class="main" href="index.html">Main Page</a>
<a class="about" href="about.html">About Me</a>
<a class="biblio" href="bibliography.html">Bibliography</a>
<p>
</nav>
<h4>History of the Internet</h4>
<img src="ARPAnet.png" alt="ARPAnet diagram" length="607" width="490" class="middle">
<p> The modern day internet arose from the intranet developed by the U.S. military in 1969 (known as ARPAnet). Arpanet connected university computers across the country. It was restricted to sharing research material and was difficult to use.
Despite this, it was the essential foundation for the modern day internet that spans the globe. It’s important to note that the world wide web is not the same thing as the internet. The world wide web is a subset of the internet. It’s a collection of webpages containing images, videos, text, and sounds that are accessed using the http protocol. The best analogy to explain this difference would be to imagine a highway. The internet can be likened to a major highway and the world wide web are passenger car. There are many passenger cars that pass on the highway however; the highway contains more than just cars. It has trucks and vans travelling for business. In the same way, the internet isn’t just used by individuals but also governments, businesses and even satellites communicating with each other using different protocols.
</p>
<h4>How a page is delivered</h4>
<p> There are many things that need to work in order to bring a webpage to a device. These are:
<ul>
<li> Internet connection </li>
<li> Web browser </li>
<li> Server </li>
</ul>
<br>
When a person types in a web address, the operating system connects to a domain name server which will send back the I.P address that matches the text address to the user’s device. As the webpage appears, the user then interacts with the site by sending and receiving requests (i.e. clicking buttons, typing words, looking up images).
<br><br>
Information does not get communicated through the internet as it appears on a website. Instead, the browser breaks down texts, words, and images into small packets of information which are then sent from a computer/smartphone to the router, to a web server and then down fibre optic cables across the globe.
</p>
<footer>
<p class="footer"><b> </b></p>
</footer>
</body>
</html>
Many solutions. One solution would be to use flex box. Like that. You can add only this to your style:
.navigation {
display: flex;
}
.navigation a {
display: block;
width:33%;
text-align: center;
color: white;
}
working example
h1 {
text-align: center;
}
h4 {
color: #00008B;
font-size: 2em;
}
h5 {
text-align: center;
}
body {
background-color: #FAFAFA;
}
.navigation {
color: #ffffff;
list-style-position:
box-sizing: border-box;
margin-left: 0;
padding: 0;
background-color: #000000;
}
.middle {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%
}
.footer {
color: #0000FF;
}
.navigation {
display: flex;
}
.navigation a {
display: block;
width:33%;
text-align: center;
color: white;
}
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<h1>Main Page</h1>
<h5>Osirin bin Osiris</h5>
<nav>
<p class="navigation">
<a class="main" href="index.html">Main Page</a>
<a class="about" href="about.html">About Me</a>
<a class="biblio" href="bibliography.html">Bibliography</a>
<p>
</nav>
<h4>History of the Internet</h4>
<img src="ARPAnet.png" alt="ARPAnet diagram" length="607" width="490" class="middle">
<p> The modern day internet arose from the intranet developed by the U.S. military in 1969 (known as ARPAnet). Arpanet connected university computers across the country. It was restricted to sharing research material and was difficult to use.
Despite this, it was the essential foundation for the modern day internet that spans the globe. It’s important to note that the world wide web is not the same thing as the internet. The world wide web is a subset of the internet. It’s a collection of webpages containing images, videos, text, and sounds that are accessed using the http protocol. The best analogy to explain this difference would be to imagine a highway. The internet can be likened to a major highway and the world wide web are passenger car. There are many passenger cars that pass on the highway however; the highway contains more than just cars. It has trucks and vans travelling for business. In the same way, the internet isn’t just used by individuals but also governments, businesses and even satellites communicating with each other using different protocols.
</p>
<h4>How a page is delivered</h4>
<p> There are many things that need to work in order to bring a webpage to a device. These are:
<ul>
<li> Internet connection </li>
<li> Web browser </li>
<li> Server </li>
</ul>
<br>
When a person types in a web address, the operating system connects to a domain name server which will send back the I.P address that matches the text address to the user’s device. As the webpage appears, the user then interacts with the site by sending and receiving requests (i.e. clicking buttons, typing words, looking up images).
<br><br>
Information does not get communicated through the internet as it appears on a website. Instead, the browser breaks down texts, words, and images into small packets of information which are then sent from a computer/smartphone to the router, to a web server and then down fibre optic cables across the globe.
</p>
<footer>
<p class="footer"><b> </b></p>
</footer>
</body>
</html>
this should get you going in the right direction, replace your .navigation rule with this and add the styles for link
.navigation {
color: #ffffff;
display: flex;
justify-content: space-between;
/*if you dont want the items to go all the way to the end*/
padding-left: 10px;
padding-right: 10px;
background-color: #000000;
}
.navigation a {
color: white;
}

Different response on different web browsers/screen size (not mobile friendly)

Honestly, I probably shouldn't even be writing right now given the fact that I am so heartbroken I just want to curl up in a ball and cry in bed. I have worked so hard SO FLIPPING HARD on my design/build and I was so proud of myself that I have not felt this happy in a long time. However, like reality vs. disney...all happy endings must crash and burn because life is no flipping disney screenplay.
Backstory:
I am a high functioning autistic who grew up in a REALLY flipping bad home. Cared for my mum since I was a child. Dad was an abusive piece of crud. We were really poor so I had to work 3 jobs since I was 8 just to take care of the house, bills, etc. Now mum is recently deceased, I am trying to get my life together and escape my abusive father. I can't afford college (because the "get a scholarship and apply for aid" is a load of cow manure), I can't afford bootcamps, I can't afford a mentor, so I taught myself to code using youtube, google and lots of reading.
After nearly two years of studying, many months of designing, many months of coding, trials and errors and research, I finally finished my portfolio website. I took one look at my masterpiece, bought my domain, and published my work. Right when I thought my life was about to change and that I was ready to apply for new jobs, I saw my beautiful sight that fits so beautifully on my chrome browser via macbook air and I asked myself "is this heaven" God instantly replied back "NO....THIS...IS...SPARTA..." and kicked my happy donkey all the way back to reality. Moral of the story, I am what my mummy called my ex's cooking...trash.
Here's my code please do not roast me like a pig at a nordic pagan festival. I am doing my best (which is clearly not good enough).
-----------------------------------website name------------------------------------------
arthurcurry.co.uk
yes this is my real name, yes I know who my mum named me after, yes I used this and my obsession with fish to create my site. Please do not start with the jokes fam. I have heard it my entire life. If you have no idea what I am speaking of... Congrats, you are the .01% of the world who most likely will not have a go at me because of it.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.pimg1,
.pimg2,
.pimg3 {
position: relative;
opacity: 0.70;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
.pimg1 {
min-height: 100%;
}
.pimg2 {
min-height: 400px;
}
.pimg3 {
min-height: 400px;
}
.pimg4 {
background-image: url('image4.jpg');
background-size: cover;
background-repeat: no-repeat;
min-height: 100%;
}
.section {
text-align: center;
padding: 50px 80px;
}
.section-light {
background-color: #f4f4f4;
color: #666;
}
.section-dark {
background-color: #282e34;
color: #ddd;
}
.ptext {
position: absolute;
top: 50%;
width: 100%;
text-align: center;
color: #000;
font-size: 27px;
letter-spacing: 8px;
text-transform: uppercase;
}
.ptext .border {
background-color: #111;
color: #fff;
padding: 20px;
}
.ptext .border.trans {
background-color: transparent;
}
#media(max-width:568px) {
.pimg1,
.pimg2,
.pimg3 {
background-attachment: scroll;
}
}
.info {
position: center;
}
.ptext4 {
position: absolute;
top: 450%;
width: 100%;
text-align: center;
color: #000;
font-size: 27px;
letter-spacing: 3px;
text-transform: uppercase;
}
.ptext4 .border {
background-color: #111;
color: #fff;
padding: 20px;
}
.ptext4 .border.trans {
background-color: transparent;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Arthur Curry</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="pimg1">
<video autoplay muted loop>
<source src="waves1.mp4" type="video/mp4" class="video1">
</video>
<div class="ptext">
<span class="border">
Designer. Developer. Conservationist.
</span>
<p>"What could be greater than a King? A Hero. A King fights for his nation, a hero fights for everyone." <strong> - Mera</strong></p>
</div>
</div>
<section class="section section-light">
<div class="text">
<h2> Who is Arthur Curry? </h2>
<p>
Many know his name but even more do not know who he truly is. Ever since Arthur Curry was a child, he felt himself drawn to the 7 seas and her despair as if she was physically calling to him. With the incapability to escape the grasp of her cries for
help, he knew something must be done. In 2016 he began teaching himself to code using numerous programming languages, text editors, design and developing platforms. Through his work he has made it his life mission to not just design and develop
but to use his skills for good towards conservation. Many have come to him for advice and have called him a living computer, constantly learning, adapting and solving problems many find challenging.
</p>
</div>
</section>
<div class="pimg2">
<video autoplay muted loop>
<source src="pimg2.mp4" type="video/mp4">
</video>
<div class="ptext">
<span class="border trans">
Did you know that in 2020 Ocean Cleanup broke world record using technolgy to collect <strong><i>103 tons of plastic</strong></i>!
</span>
</div>
</div>
<section class="section section-dark">
<h2>Design Tools</h2>
<p>
Pen & Paper, Sketch pad, Webflow, Apple Mac, photography/videography camera, dive gear, Microsoft Office, Adobe Photoshop, Adobe Lightroom, & Adobe Animate.
</p>
</section>
<div class="pimg3">
<video autoplay muted loop>
<source src="pimg3.mp4" type="video/mp4">
</video>
<div class="ptext">
<span class="border trans">
Did you know that because of technology, scientist are using biorock which gives coral reefs a 1600% to 5000% higher chance of survival?
</span>
</div>
</div>
<section class="section section-dark">
<h2>Developer Tools</h2>
<p>
Github, HTML, CSS, PHP, Python, JS, Sublime Text Editor, Visual Code Text Editor, & Bootstrap.
</p>
</section>
<div class="pimg4">
<div class="ptext4">
<span class="border trans">
<ul>
<li>Would you like to know more about becoming a true conservationist?</li>
<br>
<li>(website coming soon)</li>
<br>
<li><strong><i>ACurry.Business#gmail.com</i></strong></li>
</span>
<a href="http://open.spotify.com/user/q77rp6h9ot83qjk8r9xxg63hn" target="_blank">
<img src="spotify.png" class="spotify">
</a>
<a href="https://www.linkedin.com/in/arthurcurry/" target="_blank">
<img src="linkedin.png" class="linkedin">
</a>
<a href="https://www.instagram.com/oceanic_conservationist/" target="_blank">
<img src="instagram.png" class="instagram">
</a>
</div>
</div>
</body>
</html>
There are just way too many things wrong with your website. Furthermore, I am honestly unable to understand your concern here.
If the title is the only concern, it is because you have not made your website responsive.
Use this as a reference.
#media(max-width:568px) {
.pimg1,
.pimg2,
.pimg3 {
background-attachment: scroll;
}
}
That is the only part that aims at responsiveness. You have to aim at every breakpoint possible. It looks different in different browsers and mobile because your website aims at 568px and below. That's close to a phone resolution than a PC resolution (Consider 4k screens as well). Make different breakpoints, use dev tools on chrome and reduce the screen size to see what's out of place, create a media query for that and try fixing it.
Also, try learning flexbox or grid. Does wonders and shouldn't take more than a day.
It takes time to get better and be glad that you started. Nobody builds a perfect website the first time.
Bonus:
.ptext4 {
top: 450%;
Delete "top" to view your footer.

How to keep two columns the same height with image?

We have a two column layout where image is on one side with text on the other. We want the image to be the same height as the content. We are having an issue when the text column reaches a certain height, then it will not make the image go full height. Although not added, this .flex__wrapper is surrounded by an outer <div class="container"> element so that we can handle larger screens where we may want to limit the width.
How can we achieve this? Our current solution uses flexbox, but we have also tried the following solutions but none resolves the problem.
Goal:
As the right column containing the text increases in height, i want the image to also take up the same amount of height.
Solutions we tried, but they didn't work. They seem to work well with text and text, but not text and image.
Make two columns the same height (using Flexbox)
Keep columns with same height
(using Tables)
.flex__wrapper {
display: flex;
position: relative;
align-items: center;
background-color: #eee;
}
[class*=col--] {
box-sizing: border-box;
}
.col--m-s-12 {
width: 100%;
}
.col--t-s-6 {
width: 50%;
}
img {
display: block;
height: auto;
}
<div class="flex__wrapper">
<div class="col--m-s-12 col--t-s-6">
<img src="https://thumb1.shutterstock.com/display_pic_with_logo/422872/1024946740/stock-photo-large-group-of-business-people-standing-with-folded-hands-togeth-1024946740.jpg">
</div>
<div class="col--m-s-12 col--t-s-6">
<div>Distinctively engineer timely benefits before leading-edge technology. </div>
<div>Quickly brand strategic web-readiness whereas global relationships. Credibly underwhelm interdependent e-markets via plug-and-play value. Professionally maximize emerging partnerships rather than equity invested information. Objectively morph intuitive applications rather than multimedia based best practices. Competently innovate covalent infrastructures after premium relationships.
Globally conceptualize holistic sources and leveraged synergy. Distinctively maintain stand-alone content without market-driven niche markets. Completely orchestrate seamless channels after high-quality synergy. Rapidiously scale cutting-edge niche markets with reliable innovation. Intrinsicly productize multifunctional manufactured products without high standards in e-tailers.</div>
</div>
</div>
Current issue:
Additional issue:
Desired result:
You need to apply max-width:100% on your image. Now even after applying the following style your image will not take whole place in full screen(1600*900px), this is happening because your original image is of less size(450*274) and the container where your are trying to fit is 792px approx. Try using a bigger image then it will be solved.
.flex__wrapper {
display: flex;
position: relative;
background-color: #eee;
flex-wrap: wrap;
}
#media screen and (min-width: 1024px) {
.flex__wrapper {
max-width: 56%;
}
}
[class*=col--] {
box-sizing: border-box;
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.col--m-s-12 {
width: 100%;
}
.col--t-s-6 {
width: 50%;
}
img {
height: 100%;
width: 100%;
object-fit:cover;
}
<div class="flex__wrapper">
<div class="col--m-s-12 col--t-s-6" style="border:solid 1px;">
<img src="https://thumb1.shutterstock.com/display_pic_with_logo/422872/1024946740/stock-photo-large-group-of-business-people-standing-with-folded-hands-togeth-1024946740.jpg" class="img-fluid">
</div>
<div class="col--m-s-12 col--t-s-6">
<div>Distinctively engineer timely benefits before leading-edge technology. </div>
<div>Quickly brand strategic web-readiness whereas global relationships. Credibly underwhelm interdependent e-markets via plug-and-play value. Professionally maximize emerging partnerships rather than equity invested information. Objectively morph intuitive
applications rather than multimedia based best practices. Competently innovate covalent infrastructures after premium relationships. Globally conceptualize holistic sources and leveraged synergy. Distinctively maintain stand-alone content without
market-driven niche markets. Completely orchestrate seamless channels after high-quality synergy. Rapidiously scale cutting-edge niche markets with reliable innovation. Intrinsicly productize multifunctional manufactured products without high standards
in e-tailers.</div>
</div>
</div>
html:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test3</title>
<link rel="stylesheet" type="text/css" href="test.css">
</head>
<body>
<main class="holder">
<section class="left-div">
<h1 class="flat-invisible">test-3</h1>
<img src="https://thumb1.shutterstock.com/display_pic_with_logo/422872/1024946740/stock-photo-large-group-of-business-people-standing-with-folded-hands-togeth-1024946740.jpg" alt="stock photo large group of business people standing with folded hands together">
</section>
<aside class="right-div">
<div>Distinctively engineer timely benefits before leading-edge technology. </div>
<div>Quickly brand strategic web-readiness whereas global relationships. Credibly underwhelm interdependent e-markets via plug-and-play value. Professionally maximize emerging partnerships rather than equity invested information. Objectively morph intuitive applications rather than multimedia based best practices. Competently innovate covalent infrastructures after premium relationships.
Globally conceptualize holistic sources and leveraged synergy. Distinctively maintain stand-alone content without market-driven niche markets. Completely orchestrate seamless channels after high-quality synergy. Rapidiously scale cutting-edge niche markets with reliable innovation. Intrinsicly productize multifunctional manufactured products without high standards in e-tailers.</div>
</aside>
</main>
</body>
</html>
css:
.left-div {
float: left;
grid-area: section;
max-width: 100%;
max-height: 100%;
}
.flat-invisible {
margin: 0em;
padding: 0em;
line-height: 0em;
height: 0em;
visibility: hidden;
}
.left-div > img {
object-fit: cover;
top: 0px;
height: 100%;
max-width: 120%;
}
.right-div {
padding-top: 2em;
padding-bottom: 2em;
padding-left: 150px;
max-width: 50%;
grid-area: aside;
max-height: 100%;
}
.holder {
max-width: 90%;
background-color: #eee;
display: grid;
grid-template:
'section aside';
}

HTML/CSS Positioning A Image/Description Layout

I'm building a website layout and I'm trying to have a list of images with descriptions centered next to them, but I can't figure out how to get the paragraphs to move next to the images without the entire layout messing up. I've messed around with the float, clear, and display settings with no avail. I added a picture of my desired result
my HTML for this section looks like this currently:
<section>
<ul id="gallery">
<li>
<a href="GPA_Calc_Screen.png">
<img src="GPA_Calc_Screen.png" alt""> <!--Relative img path -->
</a>
</li>
<li>
<p >
This is a custom GPA Calculator, and what I like to think is the first real app that I made. Going to Georgia Tech, and college in general, this is a vital asset. Although at GT we don't operate on the plus/minus system, I added a setting in which you can edit that if you want.
</p>
</li>
<li>
<a href="Avengers_App_Screen.png">
<img src="Avengers_App_Screen.png" alt"">
</a>
</li>
<li>
<p>
Okay, who doesn't like The Avenegrs movie series? Huh? Well, yeah I guess you're right, but it doesn't matter because I love it! I made this app to
test out layout design, android intents, and a few other features. It's also
a great way to kill 4 minutes.
</p>
</li>
</ul>
</section>
and my CSS that goes with it looks like this currently:
#gallery {
margin: 0;
padding: 0;
list-style: none; /*Removes bullet points*/
}
#gallery li {
width: 45%;
margin: 2.5%;
background-color: #b3dbeb
color: #1d95c5;
}
.descriptions {
display: block;
}
.descriptions a {
float: left;
}
For each p tag just add a clearfix class and import bootstrap or any other framework with clearfix support or do as below
.p:before,
.p:after {
content:"";
display:table;
}
.p:after {
clear:both;
}
.p {
zoom:1; /* For IE 6/7 (trigger hasLayout) */
}
Try flex box on the parent of your two elements:
display: flex;
Or try float right on paragraph:
.description p {float:right}
Make sure to define widths first.