Click here to Skip to main content
15,898,987 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
W Balboos, GHB25-Jan-19 1:14
W Balboos, GHB25-Jan-19 1:14 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
Richard Deeming25-Jan-19 2:33
mveRichard Deeming25-Jan-19 2:33 
QuestionOne Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP10-Nov-17 2:04
professional#realJSOP10-Nov-17 2:04 
AnswerRe: One Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP11-Nov-17 11:16
professional#realJSOP11-Nov-17 11:16 
QuestionSys.WebForms.Res is undefined when javascript executed inside updatepanel Pin
Claudio Trenca8-Nov-17 4:38
professionalClaudio Trenca8-Nov-17 4:38 
QuestionMVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 1:59
professional#realJSOP7-Nov-17 1:59 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:22
mveRichard Deeming7-Nov-17 2:22 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:39
professional#realJSOP7-Nov-17 2:39 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:45
mveRichard Deeming7-Nov-17 2:45 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:47
professional#realJSOP7-Nov-17 2:47 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:53
mveRichard Deeming7-Nov-17 2:53 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 2:59
professional#realJSOP7-Nov-17 2:59 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 3:03
mveRichard Deeming7-Nov-17 3:03 
GeneralRe: MVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 3:01
professional#realJSOP7-Nov-17 3:01 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
aijaj hussain18-Nov-17 20:09
aijaj hussain18-Nov-17 20:09 
QuestionMVC5 checkbox size (RESOLVED - kinda) Pin
#realJSOP1-Nov-17 2:37
professional#realJSOP1-Nov-17 2:37 
AnswerRe: MVC5 checkbox size Pin
Richard Deeming2-Nov-17 5:53
mveRichard Deeming2-Nov-17 5:53 
In Chrome, Edge and IE11, setting the width and height seems to work:
Edit fiddle - JSFiddle[^]

In Firefox, that makes the input occupy a larger area, but leaves the box the same size.

Earlier browser versions also have problems. The simplest option is probably to create a custom checkbox element, as described on MDN:
Advanced styling for HTML forms - Learn web development | MDN[^]

But that can get quite fiddly, between changing the image sizes and the padding and positioning of the sprite.


Another option would be to use the transform[^] property to scale the element up:
Edit fiddle - JSFiddle[^]

But that then causes it to overlap the surrounding content, so you'd have to add margins to push the siblings out of the way:
Edit fiddle - JSFiddle[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: MVC5 checkbox size Pin
#realJSOP2-Nov-17 8:06
professional#realJSOP2-Nov-17 8:06 
AnswerRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 3:50
professional#realJSOP3-Nov-17 3:50 
SuggestionRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 5:07
mveRichard Deeming3-Nov-17 5:07 
GeneralRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 6:09
professional#realJSOP3-Nov-17 6:09 
GeneralRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 10:02
mveRichard Deeming3-Nov-17 10:02 
GeneralRe: MVC5 checkbox size Pin
#realJSOP3-Nov-17 6:12
professional#realJSOP3-Nov-17 6:12 
JokeRe: MVC5 checkbox size Pin
Richard Deeming3-Nov-17 10:03
mveRichard Deeming3-Nov-17 10:03 
GeneralRe: MVC5 checkbox size Pin
#realJSOP7-Nov-17 4:15
professional#realJSOP7-Nov-17 4:15 

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.