Results 1 to 1 of 1
Jul 24, 2002, 10:27 #1
- Join Date
- Jun 2001
- Bloomington, In.
- 0 Post(s)
- 0 Thread(s)
Padding, borders and more on inline elements in IE5
For those of you out there like me that have been struggling for a solution to this problem, your search is over. Although the experts (ie, The Zeldman's, O'Reily's etc...) would have you believe that its simply impossible to have padding, and borders applied to inline elements in IE5, I refused to settle for that. Hence my exhaustive testing until I found the solution (forgive me if its already been discovered and posted before). The solution is quite simple and doesn't require a hack of any sort. So you can all stop scratching your heads and simply enjoy padding and borders on inline elements in IE 5 now. Yippee!
To have your padding and borders show, all you need to do is be sure to define the width attribute for your inline elements class and viola! IE 5 magically decides to apply your padding and borders now.
border: 1px solid #000;
}Messiah | Ink-Press: web publishing simplified!