Jump to content

a tag entire height/width of parent div


SamohtVII

Recommended Posts

Here's a tricky one.

 

I have a div (80x80) and inside the div is an anchor tag. I want the clickable area for the anchor tag to be the entire width and height of the parent div.

Along with that I would like the text center aligned and center justified.

 

The closest I have is display:block that aligns the text top and then I can get the text centered vertically but not horizontally. Can anyone help.

 

I can't do any workarounds this must be done in CSS. Thanks

<div class="subBubble">      <a class='node' href='node/89'>Imaging</a>                     </div>   

Thanks

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
×
×
  • Create New...