473,320 Members | 2,054 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,320 software developers and data experts.

Collapsing empty DIVs on IE/Mac

Odo

Hi,

my Problem is that I want to use an empty div with 20pix height as a
seperator.
With Firefox and Safari everything is fine. But IE/Mac do not display
the height,
instead there is only a thin line.

The Code is realy simple at the moment just 2 divs. One is my header,
the other is my
seperator.

HTML:
<div id="header"><img src="logo.jpg"/></div>
<div id="seperator"></div>

CSS:
#header {
width: 100%;
}

#seperator {
float:bottom;
width: 100%;
height: 15px;
border-top: 5px solid white;
border-bottom: 20px solid white;
background-color: #333333;

}

What`s my problem ?
--
Odo
------------------------------------------------------------------------
Odo's Profile: http://www.highdots.com/forums/m556
View this thread: http://www.highdots.com/forums/t2616563

Aug 9 '05 #1
3 2262
Odo <Od********@no-mx.forums.yourdomain.com.au> wrote:
With Firefox and Safari everything is fine. But IE/Mac do not display
the height, instead there is only a thin line.


IE/Mac is a grossly deficient browser and hardly used anymore. Unless
you have an unusual high percentage of clients that use it, forget about
IE/Mac.

--
Spartanicus
Aug 9 '05 #2
Odo wrote:
Hi,

my Problem is that I want to use an empty div with 20pix height as a
seperator. ... But IE/Mac do not display the height, <div id="seperator"></div> .... #seperator { .... What`s my problem ?


IE/Mac has a built-in spell checker? :-)

(It is "separator.")
--
-bts
-This space intentionally couldn't resist this joke.
Aug 9 '05 #3
Odo wrote:

my Problem is that I want to use an empty div with 20pix height as a
seperator.
But IE/Mac do not display the height,

<div id="seperator"></div>


MacIE ignores empty elements. Add some white space and it should do what
you want. For example:

<div id="seperator">
</div>

BTW, if you plan to use this element multiple places, it should be a
class rather than an id. You might want to fix the spelling on it, too. ;)

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Aug 9 '05 #4

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

Similar topics

0
by: Spartanicus | last post by:
I've been caught out by what I thought was an Opera 7.5p1 issue: http://www.spartanicus.utvinternet.ie/test/opera7.5p1_css_background_image_issue.htm but as was pointed out to me this is actually...
4
by: Aaron | last post by:
I have the following divs: <div style="background-image: url(images/house_01.jpg); width: 249px; height: 346px;"></div> <div style="background-image: url(images/house_02.jpg); width: 251px;...
2
by: D. Alvarado | last post by:
Hello I have 5 divs, and initially the lower 4 are hidden. I would like everything beneath the 5th div to appear flush against the first visible div. But right now, there is a gap of white...
4
by: Jeremy Epstein | last post by:
Hi guys, I've got a page that shows a number of packages available for sale. Each package has a little description, and then a (sometimes long) list of features for each package. I thought it...
5
by: Borris | last post by:
<div style="background-color: blue; width: 500px; height: 300px"> <div style="background-color: red; margin-top: 100px; margin-left: 100px; width: 300px; height: 100px"> </div> </div> Where...
2
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
1
by: yb | last post by:
Hi, I'm looking for clarification of css 2.1 specification in section 8.3.1 "Collapsing Margins" The 6th bullet reads "If the top and bottom margins of a box are adjoining ..." I won't paste...
6
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. ...
5
by: SlowArrow | last post by:
Here collapsing seems to work differently in vb.net 2005 from that I use to see in vb.net 2003: Using the collapsing in vb.net 2003 shows the whole interface of the methods, subroutines,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.