Click here to Skip to main content
16,016,227 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralWhen a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
PIEBALDconsult28-Jul-24 17:10
mvePIEBALDconsult28-Jul-24 17:10 
GeneralRe: When a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
RickZeeland28-Jul-24 21:12
mveRickZeeland28-Jul-24 21:12 
GeneralRe: When a UI designer chooses to use a numeric up/down when a checkbox would make more sense Pin
Mike Hankey29-Aug-24 4:34
mveMike Hankey29-Aug-24 4:34 
GeneralCSS & Sophocles, more related than you know Pin
raddevus22-Jul-24 12:22
mvaraddevus22-Jul-24 12:22 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon22-Jul-24 14:19
professionalJeremy Falcon22-Jul-24 14:19 
GeneralRe: CSS & Sophocles, more related than you know Pin
raddevus23-Jul-24 2:44
mvaraddevus23-Jul-24 2:44 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 6:47
professionalJeremy Falcon23-Jul-24 6:47 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 7:02
professionalJeremy Falcon23-Jul-24 7:02 
Just checked the fiddle again and there was a tiny bug in it with the hidden style. If the dialog tag is supported then most browsers apply an automatic user agent style to it. So, forgot to add padding and margin resets in the class.

This fixes it: Clickety. So should work if you apply the hidden class to either the popup or the main tag.

It's worth noting this isn't an modal or modeless overlay dialog anymore, but quite literately replaces the main content while still allowing for having a nav bar up top. If it were an overlay that just covered the whole thing (drop shadow etc.) then absolute positioning is the way to go. But, IMO overlays don't look nearly as modern as this does.
Jeremy Falcon


modified 23-Jul-24 15:27pm.

GeneralRe: CSS & Sophocles, more related than you know Pin
raddevus23-Jul-24 7:16
mvaraddevus23-Jul-24 7:16 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 9:13
professionalJeremy Falcon23-Jul-24 9:13 
GeneralRe: CSS & Sophocles, more related than you know Pin
RickZeeland22-Jul-24 19:13
mveRickZeeland22-Jul-24 19:13 
AnswerRe: CSS & Sophocles, more related than you know Pin
raddevus23-Jul-24 2:43
mvaraddevus23-Jul-24 2:43 
GeneralRe: CSS & Sophocles, more related than you know Pin
Jeremy Falcon23-Jul-24 6:50
professionalJeremy Falcon23-Jul-24 6:50 
JokeRe: CSS & Sophocles, more related than you know Pin
Peter_in_278022-Jul-24 20:27
professionalPeter_in_278022-Jul-24 20:27 
GeneralRe: CSS & Sophocles, more related than you know Pin
TNCaver23-Jul-24 10:22
TNCaver23-Jul-24 10:22 
GeneralRe: CSS & Sophocles, more related than you know PinPopular
Richard Deeming23-Jul-24 21:25
mveRichard Deeming23-Jul-24 21:25 
GeneralRe: CSS & Sophocles, more related than you know Pin
TNCaver24-Jul-24 4:09
TNCaver24-Jul-24 4:09 
GeneralLinux C PreProcessor: Who Knew? Pin
raddevus4-Jul-24 6:26
mvaraddevus4-Jul-24 6:26 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
trønderen4-Jul-24 8:22
trønderen4-Jul-24 8:22 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
Jalapeno Bob4-Jul-24 9:46
professionalJalapeno Bob4-Jul-24 9:46 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
raddevus4-Jul-24 10:14
mvaraddevus4-Jul-24 10:14 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
Dave Kreskowiak4-Jul-24 9:37
mveDave Kreskowiak4-Jul-24 9:37 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
raddevus4-Jul-24 10:16
mvaraddevus4-Jul-24 10:16 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
k50549-Jul-24 3:51
mvek50549-Jul-24 3:51 
GeneralRe: Linux C PreProcessor: Who Knew? Pin
raddevus9-Jul-24 4:51
mvaraddevus9-Jul-24 4:51 

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.