Solved

<iframe> border color

Posted on 2004-03-25
4
5,143 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
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 20 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now