Jump to content

HTML/CSS Question


MarkieMadden

Recommended Posts

Hi everyone! This may seem really basic to most of you. I'm working through the W3Schools html, css and java tutorials, and I'm currently on the CSS.

 

In the following example, where do they get the URL that's entered in after the src?

 

@font-face {

font-family: myFirstFont;

src:url(sansation_light.woff);

}

 

 

Link to comment
Share on other sites

Hi everyone! This may seem really basic to most of you. I'm working through the W3Schools html, css and java tutorials, and I'm currently on the CSS.

 

In the following example, where do they get the URL that's entered in after the src?

 

@font-face {

font-family: myFirstFont;

src:url(sansation_light.woff);

}

 

 

that is where the file for the font is, so where ever you have the file thats how you put it in the css code

Link to comment
Share on other sites

I see. Thanks for your answers. I have a WordPress built site through Bluehost, with Weaver Xtreme theme. I imagine the "default" font for my page is somewhere in my Weaver theme? How would I store new font types if I wanted? Or it that a question better asked at the Weaver forums?

 

I don't really plan to build pages from the ground up, but learning this code has enabled me to make some slight modifications to get things to look the way I want.

Link to comment
Share on other sites

Most sites will use a CSS rule on every element, or html, body, etc to set global things like font style. You can use your browser's developer tools to figure out which stylesheets are being used by your site and also inspect each element to see which rules are being applied to it, and from where.

Link to comment
Share on other sites

Developer tools, this would be what I can see when I do a control, shift, I? I used that briefly when I was searching for the cause of an SSL security failure.

Link to comment
Share on other sites

Ah, that's good to know! At this point my widgets are html that I copied from the square store, for example. A little knowledge of html helped me modify color to match my site, but the bulk of the element came from elsewhere.That reminds me, when I try to use my Amazon affiliate widget, it makes my site show as having "insecure content". The code is in Java, which is next on my to-study list. I tried changing the two URLs to https, but that didn't work. I think it's something on Amazon's side. I've emailed them, waiting for a response. Any ideas how I could make this content secure?

Link to comment
Share on other sites

You can check the network tab to see which requests are HTTP instead of HTTPS. I can't really suggest how to fix that in general, you'll need to change the code so that it sends requests over HTTPS only.

Link to comment
Share on other sites

Well hopefully Amazon will respond after they've researched it, which is what they told me to do. There were only two links in the script, but I don't know much else about it because I haven't studied much of java yet. But I'm almost fine with CSS!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...