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

Fixed formatting to resolve section indentation #7 and adjusted secti… #8

Merged
merged 3 commits into from
Dec 13, 2016

Conversation

radrye
Copy link
Owner

@radrye radrye commented Dec 9, 2016

…on height in CSS to resolve #6


section {
max-height: 800px;
max-width: 800px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need max-width here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know I thought this would be better to control?
I don't need it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's functional without it, but it is your choice as the designer/developer. If you want to control it the width (e.g,. if your user's screen happens to be particularly wide), then this is the right property to use.

Optional update: center the content if you're going to limit the width. Implement at your discretion.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, i need hard parameters here... not that cool of a programmer yet to have discretion haha!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave the max-width off right now since there isn't really any strong evidence to suggest your users will be negatively affected by an unlimited width.

In a future release, you can set a max-width and center the content as an enhancement.

section {
max-height: 800px;
max-width: 800px;
text-align: justify;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need text-align here?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, I thought it looked better to have my sections justified?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, just asking. Your choice as the designer/developer.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be better practice to give it a column? I feel like it's very microsoft word looking right now....

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To address your comment, my opinion is that it might look better to set a max-width on your content and then to center your content section. See https://getmdl.io/templates/blog/index.html for an example.

However, please open an Issue and assign it to me if you wish to discuss further to avoid scope creep (https://en.wikipedia.org/wiki/Scope_creep) on this PR.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so each topic should be another issue? I'm confused now how to communicate....

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess an ideal "Issue" should contain a specific topic from which actionable items can be determined. Actionable items turn into code commits.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha. This started with a "why..?" that I didn't know the answer to. I understand now there is another way to make this look better. I guess my future commit can be centering and aligning my section text. coming up!

max-width: 800px;
text-align: justify;
padding-top: 50px;
padding-bottom: 50px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need both padding-top and padding-bottom here? padding-top should be sufficient to clear the navigation bar.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, got it.
For the last section, when it clicks to the target, it does not scroll all the way to the top. probs because the page has ended. how can i resolve that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can add a footer element and either fill it with content or give it a sufficient height that you will achieve the desired effect.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will add a footer.
what other things do i need for this to flow better / to look real?
i want to give this a good skeleton and then make it look pretty...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay to adding a footer. I think that fits within this PR.

However, regarding work to make things look pretty, please open issue and assign it to me if you wish to discuss further to avoid scope creep (https://en.wikipedia.org/wiki/Scope_creep) on this PR.

Copy link
Collaborator

@christopher-baek christopher-baek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your index.html file, the "rule" for indentation is that child elements should be indented from their parents.

A couple examples:

<html>
  <head>
  </head>
  <body>
  </body>
</html>
<body>
  <nav>
    <ul>
      <li><a href="#home">Home</a></li>
      ...
    </ul>
  </nav>
  <section>
    <h4>...</h4>
  </section>
  ...
</body>

Copy link
Collaborator

@christopher-baek christopher-baek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@radrye radrye merged commit 817ea4c into master Dec 13, 2016
@radrye radrye deleted the development branch December 13, 2016 04:13
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

Successfully merging this pull request may close these issues.

section height short for a One Page site
2 participants