Jump to content

handling css?


divadiva

Recommended Posts

For some reason css is not included in detail view.

 

Here is the code:

 


<HEAD>
<TITLE>; Inventory Database > View
	Inventory</TITLE> <LINK REL="stylesheet" TYPE="text/css" HREF="style.css">   
  </HEAD> 
<FORM ACTION="view.php" METHOD="POST">
  <?


********** CSS IS NOT INCLUDED IN NEXT PORTION*****is THERE A WAY TO INCLUDE IT?


<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100?"> 
	  <TBODY> 
		 <TR> 
									 <TD ALIGN="CENTER"><A HREF="view.php">New Search</A></TD> 
			 </TR> 

 

 

Link to comment
Share on other sites

I see a reason. This is a bad code:

 

No, html is not that strict. It would not validate for xhtml, however with the first one.

 

All you did was change from uppercase to lower and added the / which in no way effects HTML other than making it validate with W3C standards for XHtml.

Link to comment
Share on other sites

Thank you all for replying I tried adding lower case.It still doesnt work.

 

Also,I have added ?  as earlier I had asp tags .

 

here is my css file :

html {
  margin:0px 0px 0px 0px;
}

body {
color: black; font-family: Verdana, Arial; 
font-size: 12px; 
font-weight: normal; 
margin:0px 0px 0px 0px;
background:url("backg1.gif");
}

p,td,li {
color: black;
font-family: Verdana, Arial;
font-size: 11px;
}

.maintable {
  background: url('backg.gif');
  background-repeat:no-repeat;
}

.head {
font-size:14px;
font-family: Arial;
font-weight:bold;
color:#FFFFFF;
}

.red {
color:#FF0000;
}

.blue {
color:#0000FF;
}

.dtable {
  background-color:#027EC2;
}
.dtable TD {
  background-color:#FFFFFF;
}
.dtable TH {
  font-weight:bold;
  background-color:#B6DAF2;
}

.dtable2 TD {
  font-weight:bold;
  background-color:#B6DAF2;
}

.dtable3 TD {
font-size: 9px;
}

.gtable {
  background-color:#BFBFBF;
}
.gtable TD {
  background-color:#FFFFFF;
}
.gtable TH {
  font-weight:bold;
  background-color:#B6DAF2;
}

.ntable {
  background-color:#FFFFFF;
}
.ntable TD {
  background-color:#FFFFFF;
}
.ntable TH {
  font-weight:bold;
  background-color:#FFFFFF;
}

.otable {
  background-color:#FFFFFF;
  border-collapse:collapse;
}
.otable TD {
  background-color:#FFFFFF;
  border-color:#027EC2;
  border-style:solid;
  border-width:1px;
}
.otable TH {
  font-weight:bold;
  background-color:#B6DAF2;
  border-color:#027EC2;
  border-style:solid;
  border-width:1px;
}
.otable1 TD {
  background-color:#EEEEEE;
  border-color:#027EC2;
  border-style:solid;
  border-width:1px;
}
.otable2 TD {
  background-color:#FFFFFF;
  border-width:0px;
}

A:link {
  color: #16629A;
  TEXT-DECORATION: none;
}
A:visited {
  color: #16629A;
  TEXT-DECORATION: none;
}
A:hover {
  color: #FF0000;
  TEXT-DECORATION: none;
}

.menu {
color: #FFFFFF;
}
.menu A:link {
  color: #FFFFFF;
  TEXT-DECORATION: none;
}
.menu A:visited {
  color: #FFFFFF;
  TEXT-DECORATION: none;
}
.menu A:hover {
  color: #FFFF00;
  TEXT-DECORATION: none;
}

.hr {
  color: #027EC2;
  height: 1px;
}



Link to comment
Share on other sites

i used that stylesheet with this file and everything worked fine:

<HTML>
  <HEAD>
    <TITLE>; Inventory Database > View Inventory</TITLE>
    <LINK REL="stylesheet" TYPE="text/css" HREF="style.css">   
  </HEAD>
  <BODY>
    <FORM ACTION="view.php" METHOD="POST">
      <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100?">
        <TBODY>
          <TR>
            <TD ALIGN="CENTER"><A HREF="view.php">New Search</A></TD>
          </TR>
        </TBODY>
      </TABLE>
    </FORM>
  </BODY>
</HTML>

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.