Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hello,
As said in the Question the percentage of the inner Div's sizes differs from one browser to another , first I've been testing on IE but now when i tried Firefox it showed some errors can anyone tell me why did that happen ?
 
Thanks in advance for helping =)
Posted 16-Jan-13 23:22pm
Edited 20-Jan-13 21:08pm
v2
Comments
Sergey Alexandrovich Kryukov at 17-Jan-13 6:59am
   
Of course: try again Firefox and make some fixed. This is a complete answer, please don't ask for another.
—SA
ayat abukhadra at 21-Jan-13 3:04am
   
the problem wasn't on PC's it was on mobiles :S sorry for forgetting telling you that :S what i tried and solved the problem by adding the html code and the re-sizing in the code behind since i need to create my items dynamically and it worked :)
Sergey Alexandrovich Kryukov at 21-Jan-13 3:09am
   
Unfortunately, different rendering engines have too many differences in rendering. The key is the Web design which is not sensitive to those changes.
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

As SA has stated, every browser has different rendering engines so difference between those browsers have to be accounted for or you need to use style components that are not rendered differently by browsers or operating systems. One way many web developers and designers have done to counteract these differences is by adding "reset" stylesheets which incorporate global styles that attempt to circumvent the rendering difference in each engine.
 
Here are just a couple resources concerning this issue:
 
Best Practices[^]
 
A premade collection of various CSS reset styles[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Nirav Prabtani 298
1 OriginalGriff 289
2 Sergey Alexandrovich Kryukov 225
3 _Amy 165
4 Richard MacCutchan 135
0 OriginalGriff 7,799
1 Sergey Alexandrovich Kryukov 6,966
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100