 |
Centering a DIV using the negative margin method
Paul Hayman (3033 views)
Centering a DIV using the negative margin method
The following CSS will center a DIV whih is 500px wide. This method is very clean and works in all browsers.
#c#div {
#c# position: absolute;
#c# left: 50%;
#c# width: 500px;
#c# margin-left: -250px;
#c#}
Change the width to suit your
|
 |
Linking from one CSS StyleSheet to Another
Paul Hayman (1321 views)
Linking from one CSS StyleSheet to Another
Simply add the following to the top of your CSS StyleSheet to link it to another:
#c#@import "MyOtherStylesheet.css";
'''NOTE:''' the path is relative to the current StyleSheet
|