简体   繁体   中英

How can I change the color of the link, remove its underlining and resize it?

I have a link to the site. I need:

  1. Change the color to black

  2. Change its size and preferably make bold

  3. Move it to the center

code:

  <p><a href="website">go</a></p>

Points 1. and 2. are as simple as this:

a {
  color: black;
  font-size: 20px; /* or whatever */
  font-weight: bold; /* or whatever */
  text-decoration: none;
}

When it comes to centering it you would have to provide more detail about your page structure. Have a look at this tutorial for more information.

I would suggest googling for a CSS tutorial as these are pretty basic CSS tasks.

Here is the code.

<html>
<head>
<style>
a {
  color: black;
}
</style>
</head>
<body>

 <p>
    <center>    
        <b>
            <a href="website">go</a>
        </b>
    <center>
 </p>
</body>
</html>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM