?
Solved

<iframe> border color

Posted on 2004-03-25
4
Medium Priority
?
5,181 Views
Last Modified: 2012-06-27
I feel dumb even asking this question, and i know there must be a simple answet but i've tried everything i can think of and i just cant seem to figure it out

how do you change the border color on an <iframe> ?????

feeling dumb,
char
0
Comment
Question by:ch3rryb0mb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 80 total points
ID: 10675193
<iframe src="http://www.google.com" style="border:1px #FF0033 solid;" name="frame1" scrolling="yes" frameborder="yes" align="center" height = "300px" width = "300px">
</iframe>

http://htmlbasix.com/iframe.shtml

venkat
0
 
LVL 35

Expert Comment

by:YZlat
ID: 10676509
you can also use javascript or css:

<script type="text/javascript">
window.onload = function() {
document.getElementByID('myiframe').contentWindow.document.body.style.border-color = red;
document.getElementByID('myiframe').contentWindow.document.body.style.border=1;

}
</script>

or

iframe {
border: solid 1px red;
height: 666px;
width: 100%;
padding: 0px;
}
0
 
LVL 35

Expert Comment

by:YZlat
ID: 10676544
iframe {
border: 1px solid red;
height: 666px;
width: 100%;
padding: 0px;
}
0
 
LVL 1

Author Comment

by:ch3rryb0mb
ID: 10682666
thanks to both of you i knew there had to be a way to do it

sry YZlat, i'll go for quick and simple everytime, but thanks just the same
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question