- Impact
- 19
Hi,
I'm making a box around a link. I'm using this simple css code for the box:
.links {
border: 2px dotted #5b5b5b;
background: #e5e5e5;
}
I will use it like this: <div class="links"><a href="linkhere">Link</a></div>
Now, how do I automatically make the box width the same as the link text?
Thanks a lot.
I'm making a box around a link. I'm using this simple css code for the box:
.links {
border: 2px dotted #5b5b5b;
background: #e5e5e5;
}
I will use it like this: <div class="links"><a href="linkhere">Link</a></div>
Now, how do I automatically make the box width the same as the link text?
Thanks a lot.








