HTML colspan in CSS

There’s no simple, elegant CSS analog for colspan. Searches on this very issue will return a variety of solutions that include a bevy of alternatives, including absolute positioning, sizing, along with a similar variety of browser- and circumstance-specific caveats. Read, and make the best informed decision you can based on what you find.

@Media min-width & max-width

I’ve found the best method is to write your default CSS for the older browsers, as older browsers (including IE 5.5, 6, 7 and 8) can’t read @media. When I use @media, I use it like this: <style type=”text/css”> /* default styles here for older browsers. I tend to go for a 600px – 960px … Read more

CSS to set A4 paper size

I looked into this a bit more and the actual problem seems to be with assigning initial to page width under the print media rule. It seems like in Chrome width: initial on the .page element results in scaling of the page content if no specific length value is defined for width on any of … Read more

Bootstrap 3 modal vertical position center

.modal { text-align: center; } @media screen and (min-width: 768px) { .modal:before { display: inline-block; vertical-align: middle; content: ” “; height: 100%; } } .modal-dialog { display: inline-block; text-align: left; vertical-align: middle; } And adjust a little bit .fade class to make sure it appears out of the top border of window, instead of center

How to float 3 divs side by side using CSS?

Just give them a width and float: left;, here’s an example: <div style=”width: 500px;”> <div style=”float: left; width: 200px;”>Left Stuff</div> <div style=”float: left; width: 100px;”>Middle Stuff</div> <div style=”float: left; width: 200px;”>Right Stuff</div> <br style=”clear: left;” /> </div>

CSS3 Transparency + Gradient

Yes. You can use rgba in both webkit and moz gradient declarations: /* webkit example */ background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(50,50,50,0.8)), to(rgba(80,80,80,0.2)), color-stop(.5,#333333) ); (src) /* mozilla example – FF3.6+ */ background-image: -moz-linear-gradient( rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 95% ); (src) Apparently you can even do this in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)