Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arrow in jQuery Dialog

Is there any way by which I can show an arrow tip on left of jQuery dialog? I would like to achieve functionality as mentioned in image below. How to do this with Theme roller CSS and icons?

jQuery Dialog Customization http://www.freeimagehosting.net/uploads/74b51bb861.jpg

like image 896
Mayur Avatar asked Oct 15 '22 01:10

Mayur


1 Answers

UPDATE: I posted my first answer BEFORE the edit was made, indicating that arrow was to be placed in the body of the dialog, so here is my updated code:

var $mydialog = $('<div></div>').html('<div class="myArrow"></div>Your Dialog Content Here').dialog({autoOpen: false,title: 'Retrieving Product Details', modal:true, width:600, height:400, position:'center'});

The myArrow div has been moved to the main content div of the dialog, CSS could be something like:

.myArrow{
  display:block;
  position:absolute;
  width:15px;
  height:15px;
  left:-15px; /* pushes the arrow OUTSIDE the box */
  top:50px; /* or however far from the top you wish */
  background: url(path/to/arrow.jpg) center right no-repeat;
  margin:0 15px 0 0;
  }
like image 55
SimonDowdles Avatar answered Oct 20 '22 13:10

SimonDowdles