Click here to Skip to main content
15,896,606 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What are your CSS practices? Pin
Mark_Wallace13-Aug-19 7:38
Mark_Wallace13-Aug-19 7:38 
GeneralRe: What are your CSS practices? Pin
Chris Maunder13-Aug-19 8:08
cofounderChris Maunder13-Aug-19 8:08 
GeneralRe: What are your CSS practices? Pin
Member 1453048014-Aug-19 11:58
Member 1453048014-Aug-19 11:58 
GeneralRe: What are your CSS practices? Pin
F-ES Sitecore13-Aug-19 5:10
professionalF-ES Sitecore13-Aug-19 5:10 
GeneralRe: What are your CSS practices? Pin
Chris C-B13-Aug-19 5:13
Chris C-B13-Aug-19 5:13 
GeneralRe: What are your CSS practices? Pin
W Balboos, GHB13-Aug-19 5:59
W Balboos, GHB13-Aug-19 5:59 
GeneralRe: What are your CSS practices? Pin
jgakenhe13-Aug-19 7:10
professionaljgakenhe13-Aug-19 7:10 
GeneralRe: What are your CSS practices? Pin
Jay Bardeleben14-Aug-19 4:10
professionalJay Bardeleben14-Aug-19 4:10 
Quote:
And for the CSS coding guidelines, I put everything on one line; I don't make it look like a programming function because CSS is not a programming language.

Ha, I do and I don't. Generally depends on the project I'm working on and the mood I'm in where CSS is concerned as to whether they get the "one-liner" treatment or not. But in most cases if I'm defining something that has only 1 - 3 attributes, say for basic <p>'s, then they get put on one line. But if I need something more complex, such as adding gradients or something that needs a lot of attributes, I don't put them on one line (the minifier can deal with that one) because it's simply easier on my eyes to see what I'm doing (classic example - styling stupid form elements... WTF | :WTF: )

CSS
p { ... }

form { ... }
...
input[type="blah"] {
  blah;
  blah;
  blaaaaaaah;
}
...

CSS can be a massive pain for sure, no one can ever deny that one (!!) and get way out of control all to easily, so I stick with a "standard" (more of a personal convention in reality) I've molded for myself over the years that works quite well for me and other's can easily grasp. Urg... haha.

Lately though I've been leaving it all to Bulma or Bootstrap and run the other way so I can do the actual work I need to do and deal with it after, not gonna lie
GeneralRe: What are your CSS practices? Pin
jgakenhe14-Aug-19 4:48
professionaljgakenhe14-Aug-19 4:48 
GeneralRe: What are your CSS practices? Pin
Chris Maunder13-Aug-19 8:15
cofounderChris Maunder13-Aug-19 8:15 
GeneralRe: What are your CSS practices? Pin
agolddog14-Aug-19 3:04
agolddog14-Aug-19 3:04 
GeneralRe: What are your CSS practices? Pin
englebart14-Aug-19 3:25
professionalenglebart14-Aug-19 3:25 
GeneralRe: What are your CSS practices? Pin
Chris Maunder14-Aug-19 3:30
cofounderChris Maunder14-Aug-19 3:30 
GeneralRe: What are your CSS practices? Pin
Jay Bardeleben14-Aug-19 4:15
professionalJay Bardeleben14-Aug-19 4:15 
GeneralRe: What are your CSS practices? Pin
Member 1409260513-Aug-19 20:59
Member 1409260513-Aug-19 20:59 
GeneralRe: What are your CSS practices? Pin
loctrice14-Aug-19 1:48
professionalloctrice14-Aug-19 1:48 
GeneralOh, you ... idiot. Pin
OriginalGriff13-Aug-19 1:53
mveOriginalGriff13-Aug-19 1:53 
GeneralRe: Oh, you ... idiot. Pin
Rage13-Aug-19 1:56
professionalRage13-Aug-19 1:56 
GeneralRe: Oh, you ... idiot. Pin
musefan13-Aug-19 2:04
musefan13-Aug-19 2:04 
GeneralRe: Oh, you ... idiot. Pin
#realJSOP13-Aug-19 2:17
professional#realJSOP13-Aug-19 2:17 
GeneralRe: Oh, you ... idiot. Pin
OriginalGriff13-Aug-19 2:21
mveOriginalGriff13-Aug-19 2:21 
GeneralRe: Oh, you ... idiot. Pin
Richard Deeming13-Aug-19 4:05
mveRichard Deeming13-Aug-19 4:05 
GeneralRe: Oh, you ... idiot. Pin
Member 1126470613-Aug-19 23:12
Member 1126470613-Aug-19 23:12 
GeneralRe: Oh, you ... idiot. Pin
glennPattonWork313-Aug-19 2:23
professionalglennPattonWork313-Aug-19 2:23 
GeneralRe: Oh, you ... idiot. Pin
OriginalGriff13-Aug-19 2:34
mveOriginalGriff13-Aug-19 2:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.