top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why has my link an infinite width?

+4 votes
271 views

My xml link code

the tag is the link.

 <b>link 1</b><l href="#">description</l>

Css code

l{
  color:#222;
  font-size:18;
  font-style: italic;
  display:block;
  transition:all 0.4s;
  -webkit-transition:all 0.5s;
  text-decoration:none;
  width:auto;
}
l:hover{
  cursor:pointer;
  color:blue;
} 

When I specify a width like 200px it works but when I put it to auto it doesn't so can somebody help me with solving this problem?

I have Jquery working on the page so if I need to solve the problem with Jquery that is no problem.

posted May 14, 2015 by Manikandan J

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...