|
Donkey -> Style Sheet Layout (7/5/2004 9:09:19)
|
I have never seen this mentioned in the forums before, but where you put your styles in a style sheet seems to make a big difference to whether they work properly or not (at least in Firefox and IE, Opera works wherever the styles are). I found this out this weekend after finishing about 20 pages which I had checked in FF, Opera and IE and all looked perfect. Then suddenly big chunks of the page I was working on reverted to unformatted text except when viewed in Opera. When I checked back the same had happened on all the other pages. I couldn't understand it because I had checked the code was OK and valid, and within the same positioning div one block of text was fine and the next one unformatted. After much tearing hair out and changing things then changing them back, it occurred to me that the only thing I had done differently before writing the last page was to add a few more styles to the style sheet. Although these styles were not used yet on the page they had the effect of lengthening the style sheet and pushing the text formatting style classes further away from the positioning div classes. (The style sheet is quite long.) I moved the formatting style classes nearer to the positioning style classes and it all worked perfectly again.
|
|
|
|