11-12-2015, 12:03 PMCarpesir Wrote:11-12-2015, 11:53 AMNever Wrote:11-12-2015, 09:59 AMCarpesir Wrote:11-12-2015, 12:35 AMNever Wrote: that css is so messy oh my god
Also:
display:block on #boxlink
Should be removed.
Works then.
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:
Is alot less messy if you ask me.Code:html element {
background color: #fff;
border: 1 px solid black;
etc..
}
Next thing {
....
}
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.
Good luck with your code!