Quantcast
Viewing all articles
Browse latest Browse all 34

Re: hyperlinks within css

i swear things were much easier in frontpage

 

And, unfortunately not only wrong, but unmaintainable.

 

The CSS should look like this -

 

.box a {

     display:block;

     height:20px;

     width:100px;

     font-size:10px;

     line-height:20px;

     text-decoration:none;

     text-align:center;

     color:white;

     background-color:blue;

     border:1px solid black;

}

 

(note that I have changed the selector to call for all links within a container with a class of 'box'.)

 

The divs should look like this -

 

<div class="box">

 

The link would not need to be changed.


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>