Home Forums General Discussion Button options

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  themeweaver 4 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3558

    Daniel Riou
    Member
    Post count: 5

    Hello,
    first, thanks for your great theme, I appreciate it very much. I’m new to CSS and HTML and I was wondering if it is possile to set a fixed width on a button and also to set a different color from the default color with an hex code…

    Thanks again!!

    #3561

    themeweaver
    Keymaster
    Post count: 730

    If you don’t want to change all buttons then you need to add an extra css class to the custom button, then add some custom css to specify width and color:

    .mybutton.button, .mybutton.button:visited {
    background-color: #F15352;
    width: 100px;
    }
    .mybutton.button:hover { background-color: #ED0707; }

    To use this create a button and add mybutton class:


    <a href="#" class="button mybutton">text</a>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.