Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

week 01 review - navigation structure #2

Open
jakub-c opened this issue Mar 6, 2018 · 2 comments
Open

week 01 review - navigation structure #2

jakub-c opened this issue Mar 6, 2018 · 2 comments

Comments

@jakub-c
Copy link

jakub-c commented Mar 6, 2018

week-01/index.html

Lines 13 to 24 in 32e2a4e

<section class="section-general" id="section-menu">
<h3 id="list-header"> GET AROUND THIS DOCUMENT</h3>
<p id="1">I. <span><a href="#profile">PROFILE</a></span></p>
<p id="2">2.<span><a href="#experience">EXPERIENCE</a></span></p>
<p id="3">3.<span><a href="#education">EDUCATION</a></span></p>
<p id="4">4.<span><a href="#skills">SKILLS</a></span></p>
<p id="5">5.<span><a href="#references">REFERENCES</a></span></p>
<p id="6">6.<span><a href="#ArtThatILike">ARTTHATILIKE</a></span></p>
<p id="7">7.<span><a href="#inspirational_quote">QUOTE</a></span></p>
<p id="8">8.<span><a href="#PopulationOfCats">POPULATION OF CATS</a></span></p>
</section>

  • there was a dedicated HTML tag for navigation, I suggest you research that
  • this kind on navigation is usually supposed to be created as an ordered or unordered list
  • I think you should have used h2, instead of h3
  • there is no need for a <span> outside those links
  • I recommend you use more meaningful names for your ids - it's really hard to understand what 1,2,3,4 means
@ShazaMaher
Copy link
Owner

ShazaMaher commented Mar 10, 2018

@jakub-c I just want to make space between the numbers and the text and I did not find any property in css to do that. I noticed a space between the number and the text that follow it. therefor I changed from ol to p tags.

so If you know any property that I can you to make dista between the number and the text in the order list please tell me about it.

@jakub-c
Copy link
Author

jakub-c commented Mar 12, 2018

@ShazaMaher this is how I would implement that part of the navigation:

<ol>
  <li><a href="#">Profile</a></li>
  <li><a href="#">Experience</a></li>
  <li><a href="#">Education</a></li>
</ol>
li {
  padding-bottom: 15px;
}

a { 
  padding-left: 15px;
  text-transform: uppercase;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants