Click here to Skip to main content
14,356,442 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: Thought of the Day Pin
CodeZombie6215-Aug-19 5:04
memberCodeZombie6215-Aug-19 5:04 
GeneralRe: Thought of the Day Pin
DerekT-P15-Aug-19 11:14
professionalDerekT-P15-Aug-19 11:14 
GeneralWhat are your CSS practices? Pin
Marc Clifton13-Aug-19 4:56
protectorMarc Clifton13-Aug-19 4:56 
GeneralRe: What are your CSS practices? Pin
PIEBALDconsult13-Aug-19 5:00
protectorPIEBALDconsult13-Aug-19 5:00 
GeneralRe: What are your CSS practices? Pin
ZurdoDev13-Aug-19 5:08
professionalZurdoDev13-Aug-19 5:08 
GeneralRe: What are your CSS practices? Pin
Slacker00713-Aug-19 5:12
professionalSlacker00713-Aug-19 5:12 
GeneralRe: What are your CSS practices? Pin
Mike Hankey13-Aug-19 5:16
professionalMike Hankey13-Aug-19 5:16 
GeneralRe: What are your CSS practices? PinPopular
musefan13-Aug-19 5:24
membermusefan13-Aug-19 5:24 
I generally try to break the application up into sections and then write the css to match. For example an application might have a "main menu", "main page", "edit page". Then the CSS can be like:

div.main-menu {
}

div.main-menu a {
}

div.main-menu div.sub-menu {
}

div.main-menu div.sub-menu a {
}


It starts out well, and works for the most part, but with larger applications it quickly gets messy and it's too easy to change something by mistake.

The truth is, I find CSS to be a massive headache to keep organised, and I am surprise Visual Studio have never added better tools for managing a CSS file or at least try to encourage a specific standard.

The bottom line is, I don't think anybody really knows how it's supposed to be done. We just make do and hope nobody asks for too many changes! Laugh | :laugh:
GeneralRe: What are your CSS practices? Pin
Marc Clifton13-Aug-19 5:32
protectorMarc Clifton13-Aug-19 5:32 
GeneralRe: What are your CSS practices? Pin
Mark_Wallace13-Aug-19 8:38
memberMark_Wallace13-Aug-19 8:38 
GeneralRe: What are your CSS practices? Pin
Chris Maunder13-Aug-19 9:08
adminChris Maunder13-Aug-19 9:08 
GeneralRe: What are your CSS practices? Pin
Member 1453048014-Aug-19 12:58
memberMember 1453048014-Aug-19 12:58 
GeneralRe: What are your CSS practices? Pin
F-ES Sitecore13-Aug-19 6:10
mveF-ES Sitecore13-Aug-19 6:10 
GeneralRe: What are your CSS practices? Pin
Chris C-B13-Aug-19 6:13
memberChris C-B13-Aug-19 6:13 
GeneralRe: What are your CSS practices? Pin
W Balboos13-Aug-19 6:59
mveW Balboos13-Aug-19 6:59 
GeneralRe: What are your CSS practices? Pin
jgakenhe13-Aug-19 8:10
professionaljgakenhe13-Aug-19 8:10 
GeneralRe: What are your CSS practices? Pin
Jay Bardeleben14-Aug-19 5:10
professionalJay Bardeleben14-Aug-19 5:10 
GeneralRe: What are your CSS practices? Pin
jgakenhe14-Aug-19 5:48
professionaljgakenhe14-Aug-19 5:48 
GeneralRe: What are your CSS practices? Pin
Chris Maunder13-Aug-19 9:15
adminChris Maunder13-Aug-19 9:15 
GeneralRe: What are your CSS practices? Pin
agolddog14-Aug-19 4:04
memberagolddog14-Aug-19 4:04 
GeneralRe: What are your CSS practices? Pin
englebart14-Aug-19 4:25
memberenglebart14-Aug-19 4:25 
GeneralRe: What are your CSS practices? Pin
Chris Maunder14-Aug-19 4:30
adminChris Maunder14-Aug-19 4:30 
GeneralRe: What are your CSS practices? Pin
Jay Bardeleben14-Aug-19 5:15
professionalJay Bardeleben14-Aug-19 5:15 
GeneralRe: What are your CSS practices? Pin
Member 1409260513-Aug-19 21:59
memberMember 1409260513-Aug-19 21:59 
GeneralRe: What are your CSS practices? Pin
loctrice14-Aug-19 2:48
professionalloctrice14-Aug-19 2:48 

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.