This topic has 3 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #112531
     fersamp
    Participant

    Hi everyone,

    I’d need to make this two element (FB and Twitter page flows) with same height size:

    – The first one is generated trough

    <div id=”fb-root”></div>

    <script>// <![CDATA[

    (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.5”; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));

    // ]]></script>

    <div class=”fb-page” data-href=”https://www.facebook.com/Dayroma-1646627195611119&#8243; data-tabs=”timeline” data-width=”800″ data-height=”500″ data-small-header=”false” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true”></div>

    – The second one is generated trough:

    <a class=”twitter-timeline” href=”https://twitter.com/Day_Roma&#8221; data-widget-id=”710500239384440832″>Tweet di @Day_Roma</a>

    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?’http’:’https’;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+”://platform.twitter.com/widgets.js”;fjs.parentNode.insertBefore(js,fjs);}}(document,”script”,”twitter-wjs”);</script>

     

    I set the same height size for both in the respectively developer dashboard, so I don’t understand whay they aren’t the same height size.

    How can I set/force their height size to be the same?

     

    Thank you guys

     

    Attachments:
    You must be logged in to view attached files.
    #112859
     sharmstr
    Moderator

    Its because your fb widget is set to 500px and your twitter widget is set to 600px.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #113255
     fersamp
    Participant

    Sorry, but I set both to 600px height when I generated the code from developer console…

    #113258
     sharmstr
    Moderator

    The code you provided doesnt indicate that

    “<div class=”fb-page” data-href=”https://www.facebook.com/Dayroma-1646627195611119″ data-tabs=”timeline” data-width=”800″ data-height=”500″ data-small-header=”false” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true”>“

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?