Jump to content

positioning divs not working on more primitive browsers


lAZLf

Recommended Posts

On my website I made two divs inside another div. The container div is floating right, and one div inside it is floating right, and another is floating left. On the latest versions of safari, firefox, internet explorer and google chrome it works just fine. However, on more primitive browsers (i.e. browser on my blackberry or an old version of firefox for windows) they still float left and right, but one is above the other instead of being on the same level. (its on http://svidler.net/ if you want to see it)

 

HTML:

<div id="leftcontent">

<div class="left">
<a href="?page=contact" class="advert"><div class="adverttitle">advertise here</div></a><br />
<a href="?page=contact" class="advert"><div class="adverttitle">advertise here</div></a><br />
<a href="?page=contact" class="advert"><div class="adverttitle">advertise here</div></a>
</div>

<div class="right">
  
	<div id="login">
	<form action="login.php" method="post">
	<table cellspacing="0">
	<tr><td><input type="text" id="username"name="username"width="300" value="username" onFocus="emptythefield(); glow();" onblur="fillthefield(); glow();"/></td></tr>
	<tr><td><input type="password" id="password"name="password"width="300" value="password" onFocus="emptythefield2();" onblur="fillthefield2();"/></td></tr>
  	<tr><td id="submitrow"><input type="submit" value="login" class="btn"/></td></tr>
	</table>
	</form>
</div><div id="recentposts">
    <h2>Recent Posts</h2><br />
    <a href="index.php?type=comments&page=blogpost&id=19" class="recentpostlink">A rite of passage</a><br /><a href="index.php?type=comments&page=blogpost&id=18" class="recentpostlink">Portfolio page loading time shortened</a><br /><a href="index.php?type=comments&page=blogpost&id=17" class="recentpostlink">anonymously comment on anything</a><br /><a href="index.php?type=comments&page=blogpost&id=16" class="recentpostlink">design changes be gone!</a><br /><a href="index.php?type=comments&page=blogpost&id=15" class="recentpostlink">portfolio page and other stuff</a><br /><a href="index.php?type=comments&page=blogpost&id=12" class="recentpostlink">this is a test</a><br /></div>
</div>
</div>

 

CSS:

#leftcontent {
float:right;
width:540px;
display:table-cell;
}

.right {
float:right;
}
.left {
float:left;
}

 

 

 

Does anyone know why this might be happening?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.