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 Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/ 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/ Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/#findComment-290058 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 ? Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/#findComment-290060 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 Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/#findComment-290066 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 Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/#findComment-290071 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. Link to comment https://forums.phpfreaks.com/topic/58489-how-to-set-a-specific-standart-for-all-browsers/#findComment-294298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.