Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
iFrame overlapping table border
Old 03-16-2008, 06:04 PM iFrame overlapping table border
Junior Talker

Posts: 3
Name: 2gig
Trades: 0
This isn't the first time I've used iFrames, but it is the first time I'm using one in conjunction with a CSS Style Sheet. I didn't think this would be an issue, but apparently it is. When I remove my CSS stylesheet the iFrame stays within the table even when i have the height coded into the HTML to be 100%.

Also, theres a strange little glitch with my page that only occurs in FireFox. Theres a lot of space at the bottom, for no apparent reason.

Sorry if I posted this in the wrong place. Yes my issue involves CSS, but the key problem is the iFrame, and iFrame is an HTML tag which is why I figured it belonged here.

HTML of my site
Quote:
<head>

<title>Information Technology High School</title>
<link rel="stylesheet" type="text/css" href="default.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<div class="mainpage" align="center">
<table class="maintable" width="800" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="banner.gif" width="796" alt="Information Technology High School" />
<table class="innertable" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top">

<div class="menu">
<script type="text/javascript" src="menu.js"></script>
</div>
</td>
<td width="650" height="100%" valign="top">
<iframe id="mainframe" class="mainframe" src="index2.html" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td>
</tr>

</table>
</td>
</tr>
</table>
</div>
</body>
</html>
CSS Stylesheet
Quote:
body
{
background-color:#EEEEEE;
margin-bottom: 0px;
}

a
{
color: #000000;
text-decoration: none;
}

a:hover
{
color: #000000;
text-decoration: underline;
}

table.maintable
{
height: 98%;
border-width:2;
border-color:#000000;
border-style:solid;
background-color:#FFFFFF;
padding: 0px;
}

table.innertable
{
border-width: 0px;
height:100%;
}

div.menu
{
padding-top:5px;
width:150px;
height:100%;
overflow: hide;
}

table.menutable
{
border-bottom-width:2px;
border-bottom-style:solid;
border-top-width:2px;
border-top-style:solid;
border-right-width:2px;
border-right-style:solid;
}

div.menucategory
{
font-weight: bold;
text-indent: 1px;
border-bottom-width:1px;
border-bottom-style:solid;
text-align: left;
}

div.menulink
{
color: black;
text-decoration: none;
text-indent: 5px;
text-align: left;
}

td.menulink:hover
{
background-color:E0E0E0;
}

iframe.mainframe
{
width:100%;
height:100%;
}

Last edited by outermon; 03-16-2008 at 06:19 PM..
outermon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2008, 08:16 PM Re: iFrame overlapping table border
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The big question, WHY are you using an iFrame at all ? They are generally NOT a good idea for many reasons.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-17-2008, 09:04 AM Re: iFrame overlapping table border
Junior Talker

Posts: 3
Name: 2gig
Trades: 0
I like the way iFrames make pages simple. The only issue is getting the iframe to work, but once that's covered, they make everything else really easy. iFrames worked wonders on the old webpage I did for my school (ithsnyc.org) and I designed that one in two days (I was asked to design it about a week before school started). Now I want to make a better one, for reasons you should be able to see just by looking at it. It may be somewhat ugly, but it functions very well, and the reason its ugly has nothing to do with the iframe.
outermon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to iFrame overlapping table border
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60215 seconds with 12 queries