eMoneySpace
Welcome, Guest. Please login or register.
Did you miss your activation email?
News: Earn your money online safely here at eMoneySpace. Sep 25, 2022 02:36 pm




About CSS sheets
Print
Author Topic: About CSS sheets  (Read 2199 times)
a2dor07
Reputation: (+1)
*

Offline

Posts: 223
Referrals: 0


What we do in life, echoes in eternity!

View Profile
Sep 06, 2014 04:48 pm

I am new in the web design industry, but I have not quite found an answer to this question.

Is it best to run multiple style sheets, each one with a part of the web design, or just one main style sheet for everything?

What is the impact on the website? Is it a difference in any way, pros/cons?

Thanks in advance! thumbs up
Logged

zoro-kun
Reputation: (+2)
*

Offline

Gender: Male
Posts: 56
Referrals: 0


nakama ka?

View Profile
Reply #1: Sep 07, 2014 02:02 am

most of the time 1 is enuf
Logged

shipu
Reputation: (+26)
*

Offline

Gender: Male
Posts: 3727
Referrals: 1


View Profile WWW
Reply #2: Sep 07, 2014 02:56 am

I am new in the web design industry, but I have not quite found an answer to this question.

Is it best to run multiple style sheets, each one with a part of the web design, or just one main style sheet for everything?

What is the impact on the website? Is it a difference in any way, pros/cons?

Thanks in advance! thumbs up
It might impact loading time(a little).
Logged

JustClick
Reputation: (+60)
*

Offline

Posts: 5800
Referrals: 1


View Profile WWW
Reply #3: Sep 07, 2014 09:36 am

If u are having good brain then try to code like this

.someclass {background-color:#056123;color:#fff;text-decoration:none;float:right;}

instead of this

.someclass {
background-color:#056123;
color:#fff;
text-decoration:none;
float:right;
}


it reduces unnecessary spaces and reduce size of css. Also instead of using so many css for not getting confuse u can use MARKERS in same css file to distinguish your codes for understanding.
Logged

a2dor07
Reputation: (+1)
*

Offline

Posts: 223
Referrals: 0


What we do in life, echoes in eternity!

View Profile
Reply #4: Sep 07, 2014 02:24 pm

If u are having good brain then try to code like this

.someclass {background-color:#056123;color:#fff;text-decoration:none;float:right;}

instead of this

.someclass {
background-color:#056123;
color:#fff;
text-decoration:none;
float:right;
}


it reduces unnecessary spaces and reduce size of css. Also instead of using so many css for not getting confuse u can use MARKERS in same css file to distinguish your codes for understanding.

Yeah it's a nice and clean way to code in the first variant above. I was having doubts about the multiple style sheet use, had found some info that was claiming the best way to go with is with 2-3 style sheets ...

It's always good to have some more opinions to guide you. Thanks
Logged

Print
 
Jump to:  
Copyright © 2008-2022 eMoneySpace. All rights reserved.