moss2076
01-05-2008, 10:12 AM
I have used the css .clearfix trick on two divs which werent clearing a floated element.
It works great in web browsers, but as im designing my site in Dreamweaver CS3 the fix doesnt render or show in Dreamweavers Design View.
The fix is -
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {display:inline-block;}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
Does anyone know a way to make Dreamweaver Design View show the clearfix? Previously I was just using <br style="clear:both"> after the two divs to make them clear and this method displayed fine in Dreamweaver and as the clearing problem only affects two divs I may just go back to it. Surely a well designed site should look right in all browsers AND dreamweaver?
Also, using the clearfix trick fails Dreamweavers cross-browser compatability check, whereas using a few <br style="clear:both"> instead passes the check fine.
Are there any better alternatives to Dreamweaver? I do like DW's built in uploading of files, templates, in-built validation functions etc
It works great in web browsers, but as im designing my site in Dreamweaver CS3 the fix doesnt render or show in Dreamweavers Design View.
The fix is -
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {display:inline-block;}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
Does anyone know a way to make Dreamweaver Design View show the clearfix? Previously I was just using <br style="clear:both"> after the two divs to make them clear and this method displayed fine in Dreamweaver and as the clearing problem only affects two divs I may just go back to it. Surely a well designed site should look right in all browsers AND dreamweaver?
Also, using the clearfix trick fails Dreamweavers cross-browser compatability check, whereas using a few <br style="clear:both"> instead passes the check fine.
Are there any better alternatives to Dreamweaver? I do like DW's built in uploading of files, templates, in-built validation functions etc