Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Ie Explorer Not Displaying Last Button
Old 01-30-2008, 10:37 AM Ie Explorer Not Displaying Last Button
Rajaie's Avatar
Super Talker

Posts: 128
Trades: 0
As you can see, Ie doesn't show the last button, although it's supposed to fit perfectly, below is the css and html code as well as screens from both.

CSS
Code:
<?php
  header('Content-type: text/css');
  ob_start("compress");
  function compress($buffer) {
    // remove comments
    $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
    // remove tabs, spaces, newlines, etc.
    $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
    return $buffer;
  }

?>
/* #004A7F */
/* #C0C0C0 */
html,body {
margin: 0;
background-image: url('bg.png');
background-repeat :repeat-x;
background-color: #C0C0C0;
}


div#wrapper {
margin-left: 75px;
min-height: 900px;
width: 900px;
}

/* header area */
div#header {
overflow: hidden;
background-image: url('header.png');
background-position: left;
background-repeat: no-repeat;
height: 100px;
width: 900px;
background-color: white;
border: 1px solid black;
}
div#navmenu {
overflow: hidden;
color: white;
height: 25px;
width: 900px;
background-color: white;
border-bottom: 1px solid black;
border-right: 1px solid black;
border-left: 1px solid black;
}
.button {
text-align: center;

width: 100px;
line-height: 20px;
display: block;
float: left;
height: 25px;
background-image: url('navbg.png');
background-repeat :no-repeat;
font-family: Tahoma, Arial, Helvetica, Sans-serif;
color: black;
font-size: 90%;
text-decoration: none;
}
.button:hover {
text-decoration: underline;
}
/* content area */
div#main {
overflow: hidden;
padding-top: 1px;
padding-bottom: 1px;
background-color: white;
min-height: 800px;
width: 900px;
border-right: 1px solid black;
border-left: 1px solid black;
}
div#article {
border-left: 1px dotted black;
border-right: 1px dotted black;
width: 880px;
overflow: hidden;
margin-left: auto;
margin-right: auto;
margin-top: 5px;
margin-bottom: 5px;
}
div#articledetails {
overflow: hidden;
width: 880px;
background-color: #97B3C6;
height: 77px;
border-top: 1px dotted black;
}
div#articlecontent {
overflow: hidden;
border-top: 1px dotted black;
width: 880px;
height: 150px;
}
div#articleimages {
border-top: 1px dotted black;
overflow: hidden;
border-bottom: 1px dotted black;
border-right: 1px dotted black;
width: 880px;
height: 100px;
}
/* footer area */
div#footer {
overflow: hidden;
line-height: 60px;
text-align: center;
height: 60px;
width: 900px;
background-color: white;
border: 1px solid black;
}
<?php ob_end_flush();?>

HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Wireless Shack</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="iestylesheet.php">
<![endif]-->
<link rel="stylesheet" type="text/css" href="stylesheet.php"/>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
<div id="wrapper">
<a href=index.php><div id="header"></div></a>
<div id="navmenu">
<a href="#" class="button">HomePage</a> 
<a href="#" class="button">Downloads</a> 
<a href="#" class="button">Articles</a> 
<a href="#" class="button">Links</a> 
<a href="#" class="button">Stats</a> 
<a href="#" class="button">Take Part</a>
<a href="#" class="button">About Us</a>
<a href="#" class="button">Contact Us</a> 
<a href="#" class="button">Login</a>
</div>
<div id="main">
<div id="article"> 
<div id="articledetails">Article Details Go Here</div>
<div id="articlecontent">Article Goes Here</div>
<div id="articleimages">Article Images Go Here</div>
</div>
</div>
<div id="footer">&copy; 2008-2009 The Wireless Shack</div>
</div>
</body>
</html>
--------------------------------


Rajaie is offline
Reply With Quote
View Public Profile Visit Rajaie's homepage!
 
 
Register now for full access!
Old 01-30-2008, 11:04 AM Re: Ie Explorer Not Displaying Last Button
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The problem isn't really IE in this case, it's your code. What you want is a horizontal unordered list.

http://www.jacorre.com/design/cssnavmenus.htm
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 01-30-2008, 03:00 PM Re: Ie Explorer Not Displaying Last Button
Rajaie's Avatar
Super Talker

Posts: 128
Trades: 0
Thanks for the link, I'll be sure to try it and let you know the results
Rajaie is offline
Reply With Quote
View Public Profile Visit Rajaie's homepage!
 
Reply     « Reply to Ie Explorer Not Displaying Last Button
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19307 seconds with 12 queries