Margin-Top not working for span element?

Unlike div, p 1 which are Block Level elements which can take up margin on all sides,span2 cannot as it’s an Inline element which takes up margins horizontally only. From the specification: Margin properties specify the width of the margin area of a box. The ‘margin’ shorthand property sets the margin for all four sides … Read more

What is the difference between outline and border CSS properties?

From: http://webdesign.about.com/od/advancedcss/a/outline_style.htm The CSS outline property is a confusing property. When you first learn about it, it’s hard to understand how it is even remotely different from the border property. The W3C explains it as having the following differences: 1.Outlines do not take up space. 2.Outlines may be non-rectangular.

CSS center display inline block?

Try this. I added text-align: center to body and display:inline-block to wrap, and then removed your display: table body { background: #bbb; text-align: center; } .wrap { background: #aaa; margin: 0 auto; display: inline-block; overflow: hidden; }

Is there an opposite to display:none?

display: none doesn’t have a literal opposite like visibility:hidden does. The visibility property decides whether an element is visible or not. It therefore has two states (visible and hidden), which are opposite to each other. The display property, however, decides what layout rules an element will follow. There are several different kinds of rules for … Read more

Use CSS3 transitions with gradient backgrounds

Gradients don’t support transitions yet (although the current spec says they should support like gradient to like gradient transitions via interpolation.). If you want a fade-in effect with a background gradient, you have to set an opacity on a container element and ‘transition` the opacity. (There have been some browser releases that supported transitions on … Read more

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