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 gets rid of my left CSS block
Old 10-02-2007, 09:39 PM iframe gets rid of my left CSS block
Junior Talker

Posts: 1
Trades: 0
Everything works fine, until I put in the iframe code in test2.html. If you take it out, you'll see the navigation box to the left. With it in, you see it disappear.

style.css
Code:
body

{

background-color: black;

margin:0;

padding:0;

line-height: 1;

}



A:link 

{    FONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none}

A:active 

{    FONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none}

A:visited 

{    FONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none}

A:hover 

{    FONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: underline}



#topsection

{

background-color: black;

color: rgb(19,211,1);

height: 50px;

}



#topsection h1

{

margin: 0;

padding-top: 15px;

}



#contentwrapper

{

float: left;

width: 100%;

}



#contentcolumn

{

margin-left: 210px;

background: rgb(128,128,64);

}



#leftcolumn

{

float: left;

width: 200px;

margin-left: -100%;

background: rgb(19,211,1);

}



#footer

{

clear: left;

width: 100%;

background: black;

color: #FFF;

text-align: center;

padding: 4px 0;

}



#footer a

{

color: #FFFF80;

}



.innertube

{

margin: 10px;

margin-top: 0;

}
test2.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>XHTML/CSS Test</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="style.css" />
</head>

<body>
    <div id="maincontainer">

    <div id="topsection"><div class="innertube"><h1>Warlocks Cove</h1></div></div>

<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube">

<iframe src="intro.htm" height="200" width="200" frameborder="0" />

<br />
<br />
</div>
</div>
</div>

<div id="leftcolumn">
<div class="innertube">

<b>Portfolio Portal</b><br />
<a href="index.html">News</a><br />
<a href="about.html">About</a><br />
<a href="contact.html">Contact</a><br /><br />

<b>Computer Programs</b><br />
<a href="computer/guessthenumber.html">Guess the Number</a><br />
<a href="computer/zombiedefense.html">Zombie Defense</a><br />
</div>

</div>

<div id="footer">    <a href="http://validator.w3.org/check?uri=referer">
                <img src="http://www.w3.org/Icons/valid-xhtml10-blue"
                alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
            </a>
</div>

</div>
</body>
</html>
CodeStalker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-02-2007, 10:09 PM Re: iframe gets rid of my left CSS block
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
it doesn't look like you closed your iframe tag: </iframe>. That might fix it.
Also, in your css, you have line-height:1....you probably should declare a unit (em, px, pt).
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to iframe gets rid of my left CSS block
 

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 1.19984 seconds with 12 queries