Click to See Complete Forum and Search --> : Inserting pages with content


BrandonL
11-12-2003, 08:48 AM
Ok, I'm hiding out in HTML now after asking a few questions in CSS.

My new question is: I'm using PHP to include an external file of text content. Now when I display it in my CSS all the white space formatting is deleted and it becomes one block of mish-mush. I've checked CSS tutorials but they aren't addressing this issue. I've tried the display element and white-space to no avail. Argh!

Brandon

---
the frustration continues...

Charles
11-12-2003, 08:57 AM
One can use the PRE (http://www.w3.org/TR/html4/struct/text.html#edef-PRE) element or the "white-space (http://www.w3.org/TR/REC-CSS2/text.html#propdef-white-space)" CSS property.

BrandonL
11-12-2003, 10:02 AM
That was the key! I didn't even think about the white-space:pre because it wasn't listed as being supported by browsers in the WC3 classroom tutorial.

Thanks Charles!

Brandon