RE: [WSG] Argh! Clearing issues with center column
Thanks awesomely for all those who helped point me in the right direction. After attempting innumerable hacks I finally found the one I wanted. For those who are interested the problem was, naturally, an IE bug. The less famous 'italic' bug to be precise. Usually this bug only manifests itself in the form of containers being widened to accommodate italic text. In this case it was forcing my main content wy down the page and thus breaking the layout. The solution (yet another added to the ever-growwing IE-override.css) involves the Holly Hack with a twist. The hack gets applied to any div containing the italic text (and, in this case, the immediate parents). /* \*/ * html #middle { height: 1%; overflow: visible;} * html #content { height: 1%; overflow: visible;} * html #update { height: 1%; overflow: visible;} /* */ Thanks again! ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] specifying width of pre
Is there any way to specify a max width for content of pre tags?Currently the content of my pre tagsdoes not automatically wrap when theparent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas?
Re: [WSG] specifying width of pre
codeprecontent/pre/code Gives you an alternate parent element which you can then set to scroll or whatever, preventing the content from spilling out across your layout generally. I think. On 10/24/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469
RE: [WSG] List item overlap
Title: Message Taco wrote: I have this list item on http://www.lrp.com.au/admin/(main navigation) it overlaps,I would like it to just continue underneath without overlapping, is that possible? Also removed the left and right padding on #navigation_main li, #navigation_sub li, should stop the MAIN-NAVIGATION container wrapping. --- aj
Re: [WSG] specifying width of pre
you think hmm, take a look at my content on http://www.mcville.net in a IE browser the content is sliding under the navigation bar LOL :) ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] specifying width of pre
Hi, The easiest way to define this is to create a division whose overflow attribute is set to auto. example: div style=overflow:auto;width=500px; pre whatever code you want /pre /div Hope it helps. Pat Boens http://www.fastwrite.com -Original Message- Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] Emulating text browser
Hi there Following one of the links of the mailing list I found the Webmaster Guidelines for Google (http://www.google.com/intl/en/webmasters/guidelines.html). One of the Technical Guidelines is to use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. Well I tried to download and install the Lynx browser but I found it a difficult mission (http://lynx.isc.org/lynx2.8.5/lynx2-8-5/INSTALLATION): alien language to me. So I gave up. But recently I found that the Opera browser has an option to view your web in the way a text browser should do ( View/Style/User/Emulate Text Browser). Do anyone knows if the Lynx's browser is something like this option? Thanks ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] CSS Block for menu buttons Active Area in IE.
Hi Everyone, I have created a very basic CSS Menu. I am having a problem with the active area for the link. In Firefox the block acts as the link and a rollover effect is given when the cursor is over any part of the block, which is what i want. In IE the text only is active part and not the rest of the block :( . There must be a basic solution to this, but so far I have not figured it out. My code is below: #linkList ul { margin: 0px; padding: 0px } #linkList li { list-style-type: none; margin: 0px; padding: 0px; height: 30px; } #linkList li a:link, #linkList li a:visited { color: #FF; letter-spacing:normal; border: 1px solid; background-color: #6076B2; padding: 4px; font-size: 90%; text-decoration: none; border-color: #E4ECF1 #2A4455 #2A4455 #E4ECF1; display: block; } #linkList li a:hover, #linkList li a:active { color: #F77016; border: 1px solid; padding: 4px; background-color: #405282; border-color: #2A4455 #E4ECF1 #E4ECF1 #2A4455; display: block; } Thanks for any help. Kind Regards, Gareth * * Gareth Houston MSc Web Site Evolution E-commerce, Web Design Development www.WebSiteEvo.com www.ecommerce-designers.com MSN: [EMAIL PROTECTED] Email: [EMAIL PROTECTED] * * ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] CSS Block for menu buttons Active Area in IE.
Gareth Houston wrote: Hi Everyone, I have created a very basic CSS Menu. I am having a problem with the active area for the link. In Firefox the block acts as the link and a rollover effect is given when the cursor is over any part of the block, which is what i want. In IE the text only is active part and not the rest of the block :( . There must be a basic solution to this, but so far I have not figured it out. My code is below: #linkList ul { margin: 0px; padding: 0px } #linkList li { list-style-type: none; margin: 0px; padding: 0px; height: 30px; } #linkList li a:link, #linkList li a:visited { color: #FF; letter-spacing:normal; border: 1px solid; background-color: #6076B2; padding: 4px; font-size: 90%; text-decoration: none; border-color: #E4ECF1 #2A4455 #2A4455 #E4ECF1; display: block; } #linkList li a:hover, #linkList li a:active { color: #F77016; border: 1px solid; padding: 4px; background-color: #405282; border-color: #2A4455 #E4ECF1 #E4ECF1 #2A4455; display: block; } Use a conditional comment or your favorite CSS filter to feed IE with height:0 (in the anchor rule). You could also move the height declaration from LI to A. As a side note, I'd use em rather than pixels because text could be cut-off depending on text-size. HTH, Thierry | www.TJKDesign.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Emulating text browser
alejandro poch wrote: But recently I found that the Opera browser has an option to view your web in the way a text browser should do ( View/Style/User/Emulate Text Browser). Do anyone knows if the Lynx's browser is something like this option? Uh, something like. Sorta. Well, not maybe that much... :-) side-by-side: http://webtuitive.com/samples/snapshot7.png FWIW! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Emulating text browser
The major gotcha with Operas text view is that it preserves table (columnar) structure where lynx just runs them all together. Try a precompiled binary: http://csant.info/lynx.htm or a lynx viewer: http://www.yellowpipe.com/yis/tools/lynx/lynx_viewer.php kind regards Terrence Wood. alejandro poch said: Do anyone knows if the Lynx's browser is something like this option? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Set min-width using DOM
Thierry Koblentz said: Ian Rifkin wrote: It won't work if javascript is off. I'm not sure about that. I believe it still works with script disabled. It does up until XP SP2 where they changed the rules A site will have to be trusted for CSS expression to work where JS is off. kind regards Terrence Wood. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] box within a box IE Fix for fluid CSS designs
Hi everyone, I am having more problems with fluid CSS designs for an e-commerce site. Info 2 column layout for main content. I have a fixed box to the left. And a box set to 100% to the right. I have created a box within a box for the box to the left to prevent IE adding the left margin. Problem * The problem is that some of my content includes tables. These tables have a width of 100%. For some reason these tables force the content off the page to the right. 100% + left margin. The box in a box fix does not seem to work for content with a table. If there a way to prevent this problem occurring without changing the table width of 100%? Gareth Houston MSc Web Site Evolution E-commerce, Web Design Development www.WebSiteEvo.com MSN: [EMAIL PROTECTED] Email: [EMAIL PROTECTED] * ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] box within a box IE Fix for fluid CSS designs
when you solve this email me :) o and btw I'm hacking this atm : http://www.mcville.net -look at it in IE :( - ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Emulating text browser
alejandro poch wrote: But recently I found that the Opera browser has an option to view your web in the way a text browser should do ( View/Style/User/Emulate Text Browser). Do anyone knows if the Lynx's browser is something like this option? I do have Lynx 2.8.5 running, but I use Opera to simulate it all the time - for accessibility. Copied this from my own page: - Make full use of user style to test accessibility.- example: √ Emulate text browser √ Accessibility layout √ High contrast (B/W) √ Disable tables (these may be active simultaneously, but you have to check them one after the other the first time.) -- http://www.gunlaug.no/contents/wd_1_03_01.html - Opera does give me pretty much the same information as Lynx, and it's much easier to just choose 'user style' than to have another browser up all the time. Lynx and Opera-text doesn't look the same, of course. Once Opera is set up for it it looks more like Lynxview... http://www.delorie.com/web/lynxview.html ...which is also an alternative. regards Georg -- http://www.gunlaug.no ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] users changing text sizes
like on http://sports.espn.go.com/nhl/news/story?id=2202658any good tuts on it anywhere?thanks
Re: [WSG] users changing text sizes
you want a font-size switcher or stylesheet switcher. here's a starting point: http://source.mihelac.org/notebook/styleswitcher/ kind regards Terrence Wood. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
(Yep. Or, if it's code -- I only really ever use pre for that -- as per my example previously, with the same styles.) On 10/25/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, The easiest way to define this is to create a division whose overflow attribute is set to auto. example: div style=overflow:auto;width=500px; pre whatever code you want /pre /div Hope it helps. Pat Boens http://www.fastwrite.com -Original Message- Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469
[WSG] Radio New Zealand site relaunch
http://www.radionz.co.nz As a disclaimer, I had some involvement with the HTML/CSS templates, but even so, I think it's a good example of a site that's nice visually and reasonably standards-compliant. Mike SIGNIFY LTD :: the logic behind ph: +64 4 803-3211 | fax: +64 4 803-3241 mob: +64 0274 885-992 | http://www.signify.co.nz P.O. Box 24-068, Manners St, Wellington Level 1, 250a Wakefield St, Wellington ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Radio New Zealand site relaunch
Another classic Signify Website, good work Mike :D Samuel Richardson Mike Brown wrote: http://www.radionz.co.nz As a disclaimer, I had some involvement with the HTML/CSS templates, but even so, I think it's a good example of a site that's nice visually and reasonably standards-compliant. Mike SIGNIFY LTD :: the logic behind ph: +64 4 803-3211 | fax: +64 4 803-3241 mob: +64 0274 885-992 | http://www.signify.co.nz P.O. Box 24-068, Manners St, Wellington Level 1, 250a Wakefield St, Wellington ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] users changing text sizes
thanks :)From: "Terrence Wood" [EMAIL PROTECTED]Sent: Monday, October 24, 2005 8:15 PMTo: wsg@webstandardsgroup.orgSubject: Re: [WSG] users changing text sizesyou want a font-size switcher or stylesheet switcher.here's a starting point:http://source.mihelac.org/notebook/styleswitcher/kind regardsTerrence Wood.**The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help**
[WSG] Is position:absolute legal in a floated div? relates to a Footer problem in NS7
Hi all, I know NS7 is basically dead but it also generally has complaint rendering. What it did to my page and my subsequent understanding of the problem made me wonder if the others (Ffox, IE and Opera) were just being more forgiving. The issue is that the footer and BW image divs in this page http://www.bats.co.nz/den/ position themselves relative to the body even though the content div has position:relative; After some testing I isolated the float: right; ( to make content 1st in source) and display: inline (which is in there for IE 's double margin bug and will be placed in a IE specific stylesheet in due course) styles as causing the issue. Float: right is the main culprit. Which leads to the topic of this post. 'Is position:absolute legal (or advisable) in a floated div?' Many thanks in advance, Ben Wrighton. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Set min-width using DOM
Terrence Wood wrote: Thierry Koblentz said: Ian Rifkin wrote: It won't work if javascript is off. I'm not sure about that. I believe it still works with script disabled. It does up until XP SP2 where they changed the rules A site will have to be trusted for CSS expression to work where JS is off. That's not correct. We have several test boxes running all flavors of Windows and IE in default mode and disabling script always disables expressions. Al Sparber PVII http://www.projectseven.com Designing with CSS is sometimes like barreling down a crumbling mountain road at 90 miles per hour secure in the knowledge that repairs are scheduled for next Tuesday. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] specifying width of pre
Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Street Sent: Monday, 24 October 2005 6:32 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] specifying width of pre codeprecontent/pre/code Gives you an alternate parent element which you can then set to scroll or whatever, preventing the content from spilling out across your layout generally. I think. On 10/24/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469 Nnvy jq♞z ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
http://www.joahua.com/random/pretest.html Play around with the web developer's toolbar in Firefox... I can't figure out a way to make it work as you want it to (though it's possible to style it so it doesn't look like preformatted text, demonstrated in the link). If it's coming from a database, isn't it trivial to use a regexp to replace \n with br /? (Or, doing things properly, wrapping paragraphs in paragraph tags?) It's also possible you could use Javascript to do that kind of stuff, but I'm afraid I'm of no help there. Josh On 10/25/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Street Sent: Monday, 24 October 2005 6:32 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] specifying width of pre codeprecontent/pre/code Gives you an alternate parent element which you can then set to scroll or whatever, preventing the content from spilling out across your layout generally. I think. On 10/24/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469 Nnvy jq♞z ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469
Re: [WSG] specifying width of pre
If I understand you correctly, you want pre with word-wrap? pre should only be used when the text you want to display is infact preformatted, such as indented code. Applying word-wrap to such text would be by definition to format it (and thus render in un-preformatted (sic)). If the text from the database is not actually preformatted beyond linebreaks, why don't you do a search and replace on the text from the database to format it properly. e.g. text_in_page = 'p' + replace(text_from_db, chr(13), '/pp') + '/p' ...or use 'br /' if a new paragraph is improper. Jachin Sheehy On 10/25/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] specifying width of pre
If you're using PHP/mySQL then you could always write a simple function like below, or use PHP's built-in nl2br() function. //Clean-up function to remove BRs and whitespace from data wihtout hurting the HTML function nl2br_skip_html($string) { // remove any carriage returns (mysql) $string = str_replace(\r, '', $string); // replace any newlines that aren't preceded by a with a br / $string = preg_replace('/(?!)\n/', br /\n, $string); return $string; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Boehmer [Addictive Media] Sent: Tuesday, 25 October 2005 1:59 PM To: wsg@webstandardsgroup.org Subject: RE: [WSG] specifying width of pre Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Street Sent: Monday, 24 October 2005 6:32 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] specifying width of pre codeprecontent/pre/code Gives you an alternate parent element which you can then set to scroll or whatever, preventing the content from spilling out across your layout generally. I think. On 10/24/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Is there any way to specify a max width for content of pre tags? Currently the content of my pre tags does not automatically wrap when the parent div is at an end - it just keeps on running until it finds the end of the line. I know the idea of the pre tag is to display the content as it is, but of course I want it to remain in the boundaries of my parent element. Any ideas? -- Joshua Street http://www.joahua.com/ +61 (0) 425 808 469 Nnvy jq♞z ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
On 25/10/05 1:59 PM, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. Can you not use PHP to replace the line breaks with br / tags? I use something like this: ?php $br = chr(10); //single line feed character (LF) $description = str_replace(chr(10), br /\n); // etc ? You just need to verify which character your db is using for line breaks (MySQL?). Sorry to the list for straying off-topic, and apologies to Andreas (like the new site mate!) if I'm barking up the wrong tree. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Emulating text browser
Does anyone actually use lynx anymore though (except sysadmins who haven't realises that VMS is not the lastest thing out there)? AFAIK links, w3m, and other text browsers are far more popular. All these other browsers preserve table structure. Alan Trick Terrence Wood wrote: The major gotcha with Operas text view is that it preserves table (columnar) structure where lynx just runs them all together. Try a precompiled binary: http://csant.info/lynx.htm or a lynx viewer: http://www.yellowpipe.com/yis/tools/lynx/lynx_viewer.php kind regards Terrence Wood. alejandro poch said: Do anyone knows if the Lynx's browser is something like this option? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] specifying width of pre
Normally I would do that, but in this particular case I was hoping not to use server-side formatting of the content. But it seems I will have to revert to that. I have never had any use for the pre tag. Now I thought I finally had my chance and it turns out to be a really useless tag. DAMN! :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Futter Sent: Tuesday, 25 October 2005 2:33 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] specifying width of pre On 25/10/05 1:59 PM, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Other than a scroll bar (overflow) there is no solution? The reason I need to use pre is that the content comes from a database that doesn't use HTML br's, but normal linebreaks. So to format the text correctly I need to put it in pre tags, but of course I want it to still fit into the rest of the content. Can you not use PHP to replace the line breaks with br / tags? I use something like this: ?php $br = chr(10); //single line feed character (LF) $description = str_replace(chr(10), br /\n); // etc ? You just need to verify which character your db is using for line breaks (MySQL?). Sorry to the list for straying off-topic, and apologies to Andreas (like the new site mate!) if I'm barking up the wrong tree. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
On 10/25/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Normally I would do that, but in this particular case I was hoping not to use server-side formatting of the content. But it seems I will have to revert to that. I have never had any use for the pre tag. Now I thought I finally had my chance and it turns out to be a really useless tag. DAMN! :) It's not _completely_ useless. Just mostly.
Re: [WSG] Is position:absolute legal in a floated div? relates to a Footer problem in NS7
On 25 Oct 2005, at 11:11 am, Ben Wrighton - StraightForward wrote: After some testing I isolated the float: right; ( to make content 1st in source) and display: inline (which is in there for IE 's double margin bug and will be placed in a IE specific stylesheet in due course) styles as causing the issue. Float: right is the main culprit. Which leads to the topic of this post. 'Is position:absolute legal (or advisable) in a floated div?' Yes, it is completely valid to have an absolute positioned element within a floated block that acts as a containing block. Some older browsers have problems with this, like Netscape 7. You'd have to add an additional wrapper inside your floated block to please those old boys. Like this div style=float:right div style=position: relative p style=position:absolute Philippe --- Philippe Wittenbergh http://emps.l-c-n.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] specifying width of pre
Am I the only one getting blank replies from Joshua? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Street Sent: Tuesday, 25 October 2005 3:06 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] specifying width of pre ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
On 10/24/05 10:06 PM Joshua Street [EMAIL PROTECTED] sent this out: On 10/25/05, Andreas Boehmer [Addictive Media] [EMAIL PROTECTED] wrote: Normally I would do that, but in this particular case I was hoping not to use server-side formatting of the content. But it seems I will have to revert to that. I have never had any use for the pre tag. Now I thought I finally had my chance and it turns out to be a really useless tag. DAMN! :) It's not _completely_ useless. Just mostly. ??U ?? b O¢°???wZ-?®?©??I???wZ-?®?©??¢???w¬??xb??¢p)¢??- ax b ?-¶)?¥? What's all them funny characters? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] specifying width of pre
On 10/24/05 10:31 PM Paul Noone [EMAIL PROTECTED] sent this out: Am I the only one getting blank replies from Joshua? I think there're a bunch of funny characters in his posts as I recently posted. Possibly some unicode thing-a-maroo? I can't read his messages. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **