How to Move an iframe in HTML: What’s the Best Way to Reposition It?

18 Replies, 1953 Views

Hey! I feel you on the drag-and-drop thing. Honestly, I’ve been using jQuery UI’s draggable() for moving iframes around when I need that functionality. It’s not pure HTML/CSS, but it’s a lifesaver if you’re okay with adding a bit of JS.

Here’s a quick example:
```javascript
$("#your-iframe").draggable();
```
Works like a charm!

Messages In This Thread



Users browsing this thread: 1 Guest(s)