Solved

<iframe> border color

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

821 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