Stuck On Build a Personal Portfolio Webpage

Please, i want to arrange the images as tiles, two columns. don’t know how to.
And also, how to center two texts at once on different lines.

<div id="projects">

<h2>These are some of my projects</h2>


<div class="project">

<div id="project-tile">

<img src="">

<p>Tribute Page</p>

<div id="project-tile">
<img src=""/>

<p>Random Quote Machine</p>

<div id="project-tile">
<img src=""/>

<p>JavaScript Calculator</p>





That post only has your code. Can you describe what you need help with for your code

1 Like

You would do well in showing us your styles.css file too. In case you haven’t used it at all, then worry about the structure of your page first and once you get that done, start with its design. The display of images falls under the design category, for which CSS is necessary. HTML only structures the page.


background-color:red; height:30px;top:0;

display:inline; padding:10px; 

height:70%; margin:auto;}


*{border:2px solid black;}

#welcome-section{width:100%; height:100vh;

align-items:center; padding:0 4px;}

#contact{width:100%; height:100vh; 
text-align:center; line-height:100vh;

img{width:100%; height:250px;object-fit:cover;margin-top:8px;padding:0 4px;}

Just to make sure, is it currently showing as one column only? That might be because you gave them a width of 100%, though to be honest I’m not sure. Maybe try 50%.

yes, it’s showing as one column. I just changed it to 50% as you said, but it is still on a column

Have you tried using flexbox? I haven’t gotten as far as the Build a Personal Portfolio Webpage course, so I don’t know if you’ve been shown an alternative, but maybe flexbox is what you need.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.