Jump to content

float right working and not working


brown2005

Recommended Posts

the below codes works well in

 

internet explorer

opera

 

but not in

 

netscape

firefox

 

any ides please

 

 

php code

 

<?php

session_start();

echo"	<div id='navigation-bar'>
    		
			<p class='left'>

				<a href='$config_website_url/$config_website_url_topic/index.php?page=home'>HOME</a>";

				if($page == "home"){ echo" "; }else{ echo"  |  <a href='$config_website_url/$config_website_url_topic/index.php?page=$page'>"; echo strtoupper($page); echo"</a>"; } 

				if($view == ""){ echo" "; }else{ echo"  |  <a href='$config_website_url/$config_website_url_topic/index.php?page=$page&view=$view'>"; echo strtoupper($view); echo"</a>"; }

				if($action == ""){ echo" "; }else{ echo"  |  <a href='$config_website_url/$config_website_url_topic/index.php?page=$page&view=$view&action=$action'>"; echo strtoupper($action); echo"</a>"; }					

echo'		</p>

				<p class="right">

				<form action="" method="post" name="drop">'; ?>

					<select name="link"  style="font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 11px; width:108px" onchange="if (this.options[selectedIndex].value != '') location.href=this.options[selectedIndex].value">

<?	echo'					<option>Quick Links          </option>				
						<option> </option>					
						<option value="index.php?page=home">Home</option>
						<option> </option>					
						<option value="index.php?page=test">test</option>

					</select>

				</form>
			</p>
			  			
		</div>';

?>

 

css code

 

/* CSS Document */

/* navigation-bar */

	#navigation-bar 
	{

		clear: both;

		margin-top: 2px;

		height: 32px;						

		background-color: #4c4945;

		font-family: Arial;
		font-weight: bold;
		font-size: 12px;

		color: #ffffff;

	}

	#navigation-bar p.left
	{
	  
		float: left;

		padding: 10px;

	}

	#navigation-bar p.left a:link
	{

		font-family: Arial;
		font-weight: bold;
		font-size: 12px;

		color: #ffffff;

		text-decoration: none;

	}

	#navigation-bar p.left a:visited
	{

		font-family: Arial;
		font-weight: bold;
		font-size: 12px;

		color: #ffffff;

		text-decoration: none;

	}

	#navigation-bar p.left a:hover
	{

		font-family: Arial;
		font-weight: bold;
		font-size: 12px;

		color: #ffffff;

		text-decoration: underline;

	}

	#navigation-bar p.right
	{
	  
		float: right;

		padding: 7px 10px 7px 10px;

	}												

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.