Frontend Development

Need help with css

Submitted by Carpesir, , Thread ID: 14177

Thread Closed

RE: Need help with css

This post was last modified: 12-02-2016, 08:50 PM by fdigl
#11
11-12-2015, 12:03 PM
Carpesir Wrote:
11-12-2015, 11:53 AM
Never Wrote:
11-12-2015, 09:59 AM
Carpesir Wrote:
11-12-2015, 12:35 AM
Never 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:
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.

Good luck with your code!

RE: Need help with css

#12
You need a edit the balise of you CSS and add : <body> (Example for Body)

RE: Need help with css

Warned
#13
Xxolivierxx you're crazy ? The autor would like hos edit css not how edit template.

RE: Need help with css

#14
Using the display method will fix it

Users browsing this thread: 6 Guest(s)