0

Hi, I am trying to create navigation bar, each word suppose to give a distance with other word. Ex.: Home About etc. yet, I am unable to create such things. At first, I am trying to create it with normal spacing inside a <p> yet, whenever I view it in IE it appears differently (no spacing). I tried another way which is by using css yet an errors appears:

A sharing violation occured while accessing C:\xampp\htdocs\php_template2\admin\administrator.php

administrator.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Administrator</title>

<link href="style-admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="677" height="1008" border="0">
  <tr>
    <td height="114" bordercolor="#ECE9D8" scope="col"><div id="header">
      <p>header</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </div></td>
  </tr>
  <tr>
    <td height="57" bordercolor="#ECE9D8"><p>navigation</p>
    
    <p class = "pos_fixed">Home Event Gallery Contact Us</p></td>
  </tr>
  <tr>
    <td height="730" bordercolor="#ECE9D8"><p>News Manager Category Manager </p>
      <p>img img</p>
    <p>&nbsp;</p>
    <p>Event Manager </p>
    <p>img</p></td>
  </tr>
  <tr>
    <td height="95" bordercolor="#ECE9D8">footer</td>
  </tr>
</table>
</body>
</html>

Why is it?

style-admin.css

@charset "utf-8";
/* CSS Document */

#header {
	background-color: #CCCCCC;
}

p.pos_fixed
{
position:fixed;
top:30px;
right:5px;
}

Any clue ? Also, how to create a nice spacy navigation bar (there is adequate spacing between each word) ?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by almostbob
0

sharing violation is OS related, liely causes include the file is still open for editing in an editor that locks the file when you try to view it in the browser

tables are not used for layout tools; tables are for displaying tabular data

suggest you google any of the thousands of css menu tutorials and get up to, or close to, current practice

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.