Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CSS not getting applied

 
Anjana Ravindran
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

CSS is not getting applied in the html. It works in my system and i tried to do the application setup in my friend's system. My application is not working in his. ie., css not getting applied in his system. So, i tried a sample html and sample css to find out. It didnt work in his system. Please give me some pointers where the problem could be.

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

<table width="750" border="0" cellspacing="1" cellpadding="1">
<tr>
<td class="pageTitle">Test Style Sheet</td>
</tr>
</table>

style.css
---------
.pageTitle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
line-height: normal;
background-color: #0072bc;
color: #FFFFFF;
background-position: center;
}
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly where in the application directory does the style.css file sit?
 
Anjana Ravindran
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I placed in the same location as test.html
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jwala",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic