.CSS Extra [Trick]

by donscream - 19-10-2015, 05:31 PM
Novice
Posts:
26
Joined:
Oct 2015
Likes:
0
Credits:
13
Reputation:
0
1 Year of Service
#1
OP
Posted: 19-10-2015, 05:31 PM
Some times you see
Code:
// text here

You see in a .css ( // ) that means it is text with explaining what it does or a remember that developers know easy how or what to do.

Well if you don't need to edit it anymore then you just can delete is.....
Code:
// Example text
body{background-color:#d0e4fe;}
h1{color:orange;text-align:center;}
p{font-family:"Times New Roman";font-size:20px;}

So removing it will be just like this.
Code:
body{background-color:#d0e4fe;}
h1{color:orange;text-align:center;}
p{font-family:"Times New Roman";font-size:20px;}
Active Member
Prime
Posts:
272
Joined:
Sep 2015
Likes:
5
Credits:
188
Reputation:
4
1 Year of Service
#2
Posted: 20-10-2015, 09:23 AM
I didn't understand exactly what you mean, would you explain in more detail.
­
Paradigm
Posts:
8,674
Joined:
Apr 2015
Likes:
573
Credits:
19,011
Reputation:
123
Temp. Semi Admin
2 Years of Service
#3
Posted: 20-10-2015, 03:07 PM
// This is a comment

It's not really CSS, it's just text that you can freely write, and it doesn't affect the code.
fdigl
Momento Mori
https://u.nya.is/llaqpj.jpg

Send an email: faded@nulledbb.com
vittu
Posts:
576
Joined:
Jan 2015
Likes:
34
Credits:
796
Reputation:
33
2 Years of Service
#4
Posted: 21-10-2015, 08:58 PM
Another - A bit cooler version to comment :yay:
[Image: abC7LCk.png]
Closed Account
Posts:
138
Joined:
Oct 2015
Likes:
1
Credits:
43
Reputation:
5
1 Year of Service
#5
Posted: 21-10-2015, 09:00 PM
I don't think that commenting your CSS is necessary but everyone's opinion is different in this case thanks eitherway!
vittu
Posts:
576
Joined:
Jan 2015
Likes:
34
Credits:
796
Reputation:
33
2 Years of Service
#6
Posted: 21-10-2015, 09:03 PM
(21-10-2015, 09:00 PM)Dreadzone Wrote: I don't think that commenting your CSS is necessary but everyone's opinion is different in this case thanks eitherway!

Will get useful when you don't want to use a part of code, i.e you want to create a responsive web page without two different css files :yus:
Dreadzone
21-10-2015, 09:04 PM
Closed Account
Posts:
138
Joined:
Oct 2015
Likes:
1
Credits:
43
Reputation:
5
1 Year of Service
#7
Posted: 21-10-2015, 09:04 PM
(21-10-2015, 09:03 PM)Aeux Wrote:
(21-10-2015, 09:00 PM)Dreadzone Wrote: I don't think that commenting your CSS is necessary but everyone's opinion is different in this case thanks eitherway!

Will get useful when you don't want to use a part of code, i.e you want to create a responsive web page without two different css files  :yus:

You're right and I won't argue on that, thanks eitherway it's really usefull for people who are good with this [ I'm not that good ;c ]
vittu
Posts:
576
Joined:
Jan 2015
Likes:
34
Credits:
796
Reputation:
33
2 Years of Service
#8
Posted: 21-10-2015, 09:06 PM
(21-10-2015, 09:04 PM)Dreadzone Wrote:
(21-10-2015, 09:03 PM)Aeux Wrote:
(21-10-2015, 09:00 PM)Dreadzone Wrote: I don't think that commenting your CSS is necessary but everyone's opinion is different in this case thanks eitherway!

Will get useful when you don't want to use a part of code, i.e you want to create a responsive web page without two different css files  :yus:

You're right and I won't argue on that, thanks eitherway it's really usefull for people who are good with this [ I'm not that good ;c ]

Haha, cool :hurr:
Just keep on coding and you'll get in pretty easily. :yus:
Dreadzone
21-10-2015, 09:08 PM
@Believer rocks
Prime
Posts:
1,250
Joined:
May 2015
Likes:
40
Credits:
-1,091
Reputation:
36
1 Year of Service
#9
Posted: 21-10-2015, 09:08 PM
Since when is // valid in css? Rly people? omg :fp:
Closed Account
Posts:
138
Joined:
Oct 2015
Likes:
1
Credits:
43
Reputation:
5
1 Year of Service
#10
Posted: 21-10-2015, 09:11 PM
(21-10-2015, 09:08 PM)Kill Wrote: Since when is // valid in css? Rly people? omg :fp:

Don't have much knowledge when it comes to CSS but I think that it's been there for a while now ( Or since today ). But I won't argue about that because that's far beyond my knowlegdge plus that I've never used it. 
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)