Reputation: 2462
Full Edit:
How can I wrap an jquery div with another div?
Sample: There is
this.vpath = $('<div/>', {
'class': 'rollbar-path-vertical'
});
inside of one jquery script...
Now I tried to use this:
$('.rollbar-path-vertical').wrapAll('<div class="path-fix" />');
To make that .rollbar-path-vertical inside of another div named .path-fix... What am i doing wrong? I am going crazy... Thanks for your nerves and time.
CSS:
.path-fix {
position: absolute;
width: 15px;
}
.rollbar-path-vertical {
right: 5px;
top: 0px;
height: 100%;
width: 15px;
position: fixed;
margin: 8px -5px;
border-radius: 0px;
}
Upvotes: 1
Views: 236
Reputation: 16157
EDIT:
Try removing position absolute from .path-fix And see if that gets you any closer.
.path-fix {
width:15px;
}
Upvotes: 1