Skip to content

London 9 - Andriana Saffo - HTML/CSS - Week 1 & 2 - #502

Open
AndrianaOS wants to merge 19 commits into
CodeYourFuture:masterfrom
AndrianaOS:master
Open

London 9 - Andriana Saffo - HTML/CSS - Week 1 & 2#502
AndrianaOS wants to merge 19 commits into
CodeYourFuture:masterfrom
AndrianaOS:master

Conversation

@AndrianaOS

Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name: Andriana Saffo
  • Your City: London
  • Your Slack Name: Andriana

Homework Details

  • Module: HTML/CSS
  • Week: 1

Notes

  • What did you find easy?

  • Creating the general information and the simple styling

  • What did you find hard?

  • Getting the background image to render on the page

  • What do you still not understand?

  • N/A

  • Any other notes?

  • N/A

Added a new header to include nav bar information
Included styling to nav bar and included HTML content for main page
Button design updated to match template image
Updated HTML file to change links in nav bar from li elements to a elements. Styled HTML page to look similar to reference picture given
Included icons and text to build reference page
Deleted commented out styles and edited style for background image
Background image rendered, footer styled as per reference and nav bar restyled
Added more information to help build site. Some CSS styles removed/commented out to adjust designs
Added span to quotation marks to change colour.
Styled additional section of homepage to resemble example
Included a new HTML page for the store page on Karma and a new styling page for the store
Linked index.html and store.html pages. Styled pages
Input divs to help breakup codes into sections to be styled easily with CSS. Changed some values to percentages to help with page responsiveness
updated HTML to include SVG file for check box and styled the box
Styles input to move checkbox next to label
@AndrianaOS AndrianaOS changed the title London 9 - Andriana Saffo - HTML/CSS - Week 1 London 9 - Andriana Saffo - HTML/CSS - Week 1 & 2 Nov 9, 2022

@bazmurphy bazmurphy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here is some feedback and suggestions 😎

Comment thread css/style.css
width: 25px;
margin-left: 50px;
margin-top: 50px;
margin-bottom: 20px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if you want to make this 1 line instead of 3 you can use the shorthand:
margin: 50px 0 20px 50px;
[top right bottom left]

Comment thread store.css

footer {
text-align: center;
margin: 0 70px 0 70px;

@bazmurphy bazmurphy Nov 10, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

another shorthand:
margin: 0 70px;
[top/bottom left/right]

Comment thread store.html
<a href="store">Store</a>
<a href="blog">Blog</a>
<a href="help">Help</a>
<a href="login">Login</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

semantically: this navigation should be an unordered list of list items that contain anchors
this is helpful for accessibility

<ul>
  <li>
    <a>

Comment thread store.html
<img src="img/twitter-icon.svg" alt="twitter logo" class="smicon" />
<img src="img/facebook-icon.svg" alt="facebook logo" class="smicon" />
<img src="img/instagram-icon.svg" alt="instagram logo" class="smicon" />
</div>

@bazmurphy bazmurphy Nov 10, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

semantically: this div should instead be an unordered list of list items with anchor tags that wrap images (in that order)
(remember a div has no semantic meaning)
so for accessibility it is clearly understood that it is a list of external social media links

<ul>
  <li>
    <a>
      <img>

Comment thread store.css
}

.title-form {
flex-direction: column;

@bazmurphy bazmurphy Nov 10, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this is missing display: flex
because flex-direction: column on its own will not do anything to a container that has not been defined as a flexbox

Comment thread store.html Outdated
>
</div>

<button>Place my order</button>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Interesting to know:

When inside a <form> :
<input type="submit">Place my order</input>
Will create a button thats function is to submit the form

And also when inside a <form>
a single <button> with no defined type will default to "submit"

Whereas in this case:

<button type="submit">Submit</button>
<button type="reset">Reset</button>

If you have multiple buttons, it is important to explicitly name their type.

So yours would be:
<button type="submit">Place my order</button>

I know this does not apply in this case (because there is only a single button) but it is good to know for later on.

Comment thread css/style.css
}

button {
align-content: center;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

align-content is a property used to adjust flex/grid cells content horizontally/vertically
in order for this to work the element must also be declared as display: flex or display: grid
but the button is not currently a flex/grid container
maybe i am wrong, but i am assuming you are trying to center the button text with this?

Comment thread css/style.css
}

nav {
float: right;

@bazmurphy bazmurphy Nov 10, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i would recommend trying to make your <header> a flex box
and the <img> (logo) and the <nav> will be the flex children
then separate the flex children using justify-content: space-between to push them to either side of the page (the img to the left and the nav to the right)
you can then apply appropriate padding to flex parent
using float can be quite tricky and cause a lot of headaches and can start doing funky things in terms of page layout if you have multiple floated elements.

margin written in shorthand. button type added. More edits to come
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.

2 participants