Oct 8, 2019 09:23 PM
(This post was last modified: Oct 8, 2019 10:27 PM by craigOwnsYou.)
So I try this HTML document I have been working on as presented in the video:
And here's the CSS code:
Could someone please point out why it doesn't link properly to the CSS code? I really need help with this. I googled it and got someone else who asked and got an answer someone gave to that guy who asked and that person's answer didn't work.
I can't figure out why my CSS code just doesn't quite link.
Why isn't my code linking!? It makes no sense!!!
I fixed it!!!
Part of the css link was wrong.
Code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Amazon Checkout</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="type/css" href="styling.css">
</head>
<body>
<form>
[b]<!--[/b]
<label for="address">Address:</label>
<input type="text" name="address" id="address" placeholder="Address" size="30px" maxlength="100">
<br />
<label for="postcode">Postcode:</label>
<input type="text" name="postcode" id="postcode" placeholder="Postcode" size="30px" maxlength="100">
<br />
<label for="city">City:</label>
<input type="text" name="city" id="city" placeholder="City" size="30px" maxlength="100">
<p>Choose your shipping method:</p>
<select name="shipping" id="shipping">
<option value="Free super saver shipping">Free super saver shipping</option>
<option value="Two-Day shipping">Two-Day shipping</option>
<option value="One-Day shipping">One-Day shipping</option>
</select>
<p>Choose your payment method:</p>
<label>Paypal<input type="radio" name="payment" value="paypal"></label>
<label>Debit Card<input type="radio" name="payment" value="debit card"></label>
<label>Credit Card<input type="radio" name="payment" value="credit card"></label>
<br />
<label for="comments">Comments:</label>
<textarea rows="4" cols="40" name="comments" id="comments"></textarea>
<br />
<label>Sign me up for email updates<input type="checkbox" name="email updates" checked="checked"></label>
<br />
<label>Securely save my payment details<input type="checkbox" name="save payment" checked="checked"></label>
<br />
<input type="submit" value="Submit">
-->
<div class="container">
A
</div>
<div class="submit">
B
</div>
</form>
</body>
</html>And here's the CSS code:
Code
* {
box-sizing: border-box;
}
body, html {
margin: 0;
padding: 0;
}
form {
display: flex;
flex-direction: column;
height: 100vh;
padding: 10px;
}
.container {
background-color: greenyellow;
}
.submit {
background-color: darkred;
margin-top:auto;
}Could someone please point out why it doesn't link properly to the CSS code? I really need help with this. I googled it and got someone else who asked and got an answer someone gave to that guy who asked and that person's answer didn't work.
I can't figure out why my CSS code just doesn't quite link.
Why isn't my code linking!? It makes no sense!!!
I fixed it!!!
Part of the css link was wrong.


![[Image: fpZ5a5g.png]](https://i.imgur.com/fpZ5a5g.png)
![[Image: KphILgT.png]](https://i.imgur.com/KphILgT.png)

