Solved

<iframe> border color

Posted on 2004-03-25
4
5,165 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 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 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