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.

CSS Forum


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



Reply
Old 06-12-2007, 12:25 PM Overlap in IE
Novice Talker

Posts: 10
Name: mark
Trades: 0
I have a site with a two column layout. everything is fine in firefox and opera and almost IE.

the two columns are inside another div so that i can have a border around them both. however, if the content in the right side is longer than the left side it runs below the border.

it does not do this vise versa and it does not run past the footer. it still pushes the footer down to the right spot, however it runs over/past the bottom border.

any help would be great.
mmecca is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-12-2007, 12:39 PM Re: Overlap in IE
Skilled Talker

Posts: 62
Trades: 0
html
<div class="container clearfix">
<div class="floatedbox">
<p>floated box</p>
</div>
<h3>Container 1</h3>
<p>(<em>without</em> easy clearing)</p>
</div>

css
.container {
padding:1em;
background-color:#eee;
border:3px solid #ddd;
}
.floatedbox {
float:left;
width:125px;
height:125px;
margin-right:1em;
padding:0 10px;
background-color:#fff;
border:3px solid #bbb;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hides from IE-mac \*/
* html .clearfix { height:1%; }
/* End hide from IE-mac */



that should work , its from pro css techniques

good book ,buy it
jameslow is offline
Reply With Quote
View Public Profile
 
Old 06-12-2007, 02:40 PM Re: Overlap in IE
Novice Talker

Posts: 10
Name: mark
Trades: 0
thanks for the help. works fine now.
mmecca is offline
Reply With Quote
View Public Profile
 
Old 06-12-2007, 04:09 PM Re: Overlap in IE
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
/* Hides from IE-mac \*/
* html .clearfix { height:1%; }
/* End hide from IE-mac */
First of all, I wouldn't even bother with this, IE Mac is DEAD. Don't waste any sweat on it.

Second, the *html hack will throw IE 7 into fits, so you definitely do NOT want it in your main CSS file. If you MUST use it, use Conditional comments and put that hack into a separate css file that you call from the conditional comment.

The problem you describe, just so you understand, is that your must CLEAR your floats. You can read more on the whys and wherefores here:
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
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
 
Reply     « Reply to Overlap in IE
 

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