Code Order


#1


Is there a specific order when writing a long code? Like a rule that tells us what comes after what?

h1 {
background: #05A8AA;
color: #FFF;
font-family: 'Oswald', sans-serif;
font-size: 40px;
font-weight: 300;
line-height: 40px;
margin: 0 auto;
padding: 20px;
position: relative;
text-transform: uppercase;
top: 130px;
width: 70%;
}

In these lines of code, does the order of elements matter?


Replace this line with your code.


#2

Short answer - no the order does not matter.

However, it is good practice to organised your code. Check out this link.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.