 |
The best CSS rounded corners method
Paul Hayman (1013 views)
The best CSS rounded corners method
I love this example :
{Even More CSS Roudned Corners 2}http://www.schillmania.com/projects/dialog2/
{Project Home}http://www.schillmania.com/content/projects/even-more-rounded-corners/
{Basic Example}http://www.schillmania.com/projects/dialog2/basic.html
|
 |
Dynamically adding a CSS link to the page in c#
Paul Hayman (1378 views)
Dynamically adding a CSS link to the page in c#
The following code adds a CSS link to the header node of a Html page.
#c#// register css
#c#HtmlHead head = (HtmlHead)Page.Header;
#c#HtmlLink link = new HtmlLink();
#c#link.Attributes.Add("href", Page.ResolveClientUrl("~/App_Themes/Defaul
|
 |
Scrollbar CSS style generator
Paul Hayman (589 views)
Scrollbar CSS style generator
Excellent online tool for generating css for scrollbars
http://iconico.com/CSSScrollbar/
|
 |
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
|
 |
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
|
 |
No more cellspacing, roll on border-collapse!
Paul Hayman (739 views)
No more cellspacing, roll on border-collapse
Confused as to why applying a css '''margin:0px''' and '''padding:0px''' doesn't remove the gaps between cells in tables? You need border-collapse.
The cellpadding and cellspacing attributes are not deprecated in HTML 4 (and not even in XHTML 1.1
|
 |
Ensure the minimum height of a <div> tag in Internet Explorer
Paul Marshall (4265 views)
Ensure the minimum height of a <div> tag in Internet Explorer
Being a Microsoft bigot I really love all of Microsoft's products, but I do find IE a real pain. Especially its inconsistencies with CSS.
In an attempt to catch up with my friends and collagues I'm doing more and more development
|