Mind_nl
Sat 2 December 2006, 08:25 pm GMT +0100
This IE vs FF is driving me crazy... Finaly my whole site looks the same in both browsers. Theres only one little thing that isn't working the way I want it to work. I have a block of text that will be sized according to the browsers window size (i.e. 100% width) the text displayed inside this block is wider, so I've added the overflow: scroll; property. In FF I can now scroll to the side, but IE doesn't show any scrollbar, it just breaks the text and continues on the next line. To fix this same issue with a vertical scrollbar you can simply add a fixed height to make IE display the scrollbar.
Nikolas
Sat 2 December 2006, 08:28 pm GMT +0100
What about trying fixing that with javascript?
Also you can use properties like min-height or min-width (which don't work great, but some times help)
Mind_nl
Sat 2 December 2006, 08:31 pm GMT +0100
Even a fixed width doesn't work. IE just wraps the text to the next line and when the total text doesn't fit anymore a vertical scrollbar is added.
Nikolas
Sat 2 December 2006, 08:38 pm GMT +0100
Now I got it.
Haven't found a solution for that either (you can check it in the forums :) )
BTW what happens if you don't assign a width to this <div>?
Mind_nl
Sat 2 December 2006, 08:44 pm GMT +0100
Then it just takes the whole width of the collumn, but in some cases that is not wide enough. Especially when the visitor is running on a low ressolution. I've removed both height and width for you to see. This is how I want it to be.
btw: How did you like my web2.0 style logo 8)?
Nikolas
Sat 2 December 2006, 08:52 pm GMT +0100
I think javascript is the best solution then.
I think we had a post for this somewhere....
The logo looks nice :)
BTW when you are storing ips in the database with ip2long() use it this way :
sprintf('%u',ip2long($_SERVER['REMOTE_ADDR']))?>
otherwise you get 0 results in some cases (as ip2long also returns negatives, and mysql stores only positive values )
Mind_nl
Sat 2 December 2006, 09:01 pm GMT +0100
Actually the negative numbers are stored just fine, so I guess I'll leave it like it is. I don't want to make the tutorials to complicated...
Mind_nl
Sun 3 December 2006, 01:25 pm GMT +0100
When searching thru Google I find millions of people who want to get rid of the horizontal scrollbar, I seem to be the only one who wants to add it... I have now fixed my problem by using an iFrame.