Frontend Development

Need help with css

Submitted by Carpesir, , Thread ID: 14177

Thread Closed

RE: Need help with css

fdigl
the actual smol girl ?
Õ░åµØÑÒü«Þ¿╝õ║║
Level:
3
Reputation:
253
Posts:
3.44K
Likes:
651
Credits:
3.7K
12-02-2016, 08:49 PM
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

xxOlivierxx
Closed Account
Level:
0
Reputation:
0
Posts:
16
Likes:
0
Credits:
21
12-02-2016, 08:52 PM
#12
You need a edit the balise of you CSS and add : <body> (Example for Body)

RE: Need help with css

Timmy
Novice
Level:
0
Reputation:
0
Posts:
23
Likes:
1
Credits:
33
13-02-2016, 01:59 AM
Warned
#13
Xxolivierxx you're crazy ? The autor would like hos edit css not how edit template.

RE: Need help with css

Exper123
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
1
19-08-2017, 10:25 PM
#14
Using the display method will fix it

Users browsing this thread: 1 Guest(s)