2 replies [Last post]
jabirfatah
jabirfatah's picture
Offline
newbie
Last seen: 4 years 51 weeks ago
Timezone: GMT+2
Joined: 2014-07-23
Posts: 2
Points: 3

I coded to make a simple table with three rows and one column. That worked fine. But, trouble comes while making 1 px borders around the table using css. It doesn't make any border.

index.php class:

<!DOCTYPE html> 
<html lang="en"> 
 
<head> 
<meta charset="utf-8"> 
<title>My site</title> 
</head> 
<body> 
 
<table class="t"> 
<tr><td>first row</td></tr> 
<tr><td>second row</td></tr> 
<tr><td>third row</td></tr> 
 
</table> 
 
 
<script type="text/javascript" src="js/jqry.js"></script> 
<script type="text/javascript" src="js/selector.js"></script> 
</body> 
 
</html> 

style.css class:

.t,.t tr,.t td{ 
border: 1px solid red; 
} 

[NOTE1: I am giving a complete view how my folder looks like. C:\xampp\htdocs\jquery\css\style.css ; C:\xampp\htdocs\jquery\js\jquery.js ; C:\xampp\htdocs\jquery\index.php [NOTE2: I was intended to use jQuery functionality later on, thats why I have jQuery folder(anyway that has nothing to do with it, isn't it?]

I attached the photo how does my output look like in google crome. I tried with different browser. they have the same problem.

AttachmentSize
output.jpeg25.52 KB
jabirfatah
jabirfatah's picture
Offline
newbie
Last seen: 4 years 51 weeks ago
Timezone: GMT+2
Joined: 2014-07-23
Posts: 2
Points: 3

this problem is solved now.

its solved by me.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 22 hours 43 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9738
Points: 3817

It would be a Good Thing

Please post your solution, it may help others who bump into the same issue.

cheers.

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.