Forum Moderators: open

Message Too Old, No Replies

two <br>, results different IE & FF

         

CodilX

4:56 pm on Apr 3, 2008 (gmt 0)

10+ Year Member



Hi :)

I have a question..

I added two <br /> values at the end of some text, and in FF it displays as that way it should, but in IE it shows as if there is only one <br /> value, how do I fix this?

penders

3:26 pm on Apr 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you sure this is not to do with how the text is wrapping in the two browsers? Are your BRs immediately after the text, or after some other element containing your text (a <p> perhaps)?

Can you post a code snippet?

CodilX

6:07 pm on Apr 4, 2008 (gmt 0)

10+ Year Member



How do I make sure the text is wrapping?

penders

10:46 am on Apr 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How do I make sure the text is wrapping?

If you have a fluid layout, you could try simply resizing your browser window? So that your BR's appear mid-line, not at the end. Does your last line of text completely fill the browser width? (Although it may be nothing to do with this?!)

Are you able to try your HTML code on it's own (no styles)? Do you still see this anomaly?

Just as an aside... is it possible to avoid using BR's altogether? BR's are generally not the prefered way to layout text, since it is not separating content from layout. With your text blocks in a <p>-block for instance, you can then alter the margins (in CSS) to control the space between them. Just a thought.

YesMom

9:14 pm on Apr 9, 2008 (gmt 0)

10+ Year Member



I have a related problem --

I recently updated (by hand, within my server's control panel file manager) over 1,500 pages of html.

Everything was fine -- I checked each page "live" and the code was just as I did it.

Then one day over a month later my pages had replaced ALL the double <br> codes with single <p> codes, which I NEVER used!

How on earth could this kind of site-wide code change have taken place? My server swears it never messes with client's web pages. But it is like some kind of bot went through and changed it all.

I'm soooo sad... it took me over 3 months of constant work to make the pages look great and now the code is scrunching all the lines of content together. :-(

Anyone have a clue?

YM

penders

10:33 pm on Apr 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I recently updated (by hand, within my server's control panel file manager) over 1,500 pages of html.

The online editor in some web host control panels is really only intended for the occasional edit. Or may be a few pages if there is no other option. But anyway, I assume the option of downloading and editing offline was not available to you?

I have encountered strange things whilst using these online editors (eg. via cPanel) as they do try to be 'helpful' at times. However, this would be when the document is saved, not months later! cPanel 11, for instance, offers an editor, a code-editor and an html-editor and switching between them can be a tad confusing!

For double <br> codes to be converted to <p> tags sounds as if you were editing the pages via a CMS type system, rather than editing the source of the page directly?! This forum, for instance, will convert two carriage-returns into a <p> (but only when the page is output to the browser - the source of the post, as the user entered it, is still intact - I assume). Which is a reasonable assumption. In fact, depending your styles, <br><br> and <p> should at least display similar.

Otherwise I have never come across the actual source files of a website being changed in this way.

If the source files of your site have indeed been permanently changed, it might still be possible to recover the 'look' of your site by editing a site-wide stylesheet?

g1smd

11:20 pm on Apr 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



*** now the code is scrunching all the lines of content together ***

Each block of content should be in a paragraph or list, and you should use CSS border and margin properties to alter the spacing.