Forum Moderators: not2easy
You can see what I mean in firefox.
It will be very appreciate if you let me know the reasons
Thanks
<STYLE type="text/css">
#content {
width:853px;
background: #fff;
padding:0 28px;
border-bottom:11px solid #002D56;
border-left:11px solid #002D56;
border-right:11px solid #002D56;
}
#content .leftcol {
float: left;
width: 148px;
}
</style>
</head>
<body>
<div id="content">
<div class="leftcol">I am angry</div>
</div>
</body>
</html>
A way round this used to be to add a clearing DIV inside your #content div, after your floated items to specifically make the #content DIV contain the floated items. However, a better (CSS only) solution is to simply give your #content a overflow:hidden;
style.
Also, try adding a background-color to your .leftcol rule - simply to aid debugging. You should see that the style is being applied.