/    Sign up×
Community /Pin to ProfileBookmark

CSS elements not being applied to the div tag

I’m currently working on a homework assignment, and I’m having a bit of a problem. For whatever reason, the “heading” div is not displaying the properties I applied to it in the CSS code. Here is my code and the page in which the error is happening on.

`<html>
<head>
<title>
</title>
<style type=”text/css”>

body {
background-color: #454F8C;
font-family: arial;
color: #454F8C;
}

#contentwrap {
background: #FFFFFF;
border: 8px #FF9E01 solid;
padding: 20px;
width: 800px;
margin: 20px auto 0px auto;
border-radius: 25px;

#heading {
font-size: 2.2em;
border-bottom: 6px #484452 double;
padding: 10px 0px 10px 0px;
text-align: center;
margin-bottom: 20px;
}

</style>
</head>
<body>

<div id=”contentwrap”>

<div id=”heading”>When this page loads, the value of the count field is increased by 1</div>

</div>

</body>
</html>`

https://stargate.ncc.edu/~kel3517/ITE254Homework5.php

The reason I saved this as a PHP is because I will eventually have to use that type of code on this page. I’m pretty sure it doesn’t affect the display of the CSS.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@daveyerwinNov 08.2021 — @JIMBOYKELLY#1639163


#contentwrap {

background: #FFFFFF;

border: 8px #FF9E01 solid;

padding: 20px;

width: 800px;

margin: 20px auto 0px auto;

border-radius: 25px;

you left out the closing curly

#heading {

font-size: 2.2em;
Copy linkTweet thisAlerts:
@JIMBOYKELLYauthorNov 08.2021 — @DaveyErwin#1639164 Thanks, that worked
×

Success!

Help @JIMBOYKELLY spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...