<iframe> border color

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
LVL 1
ch3rryb0mbAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
venkateshwarrConnect With a Mentor Commented:
<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
 
YZlatCommented:
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
 
YZlatCommented:
iframe {
border: 1px solid red;
height: 666px;
width: 100%;
padding: 0px;
}
0
 
ch3rryb0mbAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.