473,399 Members | 3,888 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,399 software developers and data experts.

IE6 doesnt extend the DIV box height so that float would be enclosedvisually by DIV

I have simple structure like:

<div>
<h3 style="text-align:center;">
<span style="float:right;">input type="image"/></span>
<span style="float:left;">input type="image"/></span>
boxes titlebar
</h3>
<div>
box content
</div>
</div>

The problem is the INPUT type=image's with their surrounding span's,
that hang over the bottom border of the H3 in MSIE6. As H3 is visually
boxes titlebar, H3 should extend its height acordingly to fit its
contents height and there should be nothing hanging out the area of
titlebar.

I am clueless how to set clearer properly. My attempts till so far
failed in Microsoft Internet Explorer 6. The file is 3.5KB big, includes
stylesheet and is fully validated as XHTML1.0 strict.

http://marekmand.kuubik.ee/test/uuri...tused-form.htm
From the various CSS tutorials I have read that it is exactly the
internet explorer that treats FLOAT things wrong and MISTAKENLY EXTENDS
the container element (without even neading clearer), so the container
element visually fully closes the float. However this is exacly here the
*OPPOSITE* what most of the CSS tutorials preach.

I use <br> element as clearer. However if I use <div> element as clearer
then the H3 text dissapears at all in MSIE6.

How could i build then a titlebar with some buttons on the left and some
on the right on "boxes titlebar" without using tables for layouting (put
input immages in cells aswall a the titlebar text)....?
Jul 21 '05 #1
2 6946
Marek Mänd wrote:
I use <br> element as clearer. However if I use <div> element as clearer
then the H3 text dissapears at all in MSIE6.


i used forecefully line-height set on H3 and it made the content to appear.
Jul 21 '05 #2
DU
Marek Mänd wrote:
I have simple structure like:

<div>
<h3 style="text-align:center;">
<span style="float:right;">input type="image"/></span>
Starting "<" missing; no src attribute specification defined for the
input type="image" and it is mandatory.
<span style="float:left;">input type="image"/></span>
boxes titlebar
</h3>
<div>
box content
</div>
</div>

The problem is the INPUT type=image's with their surrounding span's,
that hang over the bottom border of the H3 in MSIE6.
Have you thought of simply defining a css height declaration for the h3
element? It works for me with MSIE 6. No problem whatsoever.

As H3 is visually boxes titlebar, H3 should extend its height acordingly to fit its
contents height and there should be nothing hanging out the area of
titlebar.

I am clueless how to set clearer properly. My attempts till so far
failed in Microsoft Internet Explorer 6. The file is 3.5KB big, includes
stylesheet and is fully validated as XHTML1.0 strict.

http://marekmand.kuubik.ee/test/uuri...tused-form.htm


Definitively not a reduced testcase.
From the various CSS tutorials I have read that it is exactly the
internet explorer that treats FLOAT things wrong and MISTAKENLY EXTENDS
the container element (without even neading clearer),
I think you mean overflow: visible is not implemented in MSIE 6
according to the spec, which is true... MSIE 6 has a major bug regarding
overflow: visible.

so the container element visually fully closes the float. However this is exacly here the
*OPPOSITE* what most of the CSS tutorials preach.

I use <br> element as clearer. However if I use <div> element as clearer
then the H3 text dissapears at all in MSIE6.

How could i build then a titlebar with some buttons on the left and some
on the right on "boxes titlebar" without using tables for layouting (put
input immages in cells aswall a the titlebar text)....?


Just define a height for the h3 element according to the highest inline
element inside of it. That works appropriately.
Setting forecefully the line-height is not the same and is not my
recommendation.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.6 :)
Jul 21 '05 #3

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

Similar topics

2
by: gscott66 | last post by:
Hello, Any advice on how extend Left Nav Bar BG-color all the way down to the footer? This is my first attempt with pure css layout...no tables...and I am stuck with a background-color issue....
3
by: inkswamp | last post by:
I've been using CSS for quite a while now but I have yet to master its eccentricities. Here's something I recently ran across and if someone could explain why this happens, I would appreciate it. ...
4
by: Ivor Somerset | last post by:
Dear CSS community, The code below shows my problem. I have a containing DIV box into which I place floating boxes. As the background-color shows, the size of the containing box is not extended...
3
by: kent | last post by:
Hi, For the code below, only "aaa" has a red background but "bbb" and "ccc" don't have it: <div style="background: red">aaa <div style="float:left">bbb</div> <div...
1
by: mascouta | last post by:
I have a lot of problems with IE browser, one of them is described in this topic. in my website i have div Calculator with background image. it displayed perfectly with Firefox browser however in IE...
1
by: pravinnweb | last post by:
can anyone tell me how to set auto height to outer div that is in green box id "gray-background" it should increase relatively to inner div "smbox" here is the css and html code it should work in...
3
by: Gozil | last post by:
Hey guys, I can't get vertical-align:middle; to work in firefox, this is my current code: .commonFormText { width:200px; height:20px; float:left; background-color:#FFFFFF;...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
2
by: ziycon | last post by:
I have the below code, when a user clicks on the <a href="#" onclick="showhide('languages'); return false;">Language(<div id="current_lang">en</div>)</a> it shows a DIV that is hidden and when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
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,...
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...

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.