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.
problem with multiple CSS pages
Page 1 of 18 Replies - 624 Views - Last Post: 04 September 2012 - 12:41 PM
Replies To: problem with multiple CSS pages
#2
Re: problem with multiple CSS pages
Posted 04 September 2012 - 03:58 AM
You need to use < and > instead of [ and ].
#3
Re: problem with multiple CSS pages
Posted 04 September 2012 - 04:08 AM
I am using <>, dreamcode uses [].
#4
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!):
As for your issue, can you copy/paste your code in code tags? There may be a syntax error between your links.
<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.
#5
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!
#6
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?
#7
Re: problem with multiple CSS pages
Posted 04 September 2012 - 06:47 AM
clarissa_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.
- YouTube - TheNewBoston XHTML & CSS Tutorials
- YouTube - TheNewBoston HTML5 Tutorials
- W3Schools Tutorials
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.
#8
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.
#9
Re: problem with multiple CSS pages
Posted 04 September 2012 - 12:41 PM
Also check that you are posting it in the head.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote








|