473,382 Members | 1,563 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,382 software developers and data experts.

Div border not drawn around contents

I am trying to use a div with a border (class=info) to contain two other
divs.

http://www.etzchaimsharon.org/announcements.htm
http://www.etzchaimsharon.org/announcements.css

on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.

Any idea why this is happening?

Stuart Scharf
Dec 2 '05 #1
2 9653
Stuart Scharf wrote:
I am trying to use a div with a border (class=info) to contain two other
divs.
on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.


http://www.complexspiral.com/publica...aining-floats/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 2 '05 #2
David Dorward wrote:
Stuart Scharf wrote:

I am trying to use a div with a border (class=info) to contain two other
divs.
on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.

http://www.complexspiral.com/publica...aining-floats/


Thanks, I had forgotten that the contained div's were floats and what
that implied.

While playing, I noticed that if I set the containing div to
overflow=hidden (or anything other then visible) the border was
also correct, but I have no idea why that worked.

(I have since corrected the origional url by adding a clearing div)
Dec 5 '05 #3

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

Similar topics

1
by: Martin | last post by:
I'm using Python 2.3.3 on Win XP Pro. My program places a Canvas object on a parent Frame. The backgound color of both is set to 'white' and both have borderwidth set to zero. The Canvas is smaller...
0
by: Piet | last post by:
Hello, I am working on a graphical MySQL Frontend written in python/wxPython. The results from a table query are displayed either in a wxGrid or in a wxListCtrl. I would prefer the latter because...
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
3
by: Tim Bücker | last post by:
Hello. I have a question concerning the Graphics.DrawPath method. Where is the border drawn using a pen with the size of 3? It doesn´t seem that the border is drawn outside of the path (just a...
11
by: Michael Mayo | last post by:
I have a simple html page that contains an image in a single table cell, surrounded by a border: <http://www.softrains.com/lc/test.html>. I would like to eliminate the space between the table...
12
by: deko | last post by:
I'm trying to get a 1px border around the content section of this page: http://www.clearpointsystems.com As you will see, I have a header/nav bar (looks correct), but the border around the...
2
by: OceanBreeze | last post by:
Border drawn in C# Table programmatically even if several adjacent horizontal & vertical cells are empty in the table I want to programmatically have border on each and every row and column in the...
1
by: constantlearner | last post by:
I have the following code, which you can paste into an html file and try. In IE, a border appears around the selection box. How do I make the border around the selection box transparent, or have no...
1
by: MarwaAlSagheer | last post by:
Hi, I have form with Picture box and button. Flat appearance of button is flat and Border style of Picture box is none. Problem is when window lost focus, there are white border appear around...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.