Click here to Skip to main content
14,363,089 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
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 
Firstly, I make it a point to put nearly all formatting in CSS. This will make all the pages look similar. Too many times over the years, the web page style would change depending on the programmer. If I'm working with someone that is not strong in CSS, I tell them to just use divs and do not add any styling; I'll do it.

I typically have a Main (parent) CSS document and then it's children, based upon its function. In the Main, the basic structure of the web pages, fonts, size, and other selectors that will be reused. For the children CSS documents such as a sidebar, formatted tables for tabular data, printing, and even colors I have separate. Having all colors separate allows me to easily create themes and plug style such as a sidebar or tabular data when needed. And yes, I do use multiple selectors for HTML attributes; such as:
<div class="content theme p8 mt50 b red"></div>
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.
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? PinPopular
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 
GeneralOh, you ... idiot. Pin
OriginalGriff13-Aug-19 2:53
protectorOriginalGriff13-Aug-19 2:53 
GeneralRe: Oh, you ... idiot. Pin
Rage13-Aug-19 2:56
professionalRage13-Aug-19 2:56 
GeneralRe: Oh, you ... idiot. Pin
musefan13-Aug-19 3:04
membermusefan13-Aug-19 3:04 
GeneralRe: Oh, you ... idiot. Pin
#realJSOP13-Aug-19 3:17
mve#realJSOP13-Aug-19 3:17 
GeneralRe: Oh, you ... idiot. Pin
OriginalGriff13-Aug-19 3:21
protectorOriginalGriff13-Aug-19 3:21 
GeneralRe: Oh, you ... idiot. Pin
Richard Deeming13-Aug-19 5:05
mveRichard Deeming13-Aug-19 5:05 
GeneralRe: Oh, you ... idiot. Pin
Member 1126470614-Aug-19 0:12
memberMember 1126470614-Aug-19 0:12 
GeneralRe: Oh, you ... idiot. Pin
glennPattonWork13-Aug-19 3:23
professionalglennPattonWork13-Aug-19 3:23 

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.