Filed Under (General) by Wenbert on 19-06-2008
Yet another CSS post. The second one for today.
Cross-browser compatibility is one of the most time consuming tasks for any web designer. We’ve seen many different articles over the net describing common problems and fixes. I’ve collated all the information I could find to create some coding conventions for ensuring that your site will work first time in every browser. There are some things you should consider for Safari and Firefox also, and IE isn’t always the culprit for your CSS woes.
Filed Under (General) by Wenbert on 31-03-2008
Everyone should read this.
Filed Under (General) by Wenbert on 03-03-2008
Put this inside your form tags:
style="margin: 0pt; display: inline;"
//so it would be something like:
< form style="margin: 0pt; display: inline;"> Input boxes here…< / form >
Filed Under (General) by Wenbert on 15-10-2007
I accidentally stumbled on this article found at Agile AJAX. It talks about float-clearing, getting containers to honor the height of floated elements inside of them.
Here is a sample CSS code:
/* float clearing for IE6 */
* html
#container,
* html .classThatNeedsToBeCleared,
* html div.anotherClassThatNeedsToBeCleared,
* html
#someDiv .someClass .yetAnotherClassThatNeedsToBeCleared{
height:
1%;
overflow: visible;
}
/* float clearing for IE7 */
*+html #container,
*+html .classThatNeedsToBeCleared,
*+html div.anotherClassThatNeedsToBeCleared,
*+html #someDiv .someClass .yetAnotherClassThatNeedsToBeCleared{
min-height: 1%;
}
/* float clearing for everyone else */
#container:after,
.classThatNeedsToBeCleared:after,
div.anotherClassThatNeedsToBeCleared:after,
#someDiv .someClass .yetAnotherClassThatNeedsToBeCleared:after{
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}
<div id="container">
< div id="rail" style="float: left;">
< div id="content" style="float: left;">
</div>
Click here for the entire post.