Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-19-2012, 09:22 PM   PM User | #1
donna1
New Coder

 
Join Date: Nov 2012
Location: london
Posts: 55
Thanks: 5
Thanked 1 Time in 1 Post
donna1 can only hope to improve
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?
donna1 is offline   Reply With Quote
Old 12-19-2012, 09:39 PM   PM User | #2
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
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.
tempz is offline   Reply With Quote
Old 12-20-2012, 07:00 AM   PM User | #3
donna1
New Coder

 
Join Date: Nov 2012
Location: london
Posts: 55
Thanks: 5
Thanked 1 Time in 1 Post
donna1 can only hope to improve
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 07:23 AM..
donna1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:12 PM.


Advertisement
Log in to turn off these ads.