1

I'm creating some dialog boxes using jQUery UI, but, the "close" button is too small in mobile devices. I need to resize only the close button.

1 Answer 1

3

I found this simple solution, using CSS:

<style> .ui-dialog-titlebar-close { width: 30px !important; height: 24px !important; top: 40% !important } </style> 

This way affect all the dialog boxes, which is the desired effect.

Sign up to request clarification or add additional context in comments.

2 Comments

TO avoid affecting this code to all other dialogs you should give your dialog <div> and id and give edit your css. And if you want the close button to appear bigger only on mobile devices thne you should make media css file that will load certain css codes when the screen resolution gets to a specified dimensions. By this way you would have a control on when to show bigger and smaller icon !
@RahulGupta my intended behavior was this, but your comment are valid. in my case, is ok to show a bigger close button on desktop computers :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.