473,799 Members | 3,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Overflow Hidden not hiding in IE

I'm trying to set up a page with a static block on the left and
variable on the right, it works as expected, but when i add an image,
or google ad, in firefox it behaves as expected, but IE drops the div.
Anyone have any ideas?

http://footstops.dev01.alkaloid.net/test.php

Any help would be greatly appreciated!

May 8 '06 #1
3 2299
br*******@gmail .com wrote:
I'm trying to set up a page with a static block on the left and
variable on the right, it works as expected, but when i add an image,
or google ad, in firefox it behaves as expected, but IE drops the div.
Anyone have any ideas?

http://footstops.dev01.alkaloid.net/test.php

Any help would be greatly appreciated!


Where to begin?

Almost all of your CSS is named wrong.
Where you have .body take out the .
You don't have a class="body" you are, in fact, trying to modify the
body tag. So just body will do.

Your second div down has a class="body clearfix"
change this to "clearfix"
--
ironcorona
May 8 '06 #2
ironcorona wrote:
Where to begin?

Almost all of your CSS is named wrong.
Where you have .body take out the .
You don't have a class="body" you are, in fact, trying to modify the
body tag. So just body will do.

Your second div down has a class="body clearfix"
change this to "clearfix"


Like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style media="screen" title="Main CSS" type="text/css">
/* CSS Document */
..page_wrap {
margin: 2px;
padding: 2px;
border: 1px solid gray;
}

/* Rest of it */
..clearfix:afte r {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
..clearfix { height: 1%; }
body {
border: 1px solid green;
clear: both;
margin: 2px;
padding: 2px;
}
/* Ad divs */
..bannerAd {
margin-left: 360px;
border: 1px dashed blue;
padding: 2px;
margin: 0;
text-align: center;
margin: 0 auto;
overflow: hidden;
}
body #map {
float: left;
width: 350px;
height: 300px;
border: 1px dashed green;
}
body #userBlock {
margin-left: 360px;
border: 1px dashed blue;
padding: 2px;
margin: 0;
}
body #blog {
margin-left: 360px;
border: 1px dashed red;
padding: 2px;
margin: 4px 0;
}
</style>
</head>
<body>
<div class="page_wra p">
<div class="clearfix ">
<div id="map"></div>
<div id="userBlock"> <p>Top</p></div>

<div class="bannerAd ">
<script type="text/javascript"><!--
google_ad_clien t = "pub-804040308289458 3";
google_ad_width = 468;
google_ad_heigh t = 60;
google_ad_forma t = "468x60_as" ;
google_ad_type = "text_image ";
google_ad_chann el ="";
google_color_bo rder = "475470";
google_color_bg = "E6E6E6";
google_color_li nk = "002E3F";
google_color_ur l = "CC0000";
google_color_te xt = "003366";
//--></script>
<script type="text/javascript"
src="http://pagead2.googles yndication.com/pagead/show_ads.js">
</script>
</div>
<div id="blog"><p>Bo ttom</p></div>
</div>
</div>
</body>

</html>

--
ironcorona
May 8 '06 #3
sorry, this is a very dumbed down version of a more complex page, i've
removed all extraneous css and html. Thanks again for your quick
response tho!

May 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
4838
by: Andrew Fedoniouk | last post by:
I have a simple test document which produce the following in Mozilla and Opera: http://terrainformatica.com/w3/p2/problem1.png Internet Explorer behaves as per recommendation (I guess) Did I miss something and width of paragraph can be set less than its content (without overflow specification)? Document is here: http://terrainformatica.com/w3/p2/problem1.htm
5
14665
by: Charles Blaquière | last post by:
As part of my explorations in liquid design, I'm exploring ways to use the overflow: hidden property -- when browser windows become too narrow, I want (some) images to get cropped rather than have the layout break up. In some cases, losing parts of images can be an interesting option. http://www.hebig.org/blog/titlepic.php was the first example I found, and it's quite nifty. His image works well when progressively cropped from the right,...
6
19411
by: Kai Grossjohann | last post by:
I have a frame which is supposed to contain a list of links. The clickable area of each link comprises a picture followed by some text. I want the text to be cut at the right hand side when the user resizes the frame to be "too narrow". Right now, the source for that frame looks like this: <table border="1" width="100%"> <tr style="background-color:#C0C0C0">
6
8890
by: Sander Tekelenburg | last post by:
While working on <http://www.lotzofmusic.com/> I ran into some issues with overflow (the decorative fishes). It seems to me the construction is sound, yet Safari ignores the overflow:hidden. At first glance it appeared that this is related to the fact that the SPANs contain only a background image and have a defined width & height, but no: I put up a simplified test-case at <http://santek.no-ip.org/~st/tests/CSS/overflow_hidden.php>,...
5
6900
by: Christopher Night | last post by:
I'm making a Javascript program that uses overflow:hidden on a containing div to crop an image. This page (temporarily) shows an example of what I mean: http://www.people.fas.harvard.edu/~night/crossroads/ The relevant markup is: <div style="overflow:hidden; width: 238px; height:47px; border: thin yellow solid;">
2
2759
by: lexor | last post by:
Hi! I'm struggling with a strange IE behavior regarding tables. I have a table like the following one <table cellpadding="0" cellspacing="0" border="1" width="500"> <tr> <td><div style="overflow:hidden;width: 355px;">Header1</div></td> <td><div style="overflow:hidden;width: 100px;">Header2</div></td> <td><div style="width: 100%;overflow:hidden;">Header3</div></td> </tr>
2
15569
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has display of table, the first inner div has display of table-cell and the inner-most div has the text. The outer div has a set width and height. So here's the problem: Without the inner divs having a width and height set, the overflow:hidden doesn't...
4
2869
by: zzpat | last post by:
I have a box element that uses overflow: hidden and I want a link which at the bottom of the element to be visible. I can't make the link visible. Obviously I'm having problems so I was wondering if there's anything other than overflow : hidden that will give me an absolute 'height' and make the link visible. Pat
2
4793
by: Randall | last post by:
I am trying to create an filled rectangle using the div tag that is 5 pixels high. It appears to be taller than 5 pixels unless I use the OVERFLOW: HIDDEN attribute. Since the DIV is empty, why do I need the overflow attribute? HTML to follow shows two divs that are identical except for the overflow attribute. The one with the overflow attribute appears the way I expect, but the other one does not.
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.