Click here to Skip to main content
15,891,704 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.

 
AnswerRe: Thought of the Day Pin
megaadam13-Aug-19 5:27
professionalmegaadam13-Aug-19 5:27 
GeneralRe: Thought of the Day Pin
littleGreenDude13-Aug-19 5:28
littleGreenDude13-Aug-19 5:28 
GeneralRe: Thought of the Day Pin
W Balboos, GHB13-Aug-19 5:47
W Balboos, GHB13-Aug-19 5:47 
GeneralRe: Thought of the Day Pin
Mark_Wallace13-Aug-19 6:30
Mark_Wallace13-Aug-19 6:30 
GeneralRe: Thought of the Day Pin
Ravi Bhavnani13-Aug-19 6:55
professionalRavi Bhavnani13-Aug-19 6:55 
GeneralRe: Thought of the Day Pin
CodeZombie6215-Aug-19 4:04
CodeZombie6215-Aug-19 4:04 
GeneralRe: Thought of the Day Pin
DerekT-P15-Aug-19 10:14
professionalDerekT-P15-Aug-19 10:14 
GeneralWhat are your CSS practices? Pin
Marc Clifton13-Aug-19 3:56
mvaMarc Clifton13-Aug-19 3:56 
Specifically, I sometimes break out the CSS to represent specific style attributes, used like this:

<table class='noborders fixed fill'>

and sometimes I lump a bunch of attributes into on CSS, used like this:

<textarea class='taeditor'>

and sometimes its a mishmash, used like this:

<div class='preview h100p'>

The only rhyme or reason is that some CSS styles are reused, like "h100p" (height 100% if you want to know), and some are specific to the container.

Obviously, I could create a style for each tag that contains all the style attributes, but that rather blows CSS re-use out of the water.

So what do you do? Do you have any guidelines you live but won't die by?

And while we're at it, how often do you actually use the "C" part of CSS -- cascading? I've come to avoid that aspect like the plague because as soon as I change something in the layout, the cascading element/class/id structure changes, and I have to go back and fix the CSS. The rare exception is when the container and its children need to always be moved as a unit. You're experience?

GeneralRe: What are your CSS practices? Pin
PIEBALDconsult13-Aug-19 4:00
mvePIEBALDconsult13-Aug-19 4:00 
GeneralRe: What are your CSS practices? Pin
ZurdoDev13-Aug-19 4:08
professionalZurdoDev13-Aug-19 4:08 
GeneralRe: What are your CSS practices? Pin
Slacker00713-Aug-19 4:12
professionalSlacker00713-Aug-19 4:12 
GeneralRe: What are your CSS practices? Pin
Mike Hankey13-Aug-19 4:16
mveMike Hankey13-Aug-19 4:16 
GeneralRe: What are your CSS practices? Pin
musefan13-Aug-19 4:24
musefan13-Aug-19 4:24 
GeneralRe: What are your CSS practices? Pin
Marc Clifton13-Aug-19 4:32
mvaMarc Clifton13-Aug-19 4:32 
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 
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 

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.