Zaloguj | Zarejestruj | FAQ
Anonymous

Why .css does not work with font?

+ Odpowiedz

Posty: 3 Strona 1 z 1


Why .css does not work with font?

przez Marsha Daryabeigi » Pt sty 30, 2015 5:16 pm

I was following the tutorial when I add the command line for font on the .css file, the font did not appeared and all the background disappeared . My question is why that happened.
Avatar użytkownika

Marsha Daryabeigi

  • Posty: 29
  • Dołączył(a): Pn gru 08, 2014 5:40 pm

Re: Why .css does not work with font?

przez CubeSquare » Pt sty 30, 2015 5:41 pm

Hi Marsha,

We're all psychic but today we're having trouble with our crystal balls. If you could show us your code I'm sure we could find you an answer.
Avatar użytkownika

CubeSquare
Moderator

  • Posty: 9
  • Dołączył(a): N wrz 26, 2010 6:04 pm

Re: Why .css does not work with font?

przez Marsha Daryabeigi » So sty 31, 2015 7:42 am

Well I found out where I was wrong and now it is working
If this posting is unnecessary you can delete it.

Here what it is on style sheet I call It style142.css
body {
background-color: #FFCC66;
background-image: url("http://html.net/tutorials/css/butterfly.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: 2cm cm;
background-position: 50% 50%;
background-position: top right;
background-position: bottom right;
}

h1 {
color: #990000;
background-color: #FC9804;
font-family: arial, verdana, sans-serif;}
h2 {font-family: "Times New Roman", serif, font-style: italic;}

and in video141.htm

<html>
<head>
<title>My document</title>
<link rel="stylesheet" type="text/css" href="style142.css"/>
</head>
<body>
<h1>This is a heading</h1>
<h2>This is a subheading</h2>
</body>
</html>
I am not sure about the correct font but it is working
Avatar użytkownika

Marsha Daryabeigi

  • Posty: 29
  • Dołączył(a): Pn gru 08, 2014 5:40 pm


+ Odpowiedz

Strona 1 z 1