Skip to main content
Participating Frequently
June 5, 2017
Answered

Where is the link that links my DIV to my CSS sheet here:?

  • June 5, 2017
  • 1 reply
  • 596 views

I have the following code:

<html>

<head>

<meta charset="utf-8">

<title>Bayside Beat: Cable cars</title>

<link href="styles/responsive.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="wrapper">

  <header>

...

</html>

So the question: How is the DIV linked to responsive.css where I can't see the class ID #wrapper in <link href...>

Can you explain to me what links lines 5 and 10 together?

This topic has been closed for replies.

1 reply

pziecina
pziecinaCorrect answer
Legend
June 5, 2017
Participating Frequently
June 5, 2017

So does the CSS apply to the entire html in my case? I added the #wrapper from the design mode and got option to add new CSS. I thought the CSS should only apply to my DIV

pziecina
Legend
June 5, 2017

An id can only be used once on a page, and only applies to the html element it is applied to.