I am pretty new to HTML/CSS, any tips especially for this code to make it less messy?
Also, thanks a lot! It really fixed it (:
I guess it comes down to preference, I learned to write it like this:
Code:
html element { background color: #fff; border: 1 px solid black; etc.. }
Next thing { .... }
Is alot less messy if you ask me.
True it's less messy, but it makes the code really long :c
Yes, but it's for readability purposes, so you and other devs can understand it easily. If you REALLY want short code (and possible performance optimization), consider using a code minifier for yourCSS, HTML, and/orJS files. You can also unminify them with these tools, I believe.