mraiur Posted January 25, 2008 Share Posted January 25, 2008 Hi . Please see this. http://globerescue.com/index.php?p=100&news=45 and the problem is there have to be a picture and text surounding this picture but in FF and in IE6 looks horrible. this is how i am tring to fix it wordwrap(stripslashes($text),40,'</br />') Can someone give me an advice how its going to be better ... Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/ Share on other sites More sharing options...
cooldude832 Posted January 25, 2008 Share Posted January 25, 2008 php should not be in charge of presentation looks use css and xhtml to manage this. Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449008 Share on other sites More sharing options...
revraz Posted January 25, 2008 Share Posted January 25, 2008 Isn't that the exact same thing I said to you and you argued against me? ??? php should not be in charge of presentation looks use css and xhtml to manage this. Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449012 Share on other sites More sharing options...
cooldude832 Posted January 25, 2008 Share Posted January 25, 2008 if I could remember what you are talking about. No. Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449016 Share on other sites More sharing options...
mraiur Posted January 25, 2008 Author Share Posted January 25, 2008 Ok i tried it before writing here i tried to do it again. But i have one other question if PHP has no presentation of the text why is there a "wordwrap()" and "chunk_split()" functions? Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449023 Share on other sites More sharing options...
cooldude832 Posted January 25, 2008 Share Posted January 25, 2008 http://us3.php.net/manual/en/function.wordwrap.php read its exact description it has nothing to do with a pixel on pixel level Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449024 Share on other sites More sharing options...
mraiur Posted January 25, 2008 Author Share Posted January 25, 2008 Why do think that i am trying to wrap the text in pixels ? Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449034 Share on other sites More sharing options...
cooldude832 Posted January 25, 2008 Share Posted January 25, 2008 because your screen layout for that page is set to fit a 600x800 browser so your text must fit a certain "pixel" area to fit in the content. This site (phpfreaks) is done to fill a browser screen so text can adjust accordingly using the em unit (emperical) that fits to a screen much better. This is a common misconception, all fonts are not equal in height or width of the same charcterrs thus you must force dynamic areas into specifc css guidelines to make it look right. Quote Link to comment https://forums.phpfreaks.com/topic/87782-wraping-text/#findComment-449088 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.