user4117456
user4117456

Reputation:

Text decoration will not work

so my code is:

.bar {
 float: right;
 height: 283px;
 width: 567px;
 background: url('News.png');
 margin-top: 5%;
 margin-right: 21%;

}

.bar > #text {

margin-top: 6%;
margin-right: 10%;
margin-left: 6%;
width: 100%

.bar > #text > a {

text-decoration: none;
color: #000000;

}

I really do not know why 'text-decoration' will not work, Please help me and thanks in advance.

Upvotes: 1

Views: 65

Answers (1)

Derek Story
Derek Story

Reputation: 9583

This line was not closed:

.bar > #text {

margin-top: 6%;
margin-right: 10%;
margin-left: 6%;
width: 100%

Needs to be:

.bar > #text {

margin-top: 6%;
margin-right: 10%;
margin-left: 6%;
width: 100%

}

Upvotes: 4

Related Questions