Panjabel Posted July 5, 2007 Share Posted July 5, 2007 Hello friends, It is posible to set the page to run on a specific standart ? I tried this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> but in IE div, textarea, buttons and many things appear differently than in Firefox What should i do to appear the same size and design on all browsers ? Thank you Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 5, 2007 Share Posted July 5, 2007 form elements styling is notably different in browsers, so you're going to have to give up the idea of making them 'the same' in all browsers. Read about it here - http://www.456bereastreet.com/archive/200410/styling_even_more_form_controls/ Quote Link to comment Share on other sites More sharing options...
Panjabel Posted July 5, 2007 Author Share Posted July 5, 2007 My textarea in IE makes the page look terrible, firefox is OK So, it is not posible to make the same design for all browser ? Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 5, 2007 Share Posted July 5, 2007 textarea can be styled to look identical in IE/FF. If your's don't, try modifying your html/css Quote Link to comment Share on other sites More sharing options...
Panjabel Posted July 5, 2007 Author Share Posted July 5, 2007 I did this: <textarea <?php if(strpos(getenv("HTTP_USER_AGENT"), "Firefox")===false) { print "rows=3"; } else { print ""; } ?> name="problem" type="text"> </textarea> looks the same size now Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted July 10, 2007 Share Posted July 10, 2007 No matter what, the four main browsers will always render certain things differently than each other. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.