Previous Message
Next Message

magicbox

Sent by noocx on 28 September 2003 22:10


On Sun, 28 Sep 2003 15:31:46 -0400
"Al Sparber" [EMAIL-REMOVED]> wrote:

> When all else fails, collapse your code:
> 
> <div id="container"><div id="box1">box1</div><div id="box2">box2</div></div>
> 
> 
> 
> Al Sparber - PVII
> http://www.projectseven.com
> Dreamweaver Extensions - DesignPacks - Tutorials - Books
> ---------------------------------------------------------------------
> The PVII Newsgroup | news://forums.projectseven.com/pviiwebdev
> The CSS Newsgroup | news://forums.projectseven.com/css
> ---------------------------------------------------------------------
> 
> 
> 
> ----- Original Message ----- 
> From: "noocx" [EMAIL-REMOVED]>
> To: [EMAIL-REMOVED]>
> Sent: Sunday, September 28, 2003 2:28 PM
> Subject: [css-d] magicbox
> 
> 
> > Hi all!
> >
> >
> > general.css:
> > -----------
> >
> > body {
> > margin: 0px;
> > }
> >
> > #container{
> > margin: 40px;
> > border: 2px solid #000000;
> > padding: 5px;
> > }
> >
> > #box1{
> > border: 2px solid #FF0000;
> > padding: 5px;
> > margin: 5px;
> > width: 4ex;
> > }
> >
> > #box2{
> > border: 2px solid #006600;
> > padding: 5px;
> > margin: 5px;
> > width: 4ex;
> > }
> >
> > ----------------------------------------
> >
> > index.php:
> > ---------
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> >
> > <!-- HEAD -->
> > <head>
> > <title>test</title>
> > <link rel="stylesheet" href="general.css" type="text/css">
> > </head>
> >
> > <!-- BODY -->
> > <body>
> >
> > <div id="container">
> > <div id="box1">box1</div>
> > <div id="box2">box2</div>
> > </div>
> >
> > </body>
> > </html>
> >
> > -----------------------------------------
> >
> >
> > My problem is the following:
> > Under ie6.0 box1 dont get margins, box2 got only the left margin,
> > in mozilla its working fine.
> 
> 
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
> 
> 
> 

Thx, the problem was the doctype, without url its seems ok.
But still problems there -> no top and bottom margins on box1 and box2.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: