For the past year, the multicolumn
css3 property has grown in popularity among different browsers. It's a good reason to consider implementing it on your website for improved design and readability. I decided to take it a step further and incorporate the elegant Drop Caps (=first large initial letter) into the multicolumn layout. However, some screen widths cause the multicolumn layout to break in FireFox. What could be causing this issue?
see jsfiddle DEMO
When adjusting the window width, you'll notice the layout issues persist in both IE and Firefox. Below is an example of the problem. I'm stuck trying to figure out what's causing these misalignments in the multicolumn setup!
Apologies for my unkempt appearance in the photo: I forgot to shave, as I've been engrossed in solving this problem all day without a chance to tidy up. I can assure you that once this issue is resolved, a clean-shaven portrait will replace this untrimmed one!
There are more alignment challenges across various screen widths in Internet Explorer 11. Interestingly, Safari and Chrome display the layout flawlessly across all browser screen sizes without any breaks.
#multicolumn {
column-count: 3;
-moz-column-count: 3;
-webkit-column-count: 3;
column-gap: 53px;
-moz-column-gap: 53px;
-webkit-column-gap: 53px;
column-rule-color: #EEE;
-moz-column-rule-color: #EEE;
-webkit-column-rule-color: #EEE;
column-rule-style: solid;
-moz-column-rule-style: solid;
-webkit-column-rule-style: solid;
column-rule-width: 1px;
-moz-column-rule-width: 1px;
-webkit-column-rule-width: 1px;
}
#multicolumn p:first-letter{
float:left;
font-weight:normal;
font-size:44px;
margin: 7px 1px 0px 0px;
line-height:27px;
background-color:#AEE;
}