1 reply [Last post]
oscarsmart
oscarsmart's picture
Offline
newbie
Vantaa
Last seen: 7 years 20 weeks ago
Vantaa
Timezone: GMT+3
Joined: 2014-07-17
Posts: 2
Points: 3

HTML code:

Mom and Dad

The smart's gallery

CSS code:

h1 {
color: red;
}

@font-face {
font-family: Fine Collegeimport;
src: url("Fine College.ttf");
}

#main {
font-family: Fine Collegeimport;
font-size: 1.25em;
margin: 0 25% 0 25%;
background-color: #00FF33;
border: 2px;
}

Hi
My problem is that the borders are not showing on the id-selected h1 header and the background-color #00FF33=green, goes beyond width wise the h1 header. How can I get the borders to show on the h1 header and get the background-color to only cover the width of the h1 header and not any blank spaces of the document?

Thanks
Oscar

oscarsmart
oscarsmart's picture
Offline
newbie
Vantaa
Last seen: 7 years 20 weeks ago
Vantaa
Timezone: GMT+3
Joined: 2014-07-17
Posts: 2
Points: 3

Code posted again

Taru and Donald Smart

The smart's gallery

CSS code
h1 {
color: red;
}

@font-face {
font-family: Fine Collegeimport;
src: url("Fine College.ttf");
}

#main {
font-family: Fine Collegeimport;
font-size: 1.25em;
margin: 0 25% 0 25%;
background-color: #00FF33;
border: 2px;
}