The first way is simple but very efficient when you don’t have tables, iframes, etc. It will reset the padding and margin for all the html elements.
* {
padding: 0;
margin: 0;
font-size: 100%;
background: transparent;
}
The second way, [original]:
html, body, div, span, applet, […]
Popularity: 89% [?]
... more »
Categories: CSS Specificity, CSS Tips, Posted on February 25, 2008 by Choppr
Linking of style sheets using HTML
One of the best methods of adding an external style sheet to a web page is to use HTML <link> tag. You can write the tag in a slightly different manner depending upon whether you are using HTML or XHTML.
For example, here is an HTML:
<link rel=”stylesheet” type=”text/css” href=”css/global.css”>
Here’s XHTML:
<link rel=”stylesheet” […]
Popularity: 100% [?]
... more »
Categories: CSS Tips, CSS Tutorials, Posted on February 21, 2008 by Choppr
1. With the file basic.html open it in your text editor, click directly after the closing </title> tag. Then hit Return and type <style type= “text/css”>
The HTML should look like the following:
<title>Basic web page</title>
<style type= “text/css”>
</head>
The opening <style> tag marks the beginning of […]
Popularity: 40% [?]
... more »
Categories: CSS Tips, CSS Tutorials, Posted on February 20, 2008 by Choppr
Since it groups all styles at the top of the page, so an internal style sheet is far easier to create and maintain than an inline style sheet.
Here are steps to create an external style sheet:
1. In your text editing program, create a new file and save it as global.css in the same folder as […]
Popularity: 20% [?]
... more »
Categories: CSS Tips, CSS Tutorials, Posted on by Choppr
A host of CSS navigation techniques like vertical menus, JavaScript powered menus and tab menus, make navigation menus one of the most important elements for web design.
Here is a list of techniques to create CSS navigation menus:
Drop-down menus, horizontal style
The most important part of creating our menu is menu structure itself. The best way to […]
Popularity: 29% [?]
... more »
Categories: CSS Navigation, CSS Tips, Posted on February 4, 2008 by Choppr