Jump to content

my page works with ie and aol explorer but not with firefox and opera


brown2005

Recommended Posts

#header
{
margin: 0px auto;
width: 1000px;
background: url('http://www.allinthissite.co.uk/include/images/bar.gif');
font-size: 11px;
font-family: Arial, Helvetica, sans-serif;
}

#header #left
{
float: left;
}

#header #right
{
float: right;
}

#header ul
{
margin: 0px auto;
padding: 0px;
}

#header ul li
{
padding: 0px;
display: inline;
list-style: none;
}

#header a.left-link
{
padding: 2px 10px 2px 10px;
color: #fff;
text-decoration: none;
float: left;
border-right: 1px solid #fff;
font-weight: bold;
}

#header a.right-link
{
padding: 2px 10px 2px 10px;
color: #fff;
text-decoration: none;
float: left;
border-left: 1px solid #fff;
font-weight: bold;
}

#header a:hover
{
background-color: #0066FF;
color: #fff;
}

it just says css file
Link to comment
Share on other sites

echo("<div id='header'>
      <ul id='left'>
        <li><a class='left-link'></a></li>
        <li><a class='left-link'>Welcome, $session_member&nbsp;&nbsp;</a></li>
        <li><a class='left-link'>Balance:&nbsp;&nbsp;&pound;&nbsp;&nbsp;$session_balance&nbsp;&nbsp;</a></li>
      </ul>
      <ul id='right'>
        <li><a href='$config_website_url/$config_website_url_topic/index.php?page=account&action=home' class='right-link'>My Account</a></li>
        <li><a href='$config_website_url/$config_website_url_topic/files/account/logout.php' class='right-link'>Logout</a></li>     
        <li><a class='right-link'></a></li>
      </ul>       
      </div>");
Link to comment
Share on other sites

ohhh, got it.

Since all your elements inside the div tag are floated, you'll need to clear them. otherwise, they will go over the div, and the div won't show up.

You'll need to add this to the style
[code]
.clear_float{clear:both;
    font-size:1px;
    overflow:hidden;}
[/code]

and before you close your div
[code]
.... your code....
<div class="clear_float">&nbsp;</div>
</div>
[/code]
Link to comment
Share on other sites

echo("<div id='header' class='clear_float'>
      <ul id='left'>
        <li><a class='left-link'></a></li>
        <li><a class='left-link'>Welcome, $session_member&nbsp;&nbsp;</a></li>
        <li><a class='left-link'>Balance:&nbsp;&nbsp;&pound;&nbsp;&nbsp;$session_balance&nbsp;&nbsp;</a></li>
      </ul>
      <ul id='right'>
        <li><a href='$config_website_url/$config_website_url_topic/index.php?page=account&action=home' class='right-link'>My Account</a></li>
        <li><a href='$config_website_url/$config_website_url_topic/files/account/logout.php' class='right-link'>Logout</a></li>     
        <li><a class='right-link'></a></li>
      </ul>       
      </div>");

it works but there are a few problems... if you look in firefox u will see please?

any ideas?

thanks
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.