You need to make your anchor display: block
or display: inline-block;
and then it will accept the width and height values.
More Related Contents:
- Why does my design elements look different in all browsers? UPDATE [closed]
- Menu does not align correctly in Safari
- What is a clearfix?
- How do I style a dropdown with only CSS?
- CSS technique for a horizontal line with words in the middle
- css ‘pointer-events’ property alternative for IE
- Browsers’ default CSS for HTML elements
- How to align checkboxes and their labels consistently cross-browsers
- Style input type file? [duplicate]
- How can I draw vertical text with CSS cross-browser?
- Remove white space above and below large text in an inline-block element
- Cross-browser custom styling for file upload button [duplicate]
- How to make HTML Text unselectable [duplicate]
- Flexbox and Internet Explorer 11 (display:flex in ?)
- Flexbox alternative for IE9
- Image scaling causes poor quality in firefox/internet explorer but not chrome
- Fallback for CSS attributes without unit
- Extra space under textarea, differs along browsers
- header/footer/nav tags – what happens to these in IE7, IE8 and browsers than don’t support HTML5?
- How to make input autofocus in internet explorer?
- Cross browser method to fit a child div to its parent’s width
- Which browsers support data URIs and since which version?
- How can I vertically align elements in a div?
- Image inside div has extra space below the image
- Why doesn’t the height of a container element increase if it contains floated elements?
- Text in Border CSS HTML
- How can I scale an entire web page with CSS?
- CSS margin adds space outside parent element [duplicate]
- Place text after dots inline with the second line of text overflow ellipsis
- 100% width minus margin and padding [duplicate]