Forum Moderators: not2easy

Message Too Old, No Replies

Website showing differently in Linux than in Windoze

Text dropping outside a box

         

BenTrein

7:17 am on Apr 27, 2010 (gmt 0)

10+ Year Member



On my website, I use a separate CSS file. In that file I have the following line - creating a box inside a screenwide container:

#detail { position:absolute; top:75px; left:35px; width:290px; border:#FFD outset medium; height:228px; font-family: Verdana, Geneva, sans-serif; font-size:15px; color:#FFD; padding:10px; }

Now in that box I have in the html a list, like this:

<div id="detail">DETAILS:<br />
<ul>
<li>Blabla</li>
<li>BlablaBlabla</li>
<li>Blabla</li>
<li>BlablaBlablaBlabla</li>
<li>BlablaBlablaBlablaBlabla</li>
<li>Blabla</li>
<li>BlablaBlablaBlablaBlabla</li>
<li>7 Blabla</li>
<li>1.4 BlablaBlablaBlabla</li>
</ul>
</div>

In Windows - with whatever browser, but let's say Firefox - this shows up great. Fits perfectly in the box. Firefox having all the standard settings and such. In Linux - tried on both OS's on several machines - the text is longer than the box, and the bottom line of the list falls under the bottom border of the box. Also in Firefox with all its standard settings.

Does anyone have any idea what I'm doing wrong? I haven't been able to check the rendering properly on a Mac.

BenTrein

8:07 am on Apr 27, 2010 (gmt 0)

10+ Year Member



My apologies. CSS charset "utf-8", and my doctype is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

lavazza

8:12 am on Apr 27, 2010 (gmt 0)

10+ Year Member



Does your CSS validate [jigsaw.w3.org]?

What about your xHTML [validator.w3.org]?

BenTrein

8:42 am on Apr 27, 2010 (gmt 0)

10+ Year Member



The CSS gave 2 errors - neither had anything to do with the box in question - and 5 warnings about same backgroundcolor in different overlapping boxes. I ignored the warnings, fixed the errors, but that didn't solve the problem.

The xHTML checks out, except for 108 errors found in the links to google-maps websites. I'm going to ignore these, as they're inside the href="..." quotes. None of the errors are in any way related to the box in question.

Let me stress again, that it works fine in any browser on a Windoze platform, but not in Linux... :S

aguimo

8:43 pm on Apr 27, 2010 (gmt 0)

10+ Year Member



Is it necessary to set an absolute height for the box? If it is, try setting the line-height property. Does it still render properly if somebody doesn't have Verdana font and it uses Geneva or sans-serif?