473,412 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

floating DIVs causing H1 to disappear

I've created a page that will contain a the thumbnails of photos I took in
Beijing a couple of years back but since making each thumbnail <div> a
float: left the <h1> tag in the document disappears in IE. This does not
happen in Mozilla. Resizing the IE window sometimes makes the <h1> appear,
but I usually have to highlight the text to make it visible.

Here's the offending page:
http://marc.fearby.com/mfnewsite/beijing/day1.php

Does anybody know of a fix for this bug?

I really wanted to keep my new site <table> free :-(

Thanks heaps.
Jul 20 '05 #1
5 3173
"Frostillicus" <fr**********@iinetnilspamos.net.au> wrote in
news:3f**********************@freenews.iinet.net.a u:
I've created a page that will contain a the thumbnails of photos I
took in Beijing a couple of years back but since making each thumbnail
<div> a float: left the <h1> tag in the document disappears in IE.
This does not happen in Mozilla. Resizing the IE window sometimes
makes the <h1> appear, but I usually have to highlight the text to
make it visible.

Here's the offending page:
http://marc.fearby.com/mfnewsite/beijing/day1.php


I can't make it happen in IE6. You might want to do a Google search on
"peekaboo bug"; IE has a problem that can hide sections under some
circumstances, and you may have been running into it.
Jul 20 '05 #2
> I can't make it happen in IE6. You might want to do a Google search on
"peekaboo bug"; IE has a problem that can hide sections under some
circumstances, and you may have been running into it.


Actually, after submitting this post I couldn't get the bug to occur in IE 6
on http://marc.fearby.com but I could reproduce it when viewing it on my own
PC as http://localhost - very weird.

Anyway, I found the fix for this "peekaboo bug" here:

http://www.positioniseverything.net/.../peekaboo.html

In short, I just added this to my stylesheet:

/* Hides from IE-mac \*/
* html .floatholder {height: 1%;}
/* End hide from IE-mac */

Thanks heaps :-)
Jul 20 '05 #3
Frostillicus wrote:
Actually, after submitting this post I couldn't get the bug to occur
in IE 6 on http://marc.fearby.com but I could reproduce it when
viewing it on my own PC as http://localhost - very weird.

Anyway, I found the fix for this "peekaboo bug" here:

http://www.positioniseverything.net/.../peekaboo.html

In short, I just added this to my stylesheet:

/* Hides from IE-mac \*/ * html .floatholder {height: 1%;} /* End
hide from IE-mac */

Thanks heaps :-)


I'm so glad I read this group now :-))

Just got around to learning html, though I've meant to for years. Was
finally pushed into it as it's part of a course I'm doing atm, for which
I had to create a small site. While researching, I discovered CSS &
after seeing Eric Meyer's home site in particular, thought I've got to
use this stuff.

I'm a little worried as CSS wasn't part of the module, so I could get
smacked down, but what the hell - it looks & functions much better, I think.

Anyhow, the only serious problem I've had with it was vanishing text
under IE 6, on the only two pages which contained floated divs...

Reading this thread implies I must have hit this problem. Will try the
fix in a mo'. It's too late for my submitted version (which I can't
alter until it's marked), but I'll update my local copy now.

Thanks :)

BTW If anyone's interested, the site's at
http://osiris.sunderland.ac.uk/~cd2mro/

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #4
Frostillicus wrote:

In short, I just added this to my stylesheet:

/* Hides from IE-mac \*/
* html .floatholder {height: 1%;}
/* End hide from IE-mac */


You can also hide from IE/Mac with certain import statements.

/* this import statement will not be read by Netscape 4 or MSIE 4 */
@import "ns4hide.css" ;

/* this import statement will not be read by IE 5.x/Mac */
@import url("ie5machide.css") ;

--
Brian
follow the directions in my address to email me

Jul 20 '05 #5
Brian wrote:

You can also hide from IE/Mac with certain import statements.


....or with media rules
<URL:http://centricle.com/ref/css/filters/>

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.
Jul 20 '05 #6

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

Similar topics

1
by: George Hester | last post by:
At the time this suggestion was made I didn't have the wherewithall to even attempt it. But over time I learned enough to make a stab at it. Let just say the foating DIV had to provide the same...
3
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that...
0
by: Olly | last post by:
I am using the following pure css layout with a header and footer: http://www.fu2k.org/alex/css/layouts/3Col_NN4_FMFM.mhtml The left column floats to the left of the main content (middle...
18
by: day | last post by:
I know I've seen this issue described before, but I can't find it, or the solution now that I need it. I have some css-specified floating divs that contain images or text. The text divs have a...
1
by: bryanrite | last post by:
I have two floating divs within a 100% width container div. In IE when you resize the window to the point where the text should wrap, it wraps and extends the height of the container div. In...
5
by: tlyczko | last post by:
Hello, I've searched on toggling divs and didn't really find what I was looking for, I saved a bunch of different threads. I have a form with several different text boxes for things like dates,...
1
by: StevePBurgess | last post by:
I have a website which, on the main page, has two floating divs. One contains a list of navigation menu items and the other is themain content of the page. Occasionally that div that contains...
7
by: massic80 | last post by:
Hi everybody! I'm making a page for an exam at uni. In two DIV blocks of it there should appear (and disappear) some "icons", due to XML messages, so I dunno how many of them should I can obtain;...
4
by: tbirnseth | last post by:
I'm having trouble between IE and FF. For once, IE behaves as I would expect, but FF doesn't. Basically I have a container with two floating DIVs in it. One floats left and the other right. I then...
4
dlite922
by: dlite922 | last post by:
This is just barely above my head when it comes to css. I have a div that needs to contain rows of floating divs, but I need each row not to wrap on to the next one and continue to go right. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.