Title: HTML CODE Element
Last modified: June 23, 2021

---

# HTML CODE Element

 *  [samimikawi](https://wordpress.org/support/users/samimikawi/)
 * (@samimikawi)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/html-code-element/)
 * I have this code I place it in my website for reservation :
 *     ```
       <iframe src="https://www.sevenrooms.com/reservations/puerto99dubai" width="100%" height="800" style="border:1px solid black;">
       </iframe>
       ```
   
 * but when I open it on tablet I can’t have different size as it is fixed but I
   want an example to have it on tablets for height=”622″ and on desktop height=”
   800″
 * anyone can help me with this , will be really appreciate it.
    -  This topic was modified 4 years, 11 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/html-code-element/#post-14588152)
 * This is a bad idea.
    Just use CSS to adjust the margins for the device – it’s
   straight-forward.
 * Like this:
    [https://www.benmarshall.me/responsive-iframes/](https://www.benmarshall.me/responsive-iframes/)
   [https://css-tricks.com/snippets/jquery/fit-iframe-to-content/](https://css-tricks.com/snippets/jquery/fit-iframe-to-content/)
 * Theres even a generator to do this for you:
    [https://www.benmarshall.me/responsive-iframe-generator/](https://www.benmarshall.me/responsive-iframe-generator/)
 *  Thread Starter [samimikawi](https://wordpress.org/support/users/samimikawi/)
 * (@samimikawi)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/html-code-element/#post-14588334)
 * hi sorry, but didn’t work with me it was looking good on browser but when open
   on tablet same issue

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML CODE Element’ is closed to new replies.

## Tags

 * [html code](https://wordpress.org/support/topic-tag/html-code/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [samimikawi](https://wordpress.org/support/users/samimikawi/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/html-code-element/#post-14588334)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
