3 Replies - 472 Views - Last Post: 08 September 2012 - 09:15 PM

#1 qadeerhussain007  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 05-July 12

css styling problem

Posted 07 September 2012 - 08:57 AM

hello friends my html file is

<!DOCTYPE html>
<html>
<head>
<title>
</title>
<link rel="stylesheet" type="text/css" href="test">

</head>
<body>
<div id="check">
<p> hello <p>
</div>
</body>
</html>



and my css file is...........

#check
{
color:red;
}

when i use internal style sheet it change the color but when i use external style sheet it dont perform any action please help me in that problem.......................

This post has been edited by Dormilich: 10 September 2012 - 01:01 AM
Reason for edit:: please use [code] [/code] tags when posting code


Is This A Good Question/Topic? 1
  • +

Replies To: css styling problem

#2 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 6095
  • View blog
  • Posts: 10,531
  • Joined: 28-September 07

Re: css styling problem

Posted 07 September 2012 - 08:59 AM

You have an incomplete file path in your stylesheet inclusion.

href="test"



is not a complete file name.
Was This Post Helpful? 3
  • +
  • -

#3 DaneAU  Icon User is offline

  • Great::Southern::Land
  • member icon

Reputation: 284
  • View blog
  • Posts: 1,617
  • Joined: 15-May 08

Re: css styling problem

Posted 08 September 2012 - 06:43 AM

Just to hold his hand your code for the link should be something like

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

Was This Post Helpful? 0
  • +
  • -

#4 fatalpriapism  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 39
  • Joined: 17-August 12

Re: css styling problem

Posted 08 September 2012 - 09:15 PM

Assuming his CSS is in the same location as his HTML. At this level, I would guess he hasn't set up separate CSS and image folders.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1