[eluser]solid9[/eluser]
I check everything.
And I can't seem to find the problem.
The CSS topmenu.css should format the menu nav <ul> and <ui>
But it won't show properly.
View: front_page.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>title</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('css/style.css'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url('css/topmenu.css'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url('css/header.css'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url('css/body.css'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url('css/footer.css'); ?>" media="screen" />
[removed][removed]
</head>
<body>
<div id='pagewrap'>
<div id="header">
<?php $this->load->view('header'); ?>
</div>
<div id="body1">
<?php $this->load->view('body'); ?>
</div>
<div id="footer">
<?php $this->load->view('footer'); ?>
</div>
</div>
</body>
</html>
View: header.php
Code:
<div class='wrapper-head'>
<div class='logo'>
<img name="logoholder" src="<?php echo base_url('img/barterlogo.jpg'); ?>" width="200" height="130" alt="barterswapping.com">
</div>
<div class='login' align="right">
<table border="0" bgcolor="red"><tr><td>
<?php echo form_open("main/login");?>
<?php echo form_input('$identity', 'Email or Username');?>
<?php echo ' '; ?>
<?php echo form_input('$password', 'Password');?>
<label for="remember">Remember Me:</label>
<?php echo form_checkbox('remember', '1', FALSE);?>
<?php echo ' '; ?>
<?php echo form_submit('submit', 'Login');?>
<?php echo form_close();?>
</td>
<td>
<?php echo anchor('main/register', 'Register', 'title="Reigster"'); ?>
</td>
<td> </td>
<td>
<?php echo anchor('main/forgotpass', 'Forgot Password?', 'title="ForgotPassword"'); ?>
</td></tr></table>
</div>
<div class='menu'>
<div id="navcontainer">
<table><tr>
<ul>
<td><li><a href="#">How it works?</a></li></td>
<td><li><a href="#">How to trade?</a></li></td>
<td><li><a href="#">Events</a></li></td>
</ul>
</tr></table>
</div>
</div>
</div>
CSS: topmenu.css
Code:
#navcontainer ul
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#navcontainer ul li {
display: inline;
}
#navcontainer ul li a
{
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #036;
}
#navcontainer ul li a:hover
{
color: #fff;
background-color: #369;
}
By the way this is the website look like,
http://barterswapping.com/main/index2/
Thanks in advanced.