2 Replies - 1045 Views - Last Post: 07 April 2016 - 10:06 AM

#1 Simbeazy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 05-April 16

External css file wont link

Posted 07 April 2016 - 06:37 AM

Hello
My external css file wont link and it confusing me to death why, help please

<!DOCTYPE html>
<html>
	<head>
	<link rel="stylesheet" type="text/css" href="CSS/Css for order page.css">
	</head>
	<body>
	<fieldset>
		<center><h2>Order</h2></center>
			<center>
			Email:
			<input type="email" name="email" id="email" required />
			<br>
			<br>
			<form name="tickets">
			Date:
			<input type="date" name="date" id="date" min="today" required />
			<br>
			<br>
			<label for="Amount_of_tickets">Tickets for adults</label>
			<input type="number" min="0" name="Amount_of_tickets" id="tickets_1" value="32"  required />
			<br>
			<br>
			<label for="Amount_of_tickets">Tickets for Kids</label>
			<input type="number" min="0" name="Amount_of_tickets" id="tickets_2" value="20"  required />
			<br>
			<br>
          <input type="submit" id="submit" value="ticket booking" />
		<script type="text/javascript" src="JS/prcecal.js">
		</script>
		</center>
	</fieldset>
	</body>
</html>
	



Is This A Good Question/Topic? 0
  • +

Replies To: External css file wont link

#2 andrewsw   User is offline

  • palpable absurdity
  • member icon

Reputation: 6912
  • View blog
  • Posts: 28,592
  • Joined: 12-December 12

Re: External css file wont link

Posted 07 April 2016 - 06:48 AM

Your question is not about this site (dream.in.code), question moved to HTML & CSS forum.

The filename should not include spaces.

Is the file in a subfolder named CSS, from the current file's location?

How do you know it is not locating the file? Is there an error in your browser's console? If there isn't an error then the file is found and there is some issue with your CSS rules.



Note that the 'center' tag no longer exists, it has been obsolete for a long time. Use CSS to centre (and avoid a tutorial that uses this tag).
Was This Post Helpful? 0
  • +
  • -

#3 PreciousReed   User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 142
  • Joined: 22-January 16

Re: External css file wont link

Posted 07 April 2016 - 10:06 AM

Instead of <link rel="stylesheet" type="text/css" href="CSS/Css for order page.css">
It should be something like <link rel="stylesheet" type="text/css" href="CSS/page.css">
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1