8 Replies - 726 Views - Last Post: 04 September 2012 - 12:41 PM

#1 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

problem with multiple CSS pages

Posted 04 September 2012 - 03:41 AM

I have created a CSS page and have linked an HTML page to it successfully, but I am unable to link any others and I cant figure out where I am going wrong. I have [link rel="stylesheet" type="text/css" href="css/fixed_layout.css" /] on both the first and second page.
Is This A Good Question/Topic? 0
  • +

Replies To: problem with multiple CSS pages

#2 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 5935
  • View blog
  • Posts: 10,346
  • Joined: 28-September 07

Re: problem with multiple CSS pages

Posted 04 September 2012 - 03:58 AM

You need to use < and > instead of [ and ].
Was This Post Helpful? 0
  • +
  • -

#3 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

Re: problem with multiple CSS pages

Posted 04 September 2012 - 04:08 AM

I am using <>, dreamcode uses [].
Was This Post Helpful? 0
  • +
  • -

#4 Sho Ke  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 110
  • View blog
  • Posts: 250
  • Joined: 13-October 11

Re: problem with multiple CSS pages

Posted 04 September 2012 - 04:20 AM

If you're referring to code tags, it means having "[ code ]" at the start of your code, an "[/ code ]" at the end, without the spaces. Here's an example of what it should look like(Always preview your posts to make sure it works correctly!):
<link rel="stylesheet" type="text/css" href="blah.css" />



As for your issue, can you copy/paste your code in code tags? There may be a syntax error between your links.
Was This Post Helpful? 0
  • +
  • -

#5 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

Re: problem with multiple CSS pages

Posted 04 September 2012 - 04:30 AM

I have tried that, how you wrote it is how I have written it, I have even tried to copy and paste the working page and that wont even link as a second HTML page grr!
Was This Post Helpful? 0
  • +
  • -

#6 Sho Ke  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 110
  • View blog
  • Posts: 250
  • Joined: 13-October 11

Re: problem with multiple CSS pages

Posted 04 September 2012 - 06:05 AM

Err.. I was using that just as an example of how the [ code ] tags work. Again, can we see your full source code?
Was This Post Helpful? 0
  • +
  • -

#7 StefanOnRails  Icon User is offline

  • D.I.C Head

Reputation: 35
  • View blog
  • Posts: 105
  • Joined: 31-July 12

Re: problem with multiple CSS pages

Posted 04 September 2012 - 06:47 AM

View Postclarissa_milner, on 04 September 2012 - 01:30 PM, said:

I have tried that, how you wrote it is how I have written it, I have even tried to copy and paste the working page and that wont even link as a second HTML page grr!

Hi clarissa_milner, I saw you posting this kind of questions before and you seem to be pretty new into this Web Design stuff, so my advice is to check some tutorials to really get the basics before jumping into real web coding.
Below I posted some of the most reliable sources I used when I started learning HTML / CSS.


Now, related to your issue, the following syntax is used to define a css link:
<link rel="stylesheet" type="text/css" href="css/fixed_layout.css" />
As you see there's no difference between this and your syntax, so the mistake must be somewhere else. Are the two HTML pages in the same folder? As Sho Ke said, maybe it would be useful to post the entire source code of the second page.
Was This Post Helpful? 1
  • +
  • -

#8 AceKYD  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 33
  • Joined: 01-July 12

Re: problem with multiple CSS pages

Posted 04 September 2012 - 07:00 AM

I think you should cross check the location of your html and css files.
Was This Post Helpful? 0
  • +
  • -

#9 Utael  Icon User is offline

  • D.I.C Head

Reputation: 55
  • View blog
  • Posts: 210
  • Joined: 12-December 11

Re: problem with multiple CSS pages

Posted 04 September 2012 - 12:41 PM

Also check that you are posting it in the head.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1