Click here to Skip to main content
14,268,557 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
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
memberlittleGreenDude13-Aug-19 5:28 
GeneralRe: Thought of the Day Pin
W Balboos13-Aug-19 5:47
mveW Balboos13-Aug-19 5:47 
GeneralRe: Thought of the Day Pin
Mark_Wallace13-Aug-19 6:30
memberMark_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
memberCodeZombie6215-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
protectorMarc 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
protectorPIEBALDconsult13-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
professionalMike Hankey13-Aug-19 4:16 
GeneralRe: What are your CSS practices? PinPopular
musefan13-Aug-19 4:24
membermusefan13-Aug-19 4:24 
GeneralRe: What are your CSS practices? Pin
Marc Clifton13-Aug-19 4:32
protectorMarc Clifton13-Aug-19 4:32 
GeneralRe: What are your CSS practices? Pin
Mark_Wallace13-Aug-19 7:38
memberMark_Wallace13-Aug-19 7:38 
GeneralRe: What are your CSS practices? Pin
Chris Maunder13-Aug-19 8:08
adminChris Maunder13-Aug-19 8:08 
GeneralRe: What are your CSS practices? Pin
Member 1453048014-Aug-19 11:58
memberMember 1453048014-Aug-19 11:58 
GeneralRe: What are your CSS practices? Pin
F-ES Sitecore13-Aug-19 5:10
mveF-ES Sitecore13-Aug-19 5:10 
GeneralRe: What are your CSS practices? Pin
Chris C-B13-Aug-19 5:13
memberChris C-B13-Aug-19 5:13 
GeneralRe: What are your CSS practices? Pin
W Balboos13-Aug-19 5:59
mveW Balboos13-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
adminChris Maunder13-Aug-19 8:15 
GeneralRe: What are your CSS practices? Pin
agolddog14-Aug-19 3:04
memberagolddog14-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.