jnf555 Posted November 2, 2009 Report Share Posted November 2, 2009 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><title>thebullshead</title><head><style type="text/css">body{background-color:silver}.b{background-color:yellow}.b{width:150px;height:30px}.b{border:1px solid black}</style></head><body><div><table> <td ><a href=""class="b">bar</a></td></table></div></body></html>hi can anyone tell me why this formular dosent recognise the size instuctionthanksjnf555 Link to comment Share on other sites More sharing options...
jeffman Posted November 2, 2009 Report Share Posted November 2, 2009 (edited) An anchor is an inline element. Most inline elements ignore size declaration. If it helps, you could give it some funky padding to make it longer and higher, but you cannot create fixed sizes that way.Of course, if you're not using the link in inline fashion (if it's not one word of a longer sentence), then you can try changing the display property to display:block. Just be aware that anything coming after the link in that table cell will be on the "next line," unless you also give the link a float:left property.I assume there's a good reason for not simply styling the table cell? Edited November 2, 2009 by Deirdre's Dad Link to comment Share on other sites More sharing options...
jnf555 Posted November 2, 2009 Author Report Share Posted November 2, 2009 (edited) thanks a lot i;ll give it a goi am trying to have the whole cell linked not just the textjnf555 Edited November 2, 2009 by jnf555 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now