0

I have a browser compatibility issues with this css code

nav {

 display: -webkit-box; 
 -webkit-box-orient:horizontal; 
 padding: 2% 0; 
 border-bottom: 1px solid #e6e6e6; 
 border-top: 1px solid #e6e6e6; 
 margin: 2% 0 2% 0; 

}

nav a {

 font-family: 'GoudyRegular'; 
 display:block; -webkit-box-flex:1; 
 text-align:center; 
 font-size: 1.25; 
 color: #666; 

}

and the html code is

<nav>
 <a href="about.html">About</a>
 <a href="#">Blog</a>
 <a href="work.html">Work</a>
 <a href="#">Contact</a>
</nav>

It displays as i want in Chrome but not in mozilla or internet explorer...Pls help

asked Oct 22, 2013 at 12:04
1
  • -webkit-box-orient is not for Firefox or IE. So you need to find the CSS styles for those browsers. Commented Oct 22, 2013 at 12:07

1 Answer 1

1

Make it work across browsers like this:

-webkit-box-orient:horizontal;
-moz-box-orient:horizontal;
-ms-box-orient:horizontal;
-o-box-orient:horizontal;
box-orient:horizontal;

answered Oct 22, 2013 at 12:08
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.