Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4616174
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:56:40+00:00 2026-05-22T01:56:40+00:00

I have an XML file with the following relevant section <postText> <![CDATA[text <br> stuff<br

  • 0

I have an XML file with the following relevant section

<postText>
<![CDATA[text <br>
stuff<br />
<iframe width='560' height='349' src='http://www.youtube.com/embed/video'
 frameborder='0' marginheight='40px' allowfullscreen></iframe>]]>

</postText>

Using php simplexmlloader i am able to print this item however there is no space between the text and the top of the youtube video despite the
tags and the marginheightvariable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:56:41+00:00Added an answer on May 22, 2026 at 1:56 am

    My guess is, that you maybe misinterpreted the attribute marginheight.

    The marginheight attribute does not define the space between text <br>stuff<br /> and the <iframe>, but the space between the frame’s content and the frame’s top and bottom margin (i.e. inside the iframe).

    One way to have a vertical space between your text and the iframe element is to wrap the <iframe> in a <div> and define a margin-top for the <div>:

    <postText>
    <![CDATA[text <br>
    stuff<br /><div style="margin-top: 40px;">
    <iframe width='560' height='349' src='http://www.youtube.com/embed/video'
     frameborder='0' marginheight='40px' allowfullscreen></iframe></div>]]>
    </postText>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following contents in my XML file: <items> <item id=1><content><![CDATA[<p>string</p>]]></content></item> </items> I
I have the following text in xml file: <Config Builder=LP Wizard> <Libraries> <Library Name=XCAMSource/>
I have the xml file in the following format. <root> ... <start/> some text
i have xml file such as following. <?xml-stylesheet type='text/xsl' href='AdditionalLogInfo.xsl'?> <Logs> <Log TestName=EwireDepositTests Date=Oct
I have an XML file with the following line: <VALUE DECIMAL_VALUE=0.2725 UNIT_TYPE=percent/> I would
I have a XML file with the following data format: <net NetName=abc attr1=123 attr2=234
I have an xml file in the following format: <food> <desert> cake <desert> </food>
I have the following xml file: <xfa:data> <form1> <Page1> <Page2> <contractInfo> ... </contractInfo> <paymentInfo>
I have a large XML file which in the middle contains the following: <ArticleName>Article
I have a large xml file (approx. 10 MB) in following simple structure: <Errors>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.