user2712489
user2712489

Reputation: 11

How do I place an iframe and a div side by side?

beginner HTMLer here. trying to do an edit for the churches website. we use a dacast stream and chatwing one over top of the over

I want to place them side by side. HELP.

Upvotes: 1

Views: 2651

Answers (1)

user2712640
user2712640

Reputation: 31

You will definitely need to use CSS in order to do this correctly. If you are unfamiliar with CSS as a beginner, you must look it up to be effective.

In HTML:

<div id="wrapper">
    <div>Content</div>
    <iframe src="urlhere"></iframe>
</div>

And your CSS:

#wrapper div, iframe {
    float: left;
}

But if you cannot use CSS, than you can use a table. This method is not recommended.

<table>
    <tr>
    <td><div>Content</div></td>
    <td><iframe src="dacast"></iframe></td>
    </tr>
</table>

Upvotes: 1

Related Questions