Jump to content

Style


jnf555
 Share

Recommended Posts

<!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

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 by Deirdre's Dad
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...