Results 1 to 13 of 13
Thread: IE and this <br> issue
Aug 9, 2006, 19:40 #1
IE and this <br> issue
I am so confused about what is going on with this code I have. Below is a mini screenshot of where I am having this code issue:
Notice the part where I have circled. It's fine and stuff. But here is the code for that part:
基督教家庭服務中心<br> 翠林綜合職業復康服務<br> <br> <br> 電話: 2703 6670<br> 傳真: 2703 6767<br> 電郵: <a href="mailto:firstname.lastname@example.org">email@example.com</a>
So I was wondering if anyone has an explanation for this wierd thingy?
Here is the link to the actual website:
Aug 9, 2006, 19:46 #2
This information I am grabbing is coming from a CMS I built. When the users make a line break the PHP uses the function nl2br to convert all the line breaks into <br> which is why I can't use <p> here.
Any other alternative?
Aug 9, 2006, 19:51 #3
Aug 9, 2006, 19:58 #4
Aug 9, 2006, 20:02 #5
Aug 9, 2006, 20:17 #6
Aug 9, 2006, 20:58 #7
Aug 9, 2006, 21:10 #8Originally Posted by wozbk
Also, I've added the code margin: 0 and padding: 0 already....
Aug 9, 2006, 21:15 #9
My bad - I just noticed you had the wildcard rule in there already.
I see two line breaks in both IE6 and Firefox 1.5 (though I am on Linux I am running the "real" IE6 for all practical purposes).
If it is possible to retrofit your CMS to wrap sections of text in paragraphs that would be more semantic and ideal - although it may be a pain to do.
Doesn't mean we can't get what you have to work though.
Aug 9, 2006, 21:37 #10
OK - on further review, there are two line breaks in Firefox and one in IE6 - visually (as you already noted).
It has been a long day - and my eyes is mad tied.
It would seem you have two choices - feed different CSS to IE via a conditional comment or some other means or use <p> tags to wrap related text.
The "difference" you are pointing out is a difference most would be willing to deal with/compromise on and live with, as a result of such varied rendering via the different browsers.
Aug 10, 2006, 01:36 #11
Bah. How come sitepoint can do the <br> trick but I can't get it to work.......
Must I really use <p>.......
Aug 10, 2006, 06:51 #12
- Join Date
- Jan 2003
- Hampshire UK
- 183 Post(s)
- 6 Thread(s)
As mentioned above you should never use breaks just to make space in a layout but if you are restricted by your cms then you could try this.
Aug 10, 2006, 19:28 #13
Paul you truly are a CSS guru.