Tribute page trouble

Tribute page trouble
0

#1

Hi every one, super new, and just got my feet wet with coding of any sort.
I’ve made it to the tribute page project and decided to code the exact example page I saw. However I’m having
trouble with some parts of it.

Firstly, I have no idea how to link to it in here in order to get feed back. (super new)

Second, I can’t figure out how to get a certain portion of text to center.

Specifically the entire un-ordered list including its heading is supposed to run down the center of the page
and try as I might even with research I can’t for the life of me figure out what I’m doing wrong. I’ve been at it a week
already and my head’s still cractching
The video said that no CSS (save for one part which was used to push the entire page down from the top) was used to make the page so I tried to make sure I didn’t use any myself but, I’m stuck!

help?


#2

Hey. Are you working on Codepen? If so, just copy-paste the link of the page you are working on here (the URL looks like this https://codepen.io/your_codepen_username/pen/RKmWl).

If not, click on the </> button you see when writing a reply, “type or paste code here” will appear surrounded by two lines of backticks. It will look like this:

```
type or paste code here
```

Copy-paste your code between the two lines of backticks (you can see the post preview on your right when writing a reply, so you’ll see if you did something wrong).


#3

yes yes codepen…I think this is the link to my project

It’s supposed to look like this

In case that doesn’t work I’ll paste my code in here perhaps someone can suggest what I should be thinking or where I should look in order figure it out.

(decided to comment out the entire block of code on here, just incase- and left comments on where I think I’ve got issues but that didn’t seem to work and none of the code shows up. so I’m hoping some how you look at my pen and view the code?

last thing I can’t get is how to make the background grey/sliver with boot strap. The video said they didn’t use CSS for anything other than pushing all the code lower down the page so I figured I’d try to do the same.

So ya, that’s it. Head scratching here after more than a few days.
Any suggestions… aaany suggestions would be awesome! I’m lost.


#4

To answer your first query, to post a link, use this format:

Project Link - [Text] (Link) <—just get rid of the space between [Text] and (Link)

For the text, put whatever you want. For the link, (obviously) put the link to your codepen page. The link will appear in such a way that the text you type will be clickable and will follow the link when clicked.

To answer your second query, Bootstrap is your friend here. Simply add classes to the html elements you want to style. For example, if you wanted all of the text in a given html element to be aligned left, you would simply give it the class “text-left”. Here is a list of all the classes in Bootstrap. Use these to format your page.

Additionally, it’s a bit of a misnomer to say that no CSS was used in the sample page for this project, because when you’re using Bootstrap (which the example does), you’re using a CSS library and that library is made up of CSS code. Also, as far as I know, the project rules don’t limit you from using CSS. I believe the project designer just wants to encourage you to rely more on Bootstrap (and by extension, other CSS libraries in the future) since it’s easier and quicker than using CSS.


#5
<div class="container-fluid">
<h1 class="text-center">Dr. Norman Borlaug</h1>
<h3 class="text-center"><em>The man who saved a billion lives</em></h3>
  
<!-- 
 _**NOTE below, try as I might, I couldn't get the pic to center with "Img-responsive"  (guess that only works with mobile?)

so trial and error and fond that "text-center worked" and I only just now found about this one  "align="middle" 
have not tried it though.]**_
-->
  
<figure class="text-center">
  <img src="https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg#" alt="a black and white picture of Dr. Norman Borlaug and friends in a farm field">
  <figcaption>
Dr. Norman Borlaug, third from left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.
    </figcaption>
</figure>
<p>
  <h3 class="text-center">Here's a time line of Dr. Borlaug's life:</h3>
</p>

<!--
_**[ I just can't figure out how to get the following block of code to center along with the above "h3" heading ]**_
-->

<p>
  <ul>
    <li><strong>1914</strong> - Born in Cresco, Iowa</li>
    <li><strong>1933</strong> - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
    <li><strong>1935</strong> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
    <li><strong>1937</strong> - Finishes university and takes a job in the US Forestry Service</li>
    <li><strong>1938</strong> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li>
    <li><strong>1941</strong> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disenfectants, and other applied science.</li>
  <li><strong>1942</strong> - Receives a Ph.D. in Genetics and Plant Pathology</li>
    <li><strong>1944</strong> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li>
    <li><strong>1945</strong> - Discovers a way to grown wheat twice each season, doubling wheat yields</li>
    <li><strong>1953</strong> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertalizer. It goes on to provide 95% of Mexico's wheat.</li>
    <li><strong>1962</strong> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li>
    <li><strong>1970</strong> - receives the Nobel Peace Prize</li>
  <li><strong>1983</strong> - helps seven African countries dramatically increase their maize and sorghum yields</li>
    <li><strong>1984</strong> - becomes a distinguished professor at Texas A&M University</li>
    <li><strong>2005</strong> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li>
    <li><strong>2009</strong> - dies at the age of 95.</li>
  </ul>
</p>
 
<p class="text-center">
    "Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."
  </p>
  
  <p class="text-center">
    <footer class="text-center">
  <em><small> - Indian Prime Minister Manmohan Singh</small></em>
 
 <!-- 
**NOTE: there's a strange long dash character in the above line I have no clue what it is**
 -->
      
    </footer>
  </p>

<h3 class="text-center">
  If you have time, you should read more about this incredible human being on his 
  <a href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wikipedia entry.
  </a>
</h3>
</div>

#6

wow okay great infor there. Thanks a bunch for that link with the boot strap classes I’ll be sure to jump on that and peek around.

here is the project link I hope I understood what you said correctly

tribute project

I’ll have to go over the boot strap training protion… heck I’ll just do every thing over to get a clearer understanding of what’s what and be done with it.

I figured I didn’t need to tie my self up and not use any css at all. I just wanted to see if I could do it all with out using it and just stick with boot strap stuff. I suppose I need more reading and review then. practice practice :slight_smile:
Thanks for the help soon as I get some free time after work tomorrow ill get back on this. for now I gotta rest for my early shift tomorrow plus got a head ache here. sigh.


#7

Hey, no problem. Happy to help.

The link for your tribute page is, indeed, setup correctly.

Also, yeah, definitely review FreeCodeCamp’s section on bootstrap. Pay particular attention to the sections regarding the ‘row’ class.

Best of luck!