|
|
HTML Code TutorialTutor Ebook Download Creating Buttons With CSSThe navigational system of your website is one of its most important features. You can use simple hyperlinks. You can use fancy 'Navbars' bult with Javascript. You can use simple button images with your hyperlinks. You can also create buttons using CSS and HTML code which mimic the mechanical aspects of Js navbars. And these won't slow your pages or create errors in browsers that don't support Js. Most of the code is set up in the Style Sheets. We use the class method a.menu to assign the properties only to the links in our menu. We then produce a depressed button effect by changing background colors and border styles in the hover property. (IE 5.0 Mozilla 5.0) Place the Style Code in the head section of your document. Place HTML code between the body tags at the desired location.
STYLE CODE:
|
Contents IntroductionPage Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Using Images Using Templates Uploading HTML pages. |
|
The code produces: More ButtonsYou can also create an illusion of a depressed button simply by changing the color of a solid border.
|
|
|
The HTML code: |
The Style code: |
|
|
|
|