954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Width of DIVs (or Tables) using half percentages?

I have 3 DIVs I'm floating left so they all line up in columns.

The middle (2nd) DIV is a separator. The outer DIVs are the main content and I have set each of their width to 49.5% and the middle separator DIV to 1%. FF and IE seem to handle this fine and does display differently than using 49% on outers and 2% on inner.

Any reason this is a bad idea to use a half percentage for the width? I see nothing saying you can't but nothing saying it is an acceptable value either.

SolidSolutions
Junior Poster
136 posts since Jul 2010
Reputation Points: 24
Solved Threads: 24
 

You might want to test in IE 6 and other popular browsers as well, like opera, chrome, and safari.

Dont know if it will pose any issues though. Never used half percentages.

teedoff
Posting Pro
599 posts since Jul 2010
Reputation Points: 21
Solved Threads: 60
 

no issues, css '%' requires numeric values, **.** is valid numeric so will be properly interpreted, (even by IE) to the limits of the browsers implementation (IE very limited)

by satphone from outback queensland, month 2/8 holiday, fanbloodytastic

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: