Calling the CSS from <div> problem

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 лет назад
Hello,

I'm new to CSS and am trying to use a class in my style.css that I created and want to use across a <div> ...

My CSS class:

.dave {
    font-size: 56px;
    text-transform: capitalize;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color:red
}

My code:

    <div class="dave">
        TEST
    </div>

But my text "TEST" doesn't change.  I've tried saving and clearing cache but no luck.

Any ideas?

Thanks,
Dave
5 лет назад
CTRL + F5?
Is css file called? Your rule is visible at the css from browser view?
The best in that cases is share URL.

Regards,
Tom
5 лет назад
hi,

try to refresh page with control+f5

bye
5 лет назад
Thanks for the reply - tried that but no luck.

Any other ideas?  This looks real simple and I'm kinda stuck.

Ciao,
Dave
5 лет назад
the page is online?

can you give a url?
5 лет назад
QEDDave wrote:
Thanks for the reply - tried that but no luck.

What about css? Is this called?
From code part, everything is working fine. If you open it at the jsFiddle or codepen, it is working.
The best, if you can share URL.

Regards,
Tom
5 лет назад
Thanks for all the help!  Will post a URL shortly :)
5 лет назад
Hello and sorry for the delay - as luck would have it my domain reg died yesterday and GoDaddy goes to junk email.

Anyways, the result is at http://www.troyonlinesales.com/htmlpage1.html

http://www.troyonlinesales.com/t_1.png << screen grab

?Is the problem that the HTML doesn't "see" the CSS??  Don't know how to check that.

Thanks much for any help,
Dave
5 лет назад
Hi,

missing this line in your htmlpage1.html

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


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
  <link href="/site.css" rel="stylesheet" type="text/css" />
    <title></title>
</head>
<body>
ASDASDADADSA
    <div class="dave">

        TEST

    </div>

    <div class="carousel">

        <carousel> TEST TEST</carousel>  
    </div>
</body>
</html>

and you have to load site.css file on your server.

bye
5 лет назад
i also have issues with my character counter where i have used a plugin and able to solve.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.