2028 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says

I was building a layout based on the 906 Grid System. I like the fixed (px) version but would like to go with the fluid (%) version and wrap a fix sized div around it.

The problem is that this doesn’t work on all browsers:
  • FF 7 : works
  • IE6 – 9: works
  • Chrome: sucks
  • Safari: sucks
  • iPad/iPhone: sucks
  • Opera: sucks

To see what I mean i made a small page. Click the switch button to change to relative. It should look the same but doesn’t :(

Any ideas on that?

2028 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says
xstortionist said
because the percentages are not as accurate as pixel dimensions.

50% of 10 pixel are 5 pixel. Accurate enough?

FF and IE respect this why not the others?

2453 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact says

I’m on FF7 Win7 and for me the PX version is a little bigger than the % one (I guess that’s your problem). Same thing on IE9 … Have no idea why, but just thought I’d let you know.

2028 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says
digitalimpact said
I’m on FF7 Win7 and for me the PX version is a little bigger than the % one (I guess that’s your problem). Same thing on IE9 … Have no idea why, but just thought I’d let you know.

No, this is not the problem. I’m talking about the webkit browsers which render this wrong.

I know there is no half pixel so the difference on FF is immaterial

2028 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says
by
by
by
by
by
by