Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to keep the link color on CSS buttons as one color when changing default link colors?
    primarykey
    data
    text
    <p>I've searched for a similar question but either it's a glaring error I just can't see or I'm just bad at phrasing my searches.</p> <p>So, I have an assignment to create a basic website however I've decided to go further and just create the business site I've desired then submit that, however, I've encountered a problem I can't seem to find a way around. Due to the fact my background is a little dark in my webpage I wanted to brighten the default link colors so they were still recognizable as links but easily legible. Having used CSS buttons for my menu, though, it changes the text color on the buttons too even though the text of it is explicitly set to white in the code of the buttons.</p> <p>If you want to see any of what I'm talking about in action, there's a version of my site currently hosted <a href="http://fenrirstudio.hostingsiteforfree.com/index.html" rel="nofollow">here.</a> This is the version with the brighter link colors.</p> <p>As for my button's code, it looks like this:</p> <pre><code>.homebutton { font-size:15px; font-family:Georgia; font-weight:normal; color: #FFFFFF; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; border:1px solid #b33329; padding:10px 30px; text-decoration:none; background:-webkit-gradient( linear, left top, left bottom, color-stop(21%, #cc372d), color-stop(84%, #8a2b23) ); background:-moz-linear-gradient( center top, #cc372d 21%, #8a2b23 84% ); background:-ms-linear-gradient( top, #cc372d 21%, #8a2b23 84% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc372d', endColorstr='#8a2b23'); background-color:#cc372d; display:inline-block; text-shadow:1px 1px 0px #810e05; -webkit-box-shadow:inset 1px 1px 0px 0px #f5978e; -moz-box-shadow:inset 1px 1px 0px 0px #f5978e; box-shadow:inset 1px 1px 0px 0px #f5978e; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .homebutton:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(21%, #8a2b23), color-stop(84%, #cc372d) ); background:-moz-linear-gradient( center top, #8a2b23 21%, #cc372d 84% ); background:-ms-linear-gradient( top, #8a2b23 21%, #cc372d 84% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#8a2b23', endColorstr='#cc372d'); background-color:#8a2b23; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .homebutton:active { position:relative; top:1px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } </code></pre> <p>This is the exact CSS code for the 'home' button used on the webpage.</p> <p>Any help or insight provided will be much appreciated and thanks for taking the time to look at my plea, at least haha.</p> <p>-Sky</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload