-
Notifications
You must be signed in to change notification settings - Fork 1
styling
Steven Steiner edited this page Feb 17, 2021
·
1 revision
Indent by 2 space at a time
<ul>
<li>Fantastic
<li>Great
</ul>
Use 3 character hexadecimal notmation where possible
color: #ebc;
Use HTTPS for embedded resources where possible
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min js"></script>
Use only lowercase
color: #e5e5e5;
When quoting attributes values, use double quotation marks "" rather than single quotes ''.
<a class="maia-button maia-button-secondary">Sign in</a>
Omit leading "0"s in values
font-size: .8em;
Use a space after a property name's colon
h3 {
font-weight: bold;
}
Separate rules by new lines, Always put a blank line (two line breaks) between rules
html {
background: #fff;
}
body {
margin: auto;
width: 50%;
}
Use single '' rather than double "" for attribute selection and property values
@import url(https://www.google.com/css/maia.css);
html {
font-family: 'open sans', arial, sans-serif;
}