Jump to content

Ok so I know HTML and CSS are more web design than programming but still I hope someone can help me. My buttons dont look right can I fix them quickly

HTML:    <div>
          <a href ="https://www.youtube.com/channel/UCmNt1zDYkvSY8B_jDd2TuOA"> Youtube videos I made to help</a>
          </div>

CSS :     div{
      border-radius: 5px;
    border: 2px solid #6495ED;
    background-color: #BCD2EE;
    height: 50px;
    width: 120px;
    margin: auto;
    text-align: center;
}

You will eventually die, accept it.

Link to comment
https://linustechtips.com/topic/595347-button-help-i-know-bad-title/
Share on other sites

Link to post
Share on other sites

You can use the button tag. 

If you want to reply back to me or someone else USE THE QUOTE BUTTON!                                                      
Pascal laptops guide

Link to post
Share on other sites

If you want to reply back to me or someone else USE THE QUOTE BUTTON!                                                      
Pascal laptops guide

Link to post
Share on other sites

<button href ="https://www.youtube.com/channel/UCmNt1zDYkvSY8B_jDd2TuOA"> Youtube videos I made to help</button>

 

EDIT: The link does not seem to work in this example. Not sure what I did wrong.

 

EDIT 2: The href apparently does not go in the button tag. This version works:

<a href ="https://www.youtube.com/channel/UCmNt1zDYkvSY8B_jDd2TuOA"><button type="button">Youtube videos I made to help</button></a>

Link to post
Share on other sites

19 minutes ago, doeskydoes said:

just a big red button

http://www.w3schools.com/css/css3_buttons.asp

 

You can use CSS to stylize that button tag. Here is an example from that link

 

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

Edited to add code tags

Link to post
Share on other sites

1 minute ago, CoffeeandBagels said:

http://www.w3schools.com/css/css3_buttons.asp

 

You can use CSS to stylize that button tag. Here is an example from that link

 

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

thx I'll use that right now

You will eventually die, accept it.

Link to post
Share on other sites

And just for Clarification, Use an A tag if you change page (href) and button in form elements or for Changes on the same page!

Business Management Student @ University St. Gallen (Switzerland)

HomeServer: i7 4930k - GTX 1070ti - ASUS Rampage IV Gene - 32Gb Ram

Laptop: MacBook Pro Retina 15" 2018

Operating Systems (Virtualised using VMware): Windows Pro 10, Cent OS 7

Occupation: Software Engineer

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×