Wakey Posted February 10, 2008 Report Share Posted February 10, 2008 Hi, I don't know if anyone here can help me on this one, I know some of you do websites including this one! Basically I've got a page reading in text from a database. Now there are problems that I've been encountering with white space. I've made a section in my CSS to combat this problem which is now fine in firefox. Internet Explorer seems to be the problem. putting in - word-wrap: break-word; preserves line breaks in the text being read in, however this option doesn't wrap the text to the cell it's being put in. white-space: normal; wraps the text to the cell but doesn't preserve line breaks. I can only seem to use one of these options at a time so I'm abit stuck for ideas really. Does anyone know anything about this or a fix for it? Thanks! Link to comment Share on other sites More sharing options...
Neuro Posted February 13, 2008 Report Share Posted February 13, 2008 Not sure I can help I'm afraid... I'm actually pretty rubbish at this as I've never learnt it properly. CSS is a nightmare - for the template for this site I literally made small changes to see what would happen on a trial and error basis. Not ideal I know but from experience its usually easier to make Firefox happier than IE, which is quite buggy and handles some aspects of CSS irrationally. What are you trying to do exactly? It might help to think of it from a different angle - perhaps use your line breaks differently or think how you can make the data easier to handle. Link to comment Share on other sites More sharing options...
Wakey Posted February 13, 2008 Author Report Share Posted February 13, 2008 Cheers Tim. Basically for my uni project I'm making a content management system for the clubs and societies at my university. So it allows them to add news articles etc to the site. As I'm coding it from scratch you can imagine there's lots of little things like this that become rather irritating! I have had someone suggest actually that with JSP which is the code I'm using, when you read in the data you can write a string to make it automatically but in line breaks etc so I'm going to try that and see how it turns out! Will keep you posted! Link to comment Share on other sites More sharing options...
Neuro Posted February 13, 2008 Report Share Posted February 13, 2008 My word, that's some task! Hope you get it sorted... do keep me in the loop as to how it turns out! Link to comment Share on other sites More sharing options...
Briggsy Posted February 13, 2008 Report Share Posted February 13, 2008 I find CSS to be fairly unpredictable. Since all these other various internet browsers have appeared (Firefox, etc), its pretty tricky to find something which suits all of the browsers. I try to do whatever coding I can in PHP these days - its far more reliable and its very rare one of the browsers doesn't like it. CSS is nice when it works, but when it goes t**s up, it's a right arse pain Don't even get me started on IE7 either Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.