I am creating a webiste where I want one div over an another. This isn't my main page, just an example.
http://oseveno.tk/example.html
In chrome it works great, the text is where it is supposed to be.
In firefox, it adds a linebreak that I don't want.
And in IE... the divs don't want to be over each other.
How can I fix this please?
HTML Code:
<html>
<body>
<!-- description box -->
<div style="width:500px;float:right;border:solid green;position:relative;z-index:2;background:url('tbg.png');border-width:0 0 0 2px;padding:20px;font-family:arial black;">
<p style="color:blue;font-size:25px;">
Header
</p>
<p>Some text that force the user to register:D<br><br><br><br><br><br>
<a href="?p=register"><img src='register.png' style="border:0"></a>
</p>
</div>
<br><br><br>
<!-- link 1 -->
<div style="background:url(link.png) no-repeat;height:53;">
<img src='img/1.png' width='50' height='53' align='left' alt='!'>
<span style='font-weight:bold;font-size:25px;white-space:nowrap;'> <span id="title1">a long header - it is longer then possible:D</span></span><br>
<span style='font-weight:bold;font-size:15px;white-space:nowrap;'> <span id="text1">bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla</span></span>
</div>
<br>
<!-- link 2 -->
<div style="background:url(link.png) no-repeat;height:53;">
<img src='img/1.png' width='50' height='53' align='left' alt='!'>
<span style='font-weight:bold;font-size:25px;white-space:nowrap;'> <span id="title2">short header this time.</span></span><br>
<span style='font-weight:bold;font-size:15px;white-space:nowrap;'> <span id="text2">This text does not do a linebreak.</span></span>
</div>
</body>
</html>
If the browser is a bit over 1 000 pixels it looks pretty good, but if you resize it it looks bad.
Help please?
Thanks!
Last edited by henke8100; 02-17-2010 at 02:23 PM..
|