473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to remove Iframe border?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3.  
  4. <h2>HTML Iframes</h2>
  5. <iframe src="https://www.foo.com" height="200" width="500"></iframe>
  6.  
  7. </body>
  8. </html>
Jul 3 '19 #1
6 4455
gits
5,390 Expert Mod 4TB
you can use the css border property for that
Jul 3 '19 #2
AjayGohil
83 64KB
try this css for remove border
Expand|Select|Wrap|Line Numbers
  1. iframe
  2. {
  3.     border: 0;
  4. }
Jul 10 '19 #3
Add the frameBorder attribute (note the capital ‘B’).

So it would look like:

Expand|Select|Wrap|Line Numbers
  1. <iframe src="myURL" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>
Aug 13 '19 #4
gits
5,390 Expert Mod 4TB
the capital B in the frameborder attribute is not needed nor is it standard compliant. html attribute's names are usually all lower case. its even good practice to not use that at all and handle any styling of elements with css.
Aug 13 '19 #5
Expand|Select|Wrap|Line Numbers
  1. <iframe src="URL" width="300" height="300" frameBorder="0">Not working.</iframe>
Sep 9 '19 #6
gits
5,390 Expert Mod 4TB
what exactly is not working with the shown code?
Sep 9 '19 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Roberto | last post by:
Hi everyone, I'm new here... I have a frameset header/contents. It's necessary to force the header's scrollbar to be visible to preserve the alignment between the two frames (see...
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
1
by: Armin Gajda | last post by:
Hi, I have the following problem: An input field get a border assigned by a style class (e.g. 2px solid red). When the field gets the focus, we set the border to green. element.style.border...
21
by: Russell Hoover | last post by:
I want to make sure that no border (around a specific small "blog-button" image) ever appears in FF or IE, or any other browswer. I couldn't seem do it with xhtml, so I reverted to border="0" ...
12
by: coolminded | last post by:
plz urgent help needed i have one data grid in the form. i have to export the data from the datagrid to the word. i just exported the data in MS word into a table. but i want to remove the table...
1
by: Leoa | last post by:
Hi There, I made a popup window with createpopup(). The window has a frame border around it that is grey. I can't seem to find the code that would not allow the frame of the popup to show. ...
1
kamill
by: kamill | last post by:
I have built a site in php and it's all pages got infected by iframe malware. how to get rid from this?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.