back

</>CodeWithRahul

More
  • Home
  • Cources
  • Tutorials
  • Tutorials
  • Projects
  • Notes
  • Contact
  • Work With Us
  • HTML
  • CSS
  • JAVASCRIPT
  • CC++
  • PHP
  • PYTHON
  • REACT JS
  • DSA

</>Code With Rahul

Create an account
  • INTRODUCTION
    • Information & History
    • Your first CSS Website
    • How CSS Works?
    • Ways to add CSS
    • CSS Selectors
    • CSS Comments
  • CSS Properties
    • CSS colors
    • CSS backgrounds
    • CSS Borders
    • CSS Image
    • CSS Videos Embedding
    • CSS Fonts
    • CSS Text Styling
    • CSS Padding
    • CSS Margin
    • CSS Hover
    • CSS Links
    • CSS Combinators
    • CSS Pseudo Classes
    • CSS Buttons
    • CSS Overflow
    • CSS Float
    • CSS !Important
    • CSS Maths Function
    • CSS Size
    • CSS Positioning
    • CSS Z-index
    • CSS Forms
    • CSS Navigation
  • CSS Designing
    • CSS Display
    • CSS FlexBox
    • CSS Grid
    • CSS Meida Queries
  • CSS Advance Topics
    • CSS CSS 2D
    • CSS Transform
    • CSS Transition
    • CSS Border Image
    • CSS Gradients
    • CSS Inherit
    • CSS Shadows
    • CSS ToolTip Text
    • CSS Border Image
    • CSS Masking
    • CSS Pagination
    • CSS Meida Queries Advance
    • CSS Animation
  • CSS FAGS
    • CSS Questions

    CSS Buttons

    Buttons can be styled in CSS to match the theme of our website. Various ways of styling it is given below.

    Syntex:

    <head>
        <style>
            .button1{
                background-color: #330ff;
                color: #fff;
                padding: 15px 32px;
                text-align: center;
                text-decoration: none;
                display: inline-block;
                font-size: 16px;
                margin: 4px 2px;
                cursor: pointer;
            }
            .button2{
                box-shadow: 5px 5px yellowgreen;
                margin: 10px;
            }
            .button3{
                padding:10px;
                background-color:#fff;
                border-color:#f23;
                border-radius:10px;
            }
        </style>
    </head>
    <body>
        <h1 style="color: #3300ff;">CSS Buttons</h1>
        <button>Default Button</button>
        <a href="#" class="button1">Link Button</a>
        <button class="button2">Shadow on Button</button>
        <button class="button3">Border on Button</button>
    </body>

    Output:

    Combinators
    Owner of this WebPage Image

    CodeWithRahul

    Copyright © 2023 CodeWithRahul.com