Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder donna1's Avatar
    Join Date
    Nov 2012
    Location
    london
    Posts
    99
    Thanks
    9
    Thanked 4 Times in 4 Posts

    iframe of website to get rid of border

    If theres a forum that has lots of adverts and stuff around the border, can I use a command to view it from my website but take the border off?
    Someone said theres an iframe command that does it

    Would that just allow me to view the forum or would i be able to interact with it.

    For sake of argument lets say the forum is 600 pixels wide, 500 high and has a border of 150 pixels at the top and 100 either side I want to remove?

  • #2
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    Code:
    <style type='text/css'>
    /* Fix the iframe */
    html, body, iframe, table, tr, td {margin: 0; padding: 0;}
    html, body, iframe, table, #content {height: 100%; width: 100%;}
    table {border-collapse: collapse;}
    iframe {border: 0;}
    
    /* I finished, cookie now?*/
    </style>
    
    </head>
    <body>
      <table>
        <tr><td id="content">
          <iframe src="http://www.example.com" />
        </td></tr>
      </table>
    This will fill a website into another website with border or padding.

    You can modify the code to make it more like what you want.

  • #3
    New Coder donna1's Avatar
    Join Date
    Nov 2012
    Location
    london
    Posts
    99
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Thanks but Im confused
    for starters whats the lines
    html, body, .... do?

    I thought commands like <html> and <body> had to be in < >


    also your code doesnt alter anything in the example I tried, do I need a crop type command to take the edges off?
    Last edited by donna1; 12-20-2012 at 08:23 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •